View previous topic :: View next topic |
Author |
Message |
karmaking Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 11 Feb 2004 Posts: 84 Location: Berlin, Germany
|
Posted: Sun Mar 29, 2009 2:12 pm Post subject: suspend-to-disk / hibernate corrupts filesystems |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23101
|
Posted: Sun Mar 29, 2009 4:53 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
karmaking Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 11 Feb 2004 Posts: 84 Location: Berlin, Germany
|
Posted: Sun Mar 29, 2009 5:38 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23101
|
Posted: Sun Mar 29, 2009 8:04 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
karmaking Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 11 Feb 2004 Posts: 84 Location: Berlin, Germany
|
Posted: Sun Mar 29, 2009 10:31 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|