On Fri, 2009-06-19 at 18:40 +0200, Harald Hoyer wrote: > On 06/19/2009 06:05 PM, David Dillow wrote: > > On Fri, 2009-06-19 at 08:21 +0200, Harald Hoyer wrote: > >> On 06/19/2009 04:55 AM, David Dillow wrote: > >>> The RFC only says we need to boot off the LUN specified, 0 if none > >>> listed. That's your default partition. > >> ok, so the LUN is the partition number? > > > > No, a LUN is a whole disk. You would map the LUN to /dev/sda or /dev/sdb > > or such depending on which one it is, and use the entire disk -- no > > partitions needed. If you wanted to separate /var or /home etc, you > > would put them on a different LUN(s) -- partitions optional -- and > > use /etc/fstab to mount them. > > hmm, so I would have to create a rule, which would look for the next disk which > appears and has some /sys magic iSCSI attributes and try to mount the whole disk. You're looking for the disk that makes the directory /sys/class/scsi_disk/<HOST>:0:0:<LUN> HOST will almost always be 0, unless we try multiple iSCSI roots in sequence. LUN will be the one specified by root-path. I'm not sure if you can match this via udev rules, perhaps using a match rule such as SYMLINK=="by-path/*-scsi-0:0:0:<LUN>" -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html