[pkg-cryptsetup-devel] Start cryptsetup-early after nbd-client

Libor Klepáč libor.klepac at bcom.cz
Wed Mar 17 20:00:38 UTC 2010


Hi,
I don't want to fill bug, I just want to ask.

We are setting up backup server, which will boot from nfs (this works, nfsroot 
created easily using debootstrap). Four local disks will be in raid5 (we are 
testing it in vmware now, so only one disk).

I have created luks on /dev/sda , then created lvm on top of it.

This host has to boot automatically and we dont want to have keyfile on 
filesystem of it. So i started nbd-server on other host and put key into it 
(1024B).
So on backup server crypttab looks like this
backup  /dev/sda       /dev/nbd0    luks,size=8192,noearly

Problem is that /etc/init.d/cryptdisks starts after lvm, so i put 
"/etc/init.d/lvm2 start" to rc.local.

nbd-client has to start before cryptdisks, so I added Required-Start to nbd-
client. (And i have had to remove "X-Start-Before:    checkfs" so it doesn't 
complain about loop)

When i try to add nbd-client to cryptdisks-early (so luks is opened before lvm 
starts), insserv complains about loop. I don't know how to solve this, do you 
have any ideas please?

insserv -v -d
insserv: There is a loop between service cryptdisks-early and nbd-client if 
started
insserv:  loop involving service nbd-client at depth 7
insserv:  loop involving service networking at depth 6
insserv: There is a loop between service cryptdisks-early and nbd-client if 
started
insserv:  loop involving service lvm2 at depth 3
insserv:  loop involving service cryptdisks-early at depth 2
insserv:  loop involving service udev at depth 1
insserv:  loop involving service mountnfs at depth 10
insserv: There is a loop between service lvm2 and cryptdisks-early if started
insserv:  loop involving service checkfs at depth 16
insserv: exiting now without changing boot order!

Any ideas please? Or is this setup just to complicated/wrong?

With regerds
Libor Klepac
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20100317/bcf8d978/attachment.pgp>


More information about the pkg-cryptsetup-devel mailing list