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
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com
Red Hat Virtual Experience - a free virtual event. Dec. 9th





print: 
Recent comments
11 hours 51 min ago
17 hours 39 min ago
19 hours 30 min ago
21 hours 15 min ago
1 day 1 hour ago
1 day 6 hours ago
1 day 7 hours ago
1 day 11 hours ago
1 day 16 hours ago
1 day 22 hours ago