Package: open-iscsi
Version: 2.0.870~rc3-0.4.1
Severity: wishlist
Tags: patch
When using multipath with iSCSI for the rootfs, it is required that you
access the iSCSI target on more than one IP address. To get this work in
the initramfs already, please apply the attached patch, which allows to
set a list of IPs to $ISCSI_TARGET_IP in /etc/iscsi/iscsi.initramfs.
Norbert
--- /usr/share/initramfs-tools/scripts/local-top/iscsi.orig 2010-10-01 15:54:09.000000000 +0000
+++ /usr/share/initramfs-tools/scripts/local-top/iscsi 2010-09-30 16:07:07.000000000 +0000
@@ -42,10 +42,15 @@
ISCSI_TARGET_GROUP=1
fi
+ for i in $ISCSI_TARGET_IP ; do
+
iscsistart -i $ISCSI_INITIATOR -t $ISCSI_TARGET_NAME \
- -g $ISCSI_TARGET_GROUP -a $ISCSI_TARGET_IP \
+ -g $ISCSI_TARGET_GROUP -a $i \
-p $ISCSI_TARGET_PORT $ISCSI_USERNAME \
$ISCSI_PASSWORD $ISCSI_IN_USERNAME $ISCSI_IN_PASSWORD
+
+ done
+
}
parse_iscsi_ops ()