Hello to the list - and Ubuntu Lucid, 2 luks partitions, 2 VGs, resume fails with "resume: device not found"

gurunixx <[email protected]>
Newsgroups gmane.linux.swsusp.devel
Message-ID <[email protected]>
Hi.  First post :-)

This is a laptop, a W500, and with a new client, I need it to 
hibernate and resume quickly - which means TuxOnIce...... there's a 
guy with a MBP who often sits next to me, and he's making me look bad :-D

I have Ubuntu Lucid, 32-bit.  Two hard drives.  There's a luks 
partition on each drive - each of which has lvm on it.  /etc/crypttab 
reflects the second luks partition, which of course has a different 
volume group on it --- vg #2 uses a key file, in /etc/ on root LV on 
the first vg.

So, on boot, I see the prompt for the pass phrase for luks #1, for vg 
#1.  Then, immediately, I get an error from tuxonice:

Key slot 0 unlocked.
    8 logical volume(s) in volume group "wallevg0" now active
udevd-work[611]: inotify_add_watch(6, /dev/dm-8, 10) failed: No such 
file or directory
Done.
Begin: Running /scripts/local-premount ...
resume: libgcrypt version: 1.4.4
resume: Could not stat the resume device file '/dev/disk/by-uuid/UUID1'
      Please type in the full path name to try again

Google comes back with a huge list of hits on this, but the ones I 
checked are not even close to my 'advanced config'.  It sure looks to 
me like tuxonice is firing after the first entry in crypttab, but 
it's not waiting for the others to be activated.  Else the partition 
with that UUID would be available.

FYI, on a fully-booted session:

0  root wall-e 78.00% /var/log # blkid | grep -i UUID1
/dev/mapper/vg0-lvswap: UUID="UUID1" TYPE="swap"

(vg0 is the VG on the second hard drive)

So, it sure looks like I 'simply' need to have tuxonice wait until 
cryptsetup is 100% done.  Has anyone figured this out?

Let me know if you require additional info.  And TIA....

N.B.  I'm prepared to create a file-based hibernate state file, but 
wanted to ask the list first. I really, really need the ability to 
open the lid and have my Linux session up in a few seconds - 
aforementioned Mac user is a nice guy but I invariably take a hit 
from such folks wherever I go.......it's only a matter of time...

Thanks.

/Bill
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.