All of lore.kernel.org
 help / color / mirror / Atom feed
* This time HD LED doesn't come up at all :-(
@ 2013-03-28 11:51 Swâmi Petaramesh
  2013-03-28 13:19 ` Josef Bacik
  0 siblings, 1 reply; 6+ messages in thread
From: Swâmi Petaramesh @ 2013-03-28 11:51 UTC (permalink / raw)
  To: linux-btrfs@vger.kernel.org

(Resending without the attachment which didn't seem to make it thru...)

Hi folks,

This time, at reboot, one of my machines won't come up.

Starting it in "single and verbose" mode shows that BTRFS looks dead (or
at least seriously wounded) :

Kernel seems to mount BTRFS, then swap, then sits there doing nothing
for quite a while (HD LED is OFF).

Then it starts spitting ugly messages about init being blocked for more
than 120 seconds, btrfs-cleaner (the same) etc. - please see attached
screenshot.

Any clue for getting out of this annoying situation without resorting to
reinstall from backups ?

TIA.

-- 
Swâmi Petaramesh <swami@petaramesh.org> http://petaramesh.org PGP 9076E32E




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: This time HD LED doesn't come up at all :-(
  2013-03-28 11:51 This time HD LED doesn't come up at all :-( Swâmi Petaramesh
@ 2013-03-28 13:19 ` Josef Bacik
  2013-03-28 15:55   ` Swâmi Petaramesh
  0 siblings, 1 reply; 6+ messages in thread
From: Josef Bacik @ 2013-03-28 13:19 UTC (permalink / raw)
  To: Swâmi Petaramesh; +Cc: linux-btrfs@vger.kernel.org

On Thu, Mar 28, 2013 at 05:51:18AM -0600, Swâmi Petaramesh wrote:
> (Resending without the attachment which didn't seem to make it thru...)
> 
> Hi folks,
> 
> This time, at reboot, one of my machines won't come up.
> 
> Starting it in "single and verbose" mode shows that BTRFS looks dead (or
> at least seriously wounded) :
> 
> Kernel seems to mount BTRFS, then swap, then sits there doing nothing
> for quite a while (HD LED is OFF).
> 
> Then it starts spitting ugly messages about init being blocked for more
> than 120 seconds, btrfs-cleaner (the same) etc. - please see attached
> screenshot.
> 
> Any clue for getting out of this annoying situation without resorting to
> reinstall from backups ?
> 

Can you capture the output and post it somewhere so I can see it?  Thanks,

Josef

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: This time HD LED doesn't come up at all :-(
  2013-03-28 13:19 ` Josef Bacik
@ 2013-03-28 15:55   ` Swâmi Petaramesh
  2013-03-28 18:01     ` Josef Bacik
  2013-03-28 18:05     ` Josef Bacik
  0 siblings, 2 replies; 6+ messages in thread
From: Swâmi Petaramesh @ 2013-03-28 15:55 UTC (permalink / raw)
  To: Josef Bacik; +Cc: linux-btrfs@vger.kernel.org

Le 28/03/2013 14:19, Josef Bacik a écrit :
> Can you capture the output and post it somewhere so I can see it?  Thanks,
Hi Josef,

I just uploaded the screenshot here: http://dl.free.fr/pRabNdCsf (You
will need to type in your email address or the list's one to retrieve it)

Meanwhile I did some more tests, and I'm puzzled :

- Booting the latest PartedMagic Live (I believe it's a 3.7.9 kernel), I
can mount the HD BTRFS filesystem wihtout problem (only tried with
subvolid=0), I can btrfsck it (unmounted), and it looks allright;

- Still, trying to boot the system the normal way (3.8.0 kernel) fails,
and I get these errors...

At least the FS doesn't look plain dead, but I have no clue...

Kind regards.

-- 
Swâmi Petaramesh <swami@petaramesh.org> http://petaramesh.org PGP 9076E32E
Ne cherchez pas : Je ne suis pas sur Facebook.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: This time HD LED doesn't come up at all :-(
  2013-03-28 15:55   ` Swâmi Petaramesh
@ 2013-03-28 18:01     ` Josef Bacik
  2013-03-28 18:05     ` Josef Bacik
  1 sibling, 0 replies; 6+ messages in thread
From: Josef Bacik @ 2013-03-28 18:01 UTC (permalink / raw)
  To: Swâmi Petaramesh; +Cc: Josef Bacik, linux-btrfs@vger.kernel.org

On Thu, Mar 28, 2013 at 09:55:26AM -0600, Swâmi Petaramesh wrote:
> Le 28/03/2013 14:19, Josef Bacik a écrit :
> > Can you capture the output and post it somewhere so I can see it?  Thanks,
> Hi Josef,
> 
> I just uploaded the screenshot here: http://dl.free.fr/pRabNdCsf (You
> will need to type in your email address or the list's one to retrieve it)
> 
> Meanwhile I did some more tests, and I'm puzzled :
> 
> - Booting the latest PartedMagic Live (I believe it's a 3.7.9 kernel), I
> can mount the HD BTRFS filesystem wihtout problem (only tried with
> subvolid=0), I can btrfsck it (unmounted), and it looks allright;
> 
> - Still, trying to boot the system the normal way (3.8.0 kernel) fails,
> and I get these errors...
> 
> At least the FS doesn't look plain dead, but I have no clue...
> 

So can you try a livecd thats 3.8 based and mount manually, and when it hangs
get sysrq+w?  The other option is to mount without -o inode_cache and see if
that helps?  It looks like you may be hitting some weird deadlock with
inode_cache, but I can't say for sure without sysrq+w so I can see what the
caching thread is doing.  Thanks,

Josef

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: This time HD LED doesn't come up at all :-(
  2013-03-28 15:55   ` Swâmi Petaramesh
  2013-03-28 18:01     ` Josef Bacik
@ 2013-03-28 18:05     ` Josef Bacik
  2013-03-28 18:27       ` Swâmi Petaramesh
  1 sibling, 1 reply; 6+ messages in thread
From: Josef Bacik @ 2013-03-28 18:05 UTC (permalink / raw)
  To: Swâmi Petaramesh; +Cc: Josef Bacik, linux-btrfs@vger.kernel.org

On Thu, Mar 28, 2013 at 09:55:26AM -0600, Swâmi Petaramesh wrote:
> Le 28/03/2013 14:19, Josef Bacik a écrit :
> > Can you capture the output and post it somewhere so I can see it?  Thanks,
> Hi Josef,
> 
> I just uploaded the screenshot here: http://dl.free.fr/pRabNdCsf (You
> will need to type in your email address or the list's one to retrieve it)
> 
> Meanwhile I did some more tests, and I'm puzzled :
> 
> - Booting the latest PartedMagic Live (I believe it's a 3.7.9 kernel), I
> can mount the HD BTRFS filesystem wihtout problem (only tried with
> subvolid=0), I can btrfsck it (unmounted), and it looks allright;
> 
> - Still, trying to boot the system the normal way (3.8.0 kernel) fails,
> and I get these errors...
> 
> At least the FS doesn't look plain dead, but I have no clue...
> 

Actually I see the deadlock now, sorry, I'll fix it up and send a patch.
Thanks,

Josef

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: This time HD LED doesn't come up at all :-(
  2013-03-28 18:05     ` Josef Bacik
@ 2013-03-28 18:27       ` Swâmi Petaramesh
  0 siblings, 0 replies; 6+ messages in thread
From: Swâmi Petaramesh @ 2013-03-28 18:27 UTC (permalink / raw)
  To: Josef Bacik; +Cc: linux-btrfs@vger.kernel.org

Le 28/03/2013 19:05, Josef Bacik a écrit :
> Actually I see the deadlock now, sorry, I'll fix it up and send a patch.

Meanwhile, I booted in PartedMagic again (My Hero !), mounted the FS,
chrooted into it, mounted everything under it, then I rebuilt the
initramfs, unmounted and restarted "the usual way".

Then the HD LED stayed LIT for at least 5 full minutes, and in the end
it would boot properly.

I don't know what exactly happened, but it seems that regenerating the
initramfs from within the live CD somehow helped BTRFS to fix itself ?

Happily enough for me, for that's my wife's system, and you know bad
things can happen when wife is unhappy :-\

(She's actually already badly unhappy about performance, leaves the
machine "suspended" all the time for she can't stand the time it takes
to boot, but if I tell her that her Linux FS died, I'm afraid she's back
to WinXP in minutes :-/ which is worse than death...)

Thanks for your help :-)


FYI parts of this machine's fstab and mountinfo in case it might help...

# grep btrfs fstab
/dev/sda1       /               btrfs  
subvol=@,compress=lzo,space_cache,inode_cache,autodefrag,relatime       0 0
/dev/sda1       /boot           btrfs  
subvol=@boot,space_cache,inode_cache,autodefrag,relatime                               
0 0
/dev/sda1       /tmp            btrfs  
subvol=@tmp,compress=lzo,space_cache,inode_cache,autodefrag,relatime    0 0
/dev/sda1       /home           btrfs  
subvol=@home,compress=lzo,space_cache,inode_cache,autodefrag,relatime   0 0
/dev/sda1       /storage/owner_.VBox  btrfs  
subvol=@owner_.VBox,compress=lzo,space_cache,inode_cache,autodefrag,noatime  
0 0
/dev/sda1       /storage/owner_BIG    btrfs  
subvol=@owner_BIG,compress=lzo,space_cache,inode_cache,autodefrag,noatime    
0 0
/dev/sda1       /mnt/ROOTFS     btrfs  
noauto,compress=lzo,space_cache,inode_cache,autodefrag,relatime 0 0

# grep btrfs /proc/self/mountinfo
20 1 0:16 /@ / rw,relatime - btrfs /dev/sda1
rw,compress=lzo,space_cache,autodefrag,inode_cache
27 20 0:16 /@tmp /tmp rw,relatime - btrfs /dev/sda1
rw,compress=lzo,space_cache,autodefrag,inode_cache
28 20 0:16 /@boot /boot rw,relatime - btrfs /dev/sda1
rw,compress=lzo,space_cache,autodefrag,inode_cache
29 20 0:16 /@home /home rw,relatime - btrfs /dev/sda1
rw,compress=lzo,space_cache,autodefrag,inode_cache
30 20 0:16 /@owner_.VBox /storage/owner_.VBox rw,noatime - btrfs
/dev/sda1 rw,compress=lzo,space_cache,autodefrag,inode_cache
31 20 0:16 /@owner_BIG /storage/owner_BIG rw,noatime - btrfs /dev/sda1
rw,compress=lzo,space_cache,autodefrag,inode_cache


-- 
Swâmi Petaramesh <swami@petaramesh.org> http://petaramesh.org PGP 9076E32E
Ne cherchez pas : Je ne suis pas sur Facebook.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-03-28 18:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-28 11:51 This time HD LED doesn't come up at all :-( Swâmi Petaramesh
2013-03-28 13:19 ` Josef Bacik
2013-03-28 15:55   ` Swâmi Petaramesh
2013-03-28 18:01     ` Josef Bacik
2013-03-28 18:05     ` Josef Bacik
2013-03-28 18:27       ` Swâmi Petaramesh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.