Getting High With Lenny - Page 6
Create a VserverNote that we already have mounted the LVM partition on /VSERVERS/web in an earlier step, we're going to place both the /var and /etc directories on the mountpoint and symlink to it, this way the complete Vserver and its config are available on the other node when mounted. mkdir -p /VSERVERS/web/etc mkdir -p /VSERVERS/web/barrier/var When making the Vserver it will be in the default location /var/lib/vservers/web and its config in /etc/vservers/web. newvserver --hostname web --domain example.com --ip 123.123.123.125/24 --dist etch --mirror http://123.123.123.81:3142/debian.apt-get.eu/debian --interface eth0 enter the root password Create a normal user account now? <-- no Choose software to install: <-- ok On node1 we move the Vserver directories to the LVM volume on the DRBD disks and make symlinks from the normal locations. On node1: mv /etc/vservers/web/* /VSERVERS/web/etc/ rmdir /etc/vservers/web/ ln -s /VSERVERS/web/etc /etc/vservers/web mv /var/lib/vservers/web/* /VSERVERS/web/barrier/var rmdir /var/lib/vservers/web/ ln -s /VSERVERS/web/barrier/var /var/lib/vservers/web We need to set the same symlinks on node2, but the we need the Vserver directories available there first. The mounting should be handled by heartbeat by now so we make our resources move to the other machine. On node1: /etc/init.d/heartbeat stop On node2: ln -s /VSERVERS/web/etc /etc/vservers/web ln -s /VSERVERS/web/barrier/var /var/lib/vservers/web On node1: /etc/init.d/heartbeat start Vserver web start and enjoy!
|



Recent comments
11 hours 33 min ago
13 hours 9 min ago
17 hours 29 min ago
21 hours 20 min ago
1 day 9 hours ago
1 day 15 hours ago
1 day 17 hours ago
1 day 19 hours ago
1 day 19 hours ago
1 day 20 hours ago