cs526 logo
rainbow animatio

Homework #3. LVS Cluster

Goal:

Assignment Date: 3/11/2009
Due Day: Answer of Questions 3/16/2009 to dropbox; The hw3.html with exercise results 3/31/2009.
Related documents:

Description:

Logistics:

Part 1. Construct LVS-DR cluster.

Setup real server 1 (rs1):

Setup LVS DR director:

  • Test the LVS-DR cluster.
  • Summarize the above report as a web page hw3.html in your cs526 personal web page. Submitt the url.
  • Part 2.

    Q&A:

    1. Q: The machine which I choose to run director does not have ipvsadm installed. It suggests that I put cdrom with the origional ubuntu os, but remotely I can not access the machine? What should I do?

      Ans:

      You probably run the ipvsadm and got the friendly msg from ubuntu:

      csnet@r107:~$ sudo bash
      [sudo] password for csnet:
      root@r107:~# ipvsadm
      The program 'ipvsadm' is currently not installed.  You can install it by typing:
      apt-get install ipvsadm
      bash: ipvsadm: command not found
      root@r107:~# apt-get install ipvsadm
      Reading package lists... Done
      Building dependency tree      
      Reading state information... Done
      Suggested packages:
        heartbeat keepalived ldirectord
      The following NEW packages will be installed:
        ipvsadm
      0 upgraded, 1 newly installed, 0 to remove and 29 not upgraded.
      Need to get 0B/47.6kB of archives.
      After unpacking 242kB of additional disk space will be used.
      Media change: please insert the disc labeled
       'Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386 (20071016)'
      in the drive '/cdrom/' and press enter

      Unfortunately, remotely we cannot load the cdrom which contain a copy of related software package.
      To tell apt-get not to search the software package on original cdrom and search the mirror site instead, try the following

      • sudo vi /etc/apt/sources.list
        sources.list indicates the order of the search list for software packages.
      • Comment out  line 4 by putting # in front of the line, as follows:
        #deb cdrom:[Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted
      • sudo apt-get install ipvsadm

      Now we get
      root@r107:~# apt-get install ipvsadm
      Reading package lists... Done
      Building dependency tree      
      Reading state information... Done
      Suggested packages:
        heartbeat keepalived ldirectord
      The following NEW packages will be installed:
        ipvsadm
      0 upgraded, 1 newly installed, 0 to remove and 29 not upgraded.
      Need to get 47.6kB of archives.
      After unpacking 242kB of additional disk space will be used.
      Get:1 http://us.archive.ubuntu.com gutsy/main ipvsadm 1.24+1.21-1.4ubuntu1 [47.6kB]
      Fetched 47.6kB in 0s (62.1kB/s)
      Preconfiguring packages ...
      Selecting previously deselected package ipvsadm.
      (Reading database ... 17971 files and directories currently installed.)
      Unpacking ipvsadm (from .../ipvsadm_1.24+1.21-1.4ubuntu1_i386.deb) ...
      Setting up ipvsadm (1.24+1.21-1.4ubuntu1) ...

      root@r107:~# ipvsadm
      IP Virtual Server version 1.2.1 (size=4096)
      Prot LocalAddress:Port Scheduler Flags
        -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
      root@r107:~#