Xen Cluster Management With Ganeti On Debian Lenny - Page 2
4 Installing Ganeti And Xennode1/node2: We can install Ganeti and Xen with one simple command: aptitude install ganeti You will see the following question: MD arrays needed for the root file system: <-- all Then we edit /etc/xen/xend-config.sxp and modify the following settings: vi /etc/xen/xend-config.sxp
Next open /boot/grub/menu.lst and find the # xenhopt= and # xenkopt= lines and modify them as follows (don't remove the # at the beginning!): vi /boot/grub/menu.lst
256M or 512M are a reasonable amount of memory for dom0. (Please use nosmp only of your CPU has multiple cores. If you CPU has just one core, it is possible that it won't boot anymore with this setting. You can check how many cores you have with the following command: cat /proc/cpuinfo ) Afterwards, update the GRUB boot loader: /sbin/update-grub and reboot both physical nodes: reboot After the reboot, the nodes should run the Xen kernel: uname -r node1:~# uname -r Afterwards do this: cd /boot (This is useful if you don't specify a kernel in the gnt-instance add command - the command will then use /boot/vmlinuz-2.6-xenU and /boot/initrd-2.6-xenU by default.)
5 Installing DRBDnode1/node2: Next we install DRBD: aptitude install drbd8-modules-`uname -r` drbd8-utils Now we must enable the DRBD kernel module: echo drbd minor_count=64 >> /etc/modules It is recommended to configure LVM not to scan the DRBD devices. Therefore we open /etc/lvm/lvm.conf and replace the filter line as follows: vi /etc/lvm/lvm.conf
6 Initializing The Clusternode1: Now we can initialize our cluster (this has to be done only once per cluster). Our clustername is cluster1.example.com, and I want node1.example.com to be the master, therefore we run the following command on node1.example.com: gnt-cluster init -b eth0 -g xenvg --master-netdev eth0 cluster1.example.com Ganeti assumes that the name of the volume group is xenvg by default, so you can also leave out the -g xenvg switch, but if your volume group has a different name, you must specify it with the -g switch. Xen 3.2 and 3.3 don't use the bridge xen-br0 anymore; instead eth0 is used, therefore we must specify -b eth0 and --master-netdev eth0.
7 Adding node2.example.com To The Clusternode1: Now that node1 is the master, we run all commands for managing the cluster on node1. In order to add node2.example.com to the cluster, we run: gnt-node add node2.example.com This will look like this: node1:~# gnt-node add node2.example.com Now let's check if our cluster really consists out of node1 and node2: gnt-node list You should get something like this: node1:~# gnt-node list
|



Recent comments
20 hours 33 min ago
1 day 6 hours ago
1 day 6 hours ago
1 day 10 hours ago
1 day 14 hours ago
1 day 15 hours ago
1 day 17 hours ago
2 days 3 hours ago
2 days 8 hours ago
2 days 9 hours ago