> Hi to all!
> 
> I searched the web for finding an answer but with no luck.
> Anyone got an idea about how to first make iSCSI see a remote disk, then
> LUKS open the LUKS device and finally the filesystem on LUKS gets mounted.
> 
> The problem now is that first LUKS noearly tries to create the
> /dev/mapper device but iSCSI has not run yet. Then iSCSI runs and the
> system sees the remote disk, and last, fstab tries to mount the
> filesystem, which of course fails because the LUKS /dev/mapper device is
> not there. How can I make the order: iSCSI, LUKS, fstab ?

  Presumably this is an issue for you at boot-time?  

  I suggest mounting everything up and then re-building your
initramfs -- it's pretty good at enabling the current configuration,
and in particular, if you didn't have any crypto disks last time
you built it, it may not have the crypto modules and/or /etc/crypttab
may be set incorrectly.

  That's mostly guesswork though.  

  One other possible catch is that you may want LUKS to refer to the
device by UUID, if it doesn't already do so -- the device name can
change from one iscsiadm log-in to the next, just as with USB and
"real" SATA drives.

                        -- A.
--
Andrew Reid / rei...@bellatlantic.net


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201104161401.49711.rei...@bellatlantic.net

  • iSCSI + LUKS Γιώργος Πάλλας
    • Re: iSCSI + LUKS Andrew Reid

Reply via email to