Comment 8 for bug 1075313

Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

The thing is I'd not necessarily expect the path to be stable; as I said in comment 2, I'd expect the iqn to be
stable, but I wouldn't bet on the IP of the SAN staying stable - it's normal for a SAN to have multiple IPs for multiple controllers
etc, and by the magic of multipath stuff often moves around.

Your line of:

            "ro root=/dev/disk/by-path/ip-%s:%s-iscsi-%s-lun-1" % (
                params.fs_host, "3260", tname

is thus OK if the IP address %s is expanded inside the initramfs at boot time to see where it's connection is currently coming from, but it's not safe if that expansion is done when the initramfs is built; and I don't understand the python or the script your modifying to know which of those happens.