X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=input%2Fhowto%2Finstall-ganeti.creole;h=3d0326fd5e1814e95af0597a2495bb62163e3d26;hb=a032f117fef1e4a58f0030784879f032b07d41f5;hp=b5b4b44e85669e6674fe2adf8439ea64c84a9fd0;hpb=9b803159c26bacfbef356521d7d737e82e6da36d;p=mirror%2Fdsa-wiki.git diff --git a/input/howto/install-ganeti.creole b/input/howto/install-ganeti.creole index b5b4b44..3d0326f 100644 --- a/input/howto/install-ganeti.creole +++ b/input/howto/install-ganeti.creole @@ -36,8 +36,9 @@ The following DNS records exist: On each node, install the required packages: {{{ - apt-get install fai-client ssed extlinux - apt-get install {drbd8-utils,ganeti2,ganeti-htools}/squeeze-backports ganeti-instance-debootstrap qemu-kvm + # maybe: apt-get install drbd8-utils + # maybe: apt-get install ganeti-instance-debootstrap + apt-get install ganeti2 ganeti-htools qemu-kvm }}} === configure kernel modules === @@ -49,6 +50,7 @@ On each node, ensure that the required kernel modules are loaded at boot: ainsl /etc/modules 'hmac' ainsl /etc/modules 'tun' ainsl /etc/modules 'ext3' + ainsl /etc/modules 'ext4' }}} === configure networking === @@ -151,7 +153,7 @@ On the master node (foo) only: --mac-prefix 00:16:37 \ --no-ssh-init \ --no-etc-hosts \ - --hypervisor-parameters kvm:initrd_path=/boot/initrd.img-2.6-kvmU,kernel_path=/boot/vmlinuz-2.6-kvmU \ + --hypervisor-parameters kvm:initrd_path=,kernel_path= \ foobar.debian.org }}} @@ -358,16 +360,45 @@ And you want to convert it to use DRBD afterwards and start it on the other clus * How to add new LUNs to Bytemark Cluster +** Add new LUN to MSA and export to all blades + +{{{ + Log into MSA controller + + Choose which vdisk to use, use "show vdisks" to list + +Add the volume: + # create volume vdisk msa2k-2-500gr10 size 5G donizetti + +Find a free LUN: + + # show lun-maps + or (if we assume they are all the same) + # show host-maps 3001438001287090 + +Make a note of the next free LUN + +Generate map commands for all blades, all ports, run locally: + + $ for bl in 1 2 3 4 5 6 ; do for p in 1 2 3 4; do echo "map volume donizetti lun 27 host bm-bl$bl-p$p" ; done ; done + +Paste the output into the MSA shell + +Find the WWN by doing show host-maps and looking for the volume name. +Transform it using the sed run at the top of /etc/multipath.conf: + +echo "$WWN" | sed -re 's#(.{6})(.{6})0000(.{2})(.*)#36\1000\2\3\4#' +}}} + {{{ - + 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. + service multipath-tools reload + add the WWNs to dsa-puppet/modules/multipath/files/multipath-bm.conf and define the alias and commit that file to git. then: gnt-cluster command "puppet agent -t"