Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
suspend-to-disk / hibernate corrupts filesystems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
karmaking
Tux's lil' helper
Tux's lil' helper


Joined: 11 Feb 2004
Posts: 84
Location: Berlin, Germany

PostPosted: Sun Mar 29, 2009 2:12 pm    Post subject: suspend-to-disk / hibernate corrupts filesystems Reply with quote

Since recently, I get serious file system corruptions while disk-hibernating/resuming.

Every 3 or 4 times I hibernate, I get a kernel panic because of unmountable root partition and then have to manually fsck (which reports broken superblocks). In these cases, also the home and boot partitions (the latter not being mounted during normal work) will be corrupted.

hibernate.log, messages, dmesg don't show anything obviously related. All SMART values are healthy.

Where to start looking?

amd64, tuxonice-sources-2.6.28-r8, hibernate-script-1.99-r1, hibernate to swap. No initrd, no modules. All ext3.

Thx & cheers
Daniel
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23101

PostPosted: Sun Mar 29, 2009 4:53 pm    Post subject: Reply with quote

What kernel command line do you use to resume? Is there any chance you are mounting the filesystems before the system tries to resume?
Back to top
View user's profile Send private message
karmaking
Tux's lil' helper
Tux's lil' helper


Joined: 11 Feb 2004
Posts: 84
Location: Berlin, Germany

PostPosted: Sun Mar 29, 2009 5:38 pm    Post subject: Reply with quote

Hmm that's nothing special:

Code:
kernel /boot/bzImage root=/dev/sda7 resume=swap:/dev/sda6


I figure it must happen during hibernate, not resume.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23101

PostPosted: Sun Mar 29, 2009 8:04 pm    Post subject: Reply with quote

How do you know it is happening during hibernation rather than when trying to resume? TuxOnIce does not unmount filesystems during hibernation, so any filesystems mounted read-write during hibernation will be inconsistent while the machine is halted. When the system resumes, the saved kernel must be made active without mounting the inconsistent filesystems. Your command line looks fine. What does the kernel output during a failed resume? Specifically, what does it say about the swap device?
Back to top
View user's profile Send private message
karmaking
Tux's lil' helper
Tux's lil' helper


Joined: 11 Feb 2004
Posts: 84
Location: Berlin, Germany

PostPosted: Sun Mar 29, 2009 10:31 pm    Post subject: Reply with quote

Couldn't reproduce it now (it never works when someone's watching :)

I do understand how the mechanism is working. I guess it is that TuxOnIce for some reason refuses to use the saved cache on resume and that the systems wants to boot normally, which it can't because the fs is inconsistent so badly, that it can't fix it on the fly (invalid superblock).

That's why my thought was that it's not sync'ing the fs to disk properly on hibernate or something (?)

Will post kernel output as soon as it appears to happen again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum