Xen Cluster Management With Ganeti On Debian Etch - Page 3
3 Preparing The Physical Nodesnode1/node2: First we update the packages database: apt-get update Then we install OpenSSH and a full-featured vim text editor (unless you prefer another text editor such as nano): apt-get install ssh openssh-server vim-full node1: Because the Debian Etch installer has configured our system to get its network settings via DHCP, we have to change that now because a server should have a static IP address. Edit /etc/network/interfaces and adjust it to your needs (please note that I replace allow-hotplug eth0 with auto eth0; otherwise restarting the network doesn't work, and we'd have to reboot the whole system): vi /etc/network/interfaces
Then restart your network: /etc/init.d/networking restart Then edit /etc/hosts. Make it look like this: vi /etc/hosts
Next we must make sure that the commands hostname and hostname -f print out the full hostname (node1.example.com). If you get something different (e.g. just node1), do this: echo node1.example.com > /etc/hostname Afterwards, the hostname commands should show the full hostname. node2: Now we do the same again on node2.example.com: vi /etc/network/interfaces
/etc/init.d/networking restart vi /etc/hosts
echo node2.example.com > /etc/hostname node1/node2: Edit /etc/apt/sources.list. Comment out the CD. It should look like this: vi /etc/apt/sources.list
Then run apt-get update to update the apt packages database and apt-get upgrade to install the latest updates (if there are any). Afterwards, install the build-essential package: apt-get install build-essential
4 Installing Xennode1/node2: Next we install Xen on both physical nodes: apt-get install xen-linux-system-2.6.18-5-xen-686 libc6-xen Then we edit /etc/xen/xend-config.sxp and modify the dom0-min-mem line so that it looks like this: 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
(Remember what I said about memory in chapter 1. If you have enough RAM, you should probably use 256M or 512M here, at least on production systems.) Afterwards, update the GRUB boot loader: update-grub and reboot both physical nodes: shutdown -r now At the boot prompt, select the new Xen kernel and boot from it. After the nodes have come up, do this: cd /boot
5 Installing DRBDnode1/node2: Next we install DRBD: apt-get install drbd0.7-module-source drbd0.7-utils Now we must compile and enable the DRBD kernel module: m-a update m-a a-i drbd0.7 echo drbd minor_count=64 >> /etc/modules
|




print: 
Recent comments
5 hours 56 min ago
6 hours 56 min ago
9 hours 40 min ago
10 hours 6 min ago
10 hours 37 min ago
11 hours 25 min ago
11 hours 48 min ago
12 hours 31 min ago
13 hours 52 min ago
14 hours 21 min ago