Changes between Version 13 and Version 14 of krg_DRBL


Ignore:
Timestamp:
Feb 25, 2008, 10:26:17 AM (17 years ago)
Author:
rock
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • krg_DRBL

    v13 v14  
    2828 * Install Basic Package
    2929{{{
    30 sudo aptitude install gcc-3.3 automake autoconf libtool initramfs-tools make
    31 sudo aptitude install kernel-package libncurses5-dev build-essential fakeroot wget bzip2
    32 sudo aptitude install xmlto lsb-release
    33 sudo aptitude install nfsbooted
     30$ sudo aptitude install gcc-3.3 automake autoconf libtool initramfs-tools make
     31$ sudo aptitude install kernel-package libncurses5-dev build-essential fakeroot wget bzip2
     32$ sudo aptitude install xmlto lsb-release
     33$ sudo aptitude install nfsbooted
    3434}}}
    3535
    3636 * Download Kerighed tar ball
    3737{{{
    38 cd /usr/src
    39 sudo wget https://gforge.inria.fr/frs/download.php/3791/kerrighed-2.2.1.tar.gz
    40 sudo wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.tar.bz2
    41 
    42 sudo tar -zxvf kerrighed-2.2.0.tar.gz
    43 sudo tar -jxvf linux-2.6.20.tar.bz2
     38$ cd /usr/src
     39$ sudo wget https://gforge.inria.fr/frs/download.php/3791/kerrighed-2.2.1.tar.gz
     40$ sudo wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.tar.bz2
     41
     42$ sudo tar -zxvf kerrighed-2.2.1.tar.gz
     43$ sudo tar -jxvf linux-2.6.20.tar.bz2
    4444}}}
    4545
    4646 * Config and make Kerrighed-enable kernel, modules
    4747{{{
    48 cd kerrighed-2.2.0
    49 sudo ./configure --with-kernel=/usr/src/linux-2.6.20 --disable-kernel-config --with-kernel-config=/usr/src/linux-2.6.20/.config
    50 sudo make patch
    51 
    52 sudo mv /bin/sh /bin/sh.old
    53 sudo ln -s /bin/bash /bin/sh
     48$ cd kerrighed-2.2.0
     49$ sudo ./configure --with-kernel=/usr/src/linux-2.6.20 --disable-kernel-config --with-kernel-config=/usr/src/linux-2.6.20/.config
     50$ sudo make patch
     51
     52$ sudo mv /bin/sh /bin/sh.old
     53$ sudo ln -s /bin/bash /bin/sh
    5454(Ubuntu default sh is link to dash)
    5555
    5656(1)Choose kernel options
    57 cd ../linux-2.6.20
    58 sudo make defconfig
    59 sudo make menuconfig
     57$ cd ../linux-2.6.20
     58$ sudo make defconfig
     59$ sudo make menuconfig
    6060(0.If your CPU arch is intel, choose i386
    6161 1.Cancel Preemption, KEYS  and SMP options
     
    6464 
    6565(2)Make
    66 cd /usr/src/kerrighed-2.2.0
    67 sudo make kernel
    68 sudo make
    69 sudo make kernel-install
    70 sudo make install 
     66$ cd /usr/src/kerrighed-2.2.0
     67$ sudo make kernel
     68$ sudo make
     69$ sudo make kernel-install
     70$ sudo make install 
    7171}}}
    7272
    7373 * Make initrd image
    7474{{{
    75 sudo mkinitramfs -o /boot/initrd.img-2.6.20-krg 2.6.20-krg
    76 sudo vim /boot/grub/menu.lst
     75$ sudo mkinitramfs -o /boot/initrd.img-2.6.20-krg 2.6.20-krg
     76$ sudo vim /boot/grub/menu.lst
    7777
    7878(ex:
     
    8888 * Config nodes information
    8989{{{
    90 vim /etc/kerrighed_nodes
     90$ vim /etc/kerrighed_nodes
    9191(ex:
    9292session=7
     
    108108 * Add deb source
    109109{{{
    110 sudo vim /etc/apt/sources.list
     110$ sudo vim /etc/apt/sources.list
    111111(add :  deb http://free.nchc.org.tw/drbl-core drbl stable)
    112112
    113 wget http://drbl.nchc.org.tw/GPG-KEY-DRBL sudo apt-key add GPG-KEY-DRBL
    114 sudo apt-get update
     113$ wget http://drbl.nchc.org.tw/GPG-KEY-DRBL sudo apt-key add GPG-KEY-DRBL
     114$ sudo apt-get update
    115115}}}
    116116
     
    131131
    132132{{{
    133 sudo aptitude install drbl
     133$ sudo aptitude install drbl
    134134(DRBL will be installed in directory /opt/drbl )
    135135
    136 sudo /opt/drbl/sbin/drblsrv -i
    137 sudo /opt/drbl/sbin/drblpush-offline -s `uname -r`
     136$ sudo /opt/drbl/sbin/drblsrv -i
     137$ sudo /opt/drbl/sbin/drblpush-offline -s `uname -r`
    138138(The command used interactive mothod help user to install. It install related packages (nfs, dhcp, tftp......) and create /tftpboot directory. The /tftpboot include:
    139139nbi_img: kenrel , initrd image and grub menu
     
    142142)
    143143
    144 sudo /opt/drbl/sbin/drblpush -i
     144$ sudo /opt/drbl/sbin/drblpush -i
    145145(the command will deploy client environment, like client name, DRBL mode, swap ...)
    146146}}}
     
    148148 * Setup each node's grub menu
    149149{{{
    150 cd /tftpboot/nbi_im/pxelinux.cfg
     150$ cd /tftpboot/nbi_im/pxelinux.cfg
    151151(named rule is IP's hexadecimal 
    152152ex. 192.168.0.2  ->  C0A80002)
    153153
    154 cp default  C0A80002
    155 vim  C0A80002
     154$ cp default  C0A80002
     155$ vim  C0A80002
    156156( add node_id in append line:
    157157ex.
     
    171171{{{
    172172If kerrighed module don't auto load when booting:
    173 sudo /etc/init.d/kerrighed start
     173$ sudo /etc/init.d/kerrighed start
    174174(all node must load, and we can use command dmesg see node message
    175175ex.
     
    178178)
    179179
    180 sudo krgadm cluster start
     180$ sudo krgadm cluster start
    181181(Kerrighed is running on 7 nodes)
    182182
    183 top
     183$ top
    184184(we cane see all clients' CPU and Memory are combined
    185185ex.
     
    206206 * Test Kerrighed command
    207207{{{
    208 sudo krgadm nodes status
     208$ sudo krgadm nodes status
    209209(ex.
    210210[rock@krg002 ~]$ krgadm nodes
     
    212212)
    213213
    214 sudo krgcapset -s
     214$ sudo krgcapset -s
    215215(ex.
    216216Permitted Capabilities: 037777777777
     
    234234{{{
    235235DRBL Server:
    236 mkdir /home/ker ; chmod 777 /home/ker
    237 cd /home/ker
    238 wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.22.tar.gz
    239 tar zxvf linux-2.6.22.tar.gz
     236$ mkdir /home/ker ; chmod 777 /home/ker
     237$ cd /home/ker
     238$ wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.22.tar.gz
     239$ tar zxvf linux-2.6.22.tar.gz
    240240
    241241Client:
    242 krgcapset -d +CAN_MIGRATE
    243 cd /home/linux-2.6.22
    244 sudo make -j 24 bzImage
    245 sudo dmesg
     242$ krgcapset -d +CAN_MIGRATE
     243$ cd /home/linux-2.6.22
     244$ sudo make -j 24 bzImage
     245$ sudo dmesg
    246246(you can command dmesg to see message of process migration
    247247ex.