Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Systemd + tuxonice + dracut + zen kernel = ext4 / corruption
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Uzytkownik
Guru
Guru


Joined: 31 Oct 2004
Posts: 399
Location: Bay Area, US

PostPosted: Fri Jun 10, 2011 10:37 pm    Post subject: Systemd + tuxonice + dracut + zen kernel = ext4 / corruption Reply with quote

Hello. I tried recently systemd and tuxonice. I needed to use dracut as otherwise the lvm initialisation failed. The problem is that I started getting / filesystem corruption after resume. Every time it is slightly different type of error but it is reproducable every week or so.

I run badblock & other tools but it found nothing. I added checksums to TOI but it change nothing. How to debug the problem?
_________________
I've probably left my head... somwhere. Please wait untill I find it.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri Jun 10, 2011 11:36 pm    Post subject: Reply with quote

what kernel version, patchlevel ?

what flavor of kernel (zen, pf, etc.) ?

cryptsetup ?

mount options ?
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Uzytkownik
Guru
Guru


Joined: 31 Oct 2004
Posts: 399
Location: Bay Area, US

PostPosted: Sat Jun 11, 2011 12:23 am    Post subject: Reply with quote

kernelOfTruth wrote:
what kernel version, patchlevel ?

what flavor of kernel (zen, pf, etc.) ?

cryptsetup ?

mount options ?


2.6.38.5-zen

No cryptsetup, mount options - realatime.
_________________
I've probably left my head... somwhere. Please wait untill I find it.
Back to top
View user's profile Send private message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2843

PostPosted: Sat Jun 11, 2011 9:35 am    Post subject: Reply with quote

If darcut mount rootfs *before* it sends do_resume to tuxonice, then you may end with corrupted file system. Also check if you have initramfs wait in tuxonice kernel config.

As an alternative you may try my initramfs - http://slashbeast.github.com/better-initramfs/
Support dmcrypt luks, lvm, tuxonice and more.
_________________
BitBucket -- better-initramfs
Back to top
View user's profile Send private message
Uzytkownik
Guru
Guru


Joined: 31 Oct 2004
Posts: 399
Location: Bay Area, US

PostPosted: Sat Jun 11, 2011 9:44 am    Post subject: Reply with quote

SlashBeast wrote:
If darcut mount rootfs *before* it sends do_resume to tuxonice, then you may end with corrupted file system. Also check if you have initramfs wait in tuxonice kernel config.

As an alternative you may try my initramfs - http://slashbeast.github.com/better-initramfs/
Support dmcrypt luks, lvm, tuxonice and more.


There is no point in waiting as swap is on lvm so toi needs to wait anyway. From what I've understood the dracut init script file they are preventing it but I think it is doing it anyway (however I don't know how and how to prevent it).

Unfortunatly your initramfs does not support lvm+udev which is required by systemd - only 'simple' lvm initialisation (lvm vgchange -a y). Previously I was using my custom /init script in initrd but it did not handled it as well so I was forced to use dracut.
_________________
I've probably left my head... somwhere. Please wait untill I find it.
Back to top
View user's profile Send private message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2843

PostPosted: Sat Jun 11, 2011 1:32 pm    Post subject: Reply with quote

My initramfs mount devtmpfs and then move it to system's /dev, udev handle it pretty well, it is using devtmpfs. genkernel using the same. I am not a user of systemd and propably I will never be (systemd hater no. 1).
_________________
BitBucket -- better-initramfs
Back to top
View user's profile Send private message
Uzytkownik
Guru
Guru


Joined: 31 Oct 2004
Posts: 399
Location: Bay Area, US

PostPosted: Sun Jun 12, 2011 8:46 am    Post subject: Reply with quote

SlashBeast wrote:
My initramfs mount devtmpfs and then move it to system's /dev, udev handle it pretty well, it is using devtmpfs.


Hmm. It did succeed and it mounted / but it failed to fsck other FS...
_________________
I've probably left my head... somwhere. Please wait untill I find it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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