add a bit of bytemark multipath documentation
[mirror/dsa-wiki.git] / input / howto / install-ganeti.creole
index 22925c7..e5f46f8 100644 (file)
@@ -334,7 +334,6 @@ manually.
 * If you are importing an instance from libvirt with LVM setup, you can adopt LVs:
 
 {{{
-
     gnt-instance add -t plain --os-type debootstrap+dsa-wheezy \
       --disk 0:adopt=lully-boot \
       --disk 1:adopt=lully-root \
@@ -342,7 +341,14 @@ manually.
       --disk 3:adopt=lully-log  \
       --hypervisor-parameters kvm:initrd_path=,kernel_path= \
       --net 0:ip=82.195.75.99 -n clementi.debian.org  lully.debian.org
+}}}
 
+And you want to convert it to use DRBD afterwards and start it on the other cluster node, so we can ensure that DRBD is correctly working.
+{{{
+    gnt-instance shutdown lully.debian.org
+    gnt-instance modify -t drbd -n czerny.debian.org lully.debian.org
+    gnt-instance failover lully.debian.org
+    gnt-instance startup lully.debian.org
 }}}
 
 * Some instances NEED ide instead of virtio
@@ -350,3 +356,32 @@ manually.
 {{{
     gnt-instance modify --hypervisor-parameters disk_type=ide fils.debian.org
 }}}
+
+* To import instances with SAN volumes
+
+{{{
+    gnt-instance add -t blockdev --os-type debootstrap+dsa \
+      --disk 0:adopt=/dev/disk/by-id/scsi-reger-boot \
+      --disk 1:adopt=/dev/disk/by-id/scsi-reger-root \
+      --hypervisor-parameters kvm:initrd_path=,kernel_path= \
+      --net 0:ip=206.12.19.124 -n rossini.debian.org reger.debian.org
+}}}
+
+* How to add new LUNs to Bytemark Cluster
+
+{{{
+  + Add a new LUN in the MSA and export it to all blades
+
+  then:
+  gnt-cluster command "echo 1 > /sys/bus/pci/devices/0000:0e:00.0/cciss0/rescan"
+  
+  then:
+  reload multipath-tools on gnt-master (normaly bm-bl1):
+  /etc/init.d/multipath-tools reload
+  add the WWNs to dsa-puppet/modules/multipath/files/bm-multipath.conf and define the alias and commit that file to git.
+
+  then:
+  gnt-cluster command "puppet agent -t"
+
+  This will update the multipath config on all cluster nodes. WITHOUT doing this, you can't migrate VMs between nodes.
+}}}