Configure iSCSI on both backend interfaces.
authorEvan Broder <broder@mit.edu>
Thu, 15 Jan 2009 00:52:06 +0000 (19:52 -0500)
committerEvan Broder <broder@mit.edu>
Thu, 15 Jan 2009 00:52:06 +0000 (19:52 -0500)
svn path=/trunk/packages/xvm-iscsi-config/; revision=1979

debian/changelog
debian/xvm-iscsi-config.install
debian/xvm-iscsi-config.postinst
ifaces/eth0 [new file with mode: 0644]
ifaces/eth1 [new file with mode: 0644]

index 7f55a17..facfb8a 100644 (file)
@@ -1,3 +1,9 @@
+xvm-iscsi-config (0.0.7) unstable; urgency=low
+
+  * Configure iSCSI for multipath on eth0 and eth1.
+
+ -- Evan Broder <broder@mit.edu>  Wed, 14 Jan 2009 19:45:56 -0500
+
 xvm-iscsi-config (0.0.6) unstable; urgency=low
 
   * tweak initscript to emit log messages correctly
index 1b41226..1b7b075 100644 (file)
@@ -1 +1,2 @@
-debian/iscsid.conf.xvm.mako etc/iscsi
\ No newline at end of file
+debian/iscsid.conf.xvm.mako etc/iscsi
+ifaces etc/iscsi
index 1722daa..0b7a06e 100755 (executable)
@@ -48,13 +48,13 @@ EOF
         if [ -z "$2" ]; then
             invoke-rc.d xvm-iscsi-config restart
             invoke-rc.d open-iscsi restart
-            iscsiadm -m discovery -t st -p $(invirt-getconf iscsi.address):3260
+            iscsiadm -m discovery -t st -p $(invirt-getconf iscsi.address):3260 -I eth0 -I eth1
         elif ! diff /etc/invirt/conf.d/iscsi~ /etc/invirt/conf.d/iscsi >/dev/null; then
               cat <<EOF
 xvm-iscsi-config: The configuration has changed.  Restart iscsi:
   /etc/init.d/xvm-iscsi-config restart
   /etc/init.d/open-iscsi restart
-  iscsiadm -m discovery -t st -p $(invirt-getconf iscsi.address):3260
+  iscsiadm -m discovery -t st -p $(invirt-getconf iscsi.address):3260 -I eth0 -I eth1
   lvchange -a ln /dev/xenvg && lvchange -a y /dev/xenvg
 This will leave VMs unable to access their disks, so migrate them first.
 
diff --git a/ifaces/eth0 b/ifaces/eth0
new file mode 100644 (file)
index 0000000..046fb93
--- /dev/null
@@ -0,0 +1,2 @@
+iface.transport_name = tcp
+iface.net_ifacename = eth0
diff --git a/ifaces/eth1 b/ifaces/eth1
new file mode 100644 (file)
index 0000000..26ca81c
--- /dev/null
@@ -0,0 +1,2 @@
+iface.transport_name = tcp
+iface.net_ifacename = eth1