Changes between Version 13 and Version 14 of krg_DRBL
- Timestamp:
- Feb 25, 2008, 10:26:17 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
krg_DRBL
v13 v14 28 28 * Install Basic Package 29 29 {{{ 30 sudo aptitude install gcc-3.3 automake autoconf libtool initramfs-tools make31 sudo aptitude install kernel-package libncurses5-dev build-essential fakeroot wget bzip232 sudo aptitude install xmlto lsb-release33 sudo aptitude install nfsbooted30 $ 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 34 34 }}} 35 35 36 36 * Download Kerighed tar ball 37 37 {{{ 38 cd /usr/src39 sudo wget https://gforge.inria.fr/frs/download.php/3791/kerrighed-2.2.1.tar.gz40 sudo wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.tar.bz241 42 sudo tar -zxvf kerrighed-2.2.0.tar.gz43 sudo tar -jxvf linux-2.6.20.tar.bz238 $ 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 44 44 }}} 45 45 46 46 * Config and make Kerrighed-enable kernel, modules 47 47 {{{ 48 cd kerrighed-2.2.049 sudo ./configure --with-kernel=/usr/src/linux-2.6.20 --disable-kernel-config --with-kernel-config=/usr/src/linux-2.6.20/.config50 sudo make patch51 52 sudo mv /bin/sh /bin/sh.old53 sudo ln -s /bin/bash /bin/sh48 $ 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 54 54 (Ubuntu default sh is link to dash) 55 55 56 56 (1)Choose kernel options 57 cd ../linux-2.6.2058 sudo make defconfig59 sudo make menuconfig57 $ cd ../linux-2.6.20 58 $ sudo make defconfig 59 $ sudo make menuconfig 60 60 (0.If your CPU arch is intel, choose i386 61 61 1.Cancel Preemption, KEYS and SMP options … … 64 64 65 65 (2)Make 66 cd /usr/src/kerrighed-2.2.067 sudo make kernel68 sudo make69 sudo make kernel-install70 sudo make install66 $ cd /usr/src/kerrighed-2.2.0 67 $ sudo make kernel 68 $ sudo make 69 $ sudo make kernel-install 70 $ sudo make install 71 71 }}} 72 72 73 73 * Make initrd image 74 74 {{{ 75 sudo mkinitramfs -o /boot/initrd.img-2.6.20-krg 2.6.20-krg76 sudo vim /boot/grub/menu.lst75 $ sudo mkinitramfs -o /boot/initrd.img-2.6.20-krg 2.6.20-krg 76 $ sudo vim /boot/grub/menu.lst 77 77 78 78 (ex: … … 88 88 * Config nodes information 89 89 {{{ 90 vim /etc/kerrighed_nodes90 $ vim /etc/kerrighed_nodes 91 91 (ex: 92 92 session=7 … … 108 108 * Add deb source 109 109 {{{ 110 sudo vim /etc/apt/sources.list110 $ sudo vim /etc/apt/sources.list 111 111 (add : deb http://free.nchc.org.tw/drbl-core drbl stable) 112 112 113 wget http://drbl.nchc.org.tw/GPG-KEY-DRBL sudo apt-key add GPG-KEY-DRBL114 sudo apt-get update113 $ wget http://drbl.nchc.org.tw/GPG-KEY-DRBL sudo apt-key add GPG-KEY-DRBL 114 $ sudo apt-get update 115 115 }}} 116 116 … … 131 131 132 132 {{{ 133 sudo aptitude install drbl133 $ sudo aptitude install drbl 134 134 (DRBL will be installed in directory /opt/drbl ) 135 135 136 sudo /opt/drbl/sbin/drblsrv -i137 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` 138 138 (The command used interactive mothod help user to install. It install related packages (nfs, dhcp, tftp......) and create /tftpboot directory. The /tftpboot include: 139 139 nbi_img: kenrel , initrd image and grub menu … … 142 142 ) 143 143 144 sudo /opt/drbl/sbin/drblpush -i144 $ sudo /opt/drbl/sbin/drblpush -i 145 145 (the command will deploy client environment, like client name, DRBL mode, swap ...) 146 146 }}} … … 148 148 * Setup each node's grub menu 149 149 {{{ 150 cd /tftpboot/nbi_im/pxelinux.cfg150 $ cd /tftpboot/nbi_im/pxelinux.cfg 151 151 (named rule is IP's hexadecimal 152 152 ex. 192.168.0.2 -> C0A80002) 153 153 154 cp default C0A80002155 vim C0A80002154 $ cp default C0A80002 155 $ vim C0A80002 156 156 ( add node_id in append line: 157 157 ex. … … 171 171 {{{ 172 172 If kerrighed module don't auto load when booting: 173 sudo /etc/init.d/kerrighed start173 $ sudo /etc/init.d/kerrighed start 174 174 (all node must load, and we can use command dmesg see node message 175 175 ex. … … 178 178 ) 179 179 180 sudo krgadm cluster start180 $ sudo krgadm cluster start 181 181 (Kerrighed is running on 7 nodes) 182 182 183 top183 $ top 184 184 (we cane see all clients' CPU and Memory are combined 185 185 ex. … … 206 206 * Test Kerrighed command 207 207 {{{ 208 sudo krgadm nodes status208 $ sudo krgadm nodes status 209 209 (ex. 210 210 [rock@krg002 ~]$ krgadm nodes … … 212 212 ) 213 213 214 sudo krgcapset -s214 $ sudo krgcapset -s 215 215 (ex. 216 216 Permitted Capabilities: 037777777777 … … 234 234 {{{ 235 235 DRBL Server: 236 mkdir /home/ker ; chmod 777 /home/ker237 cd /home/ker238 wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.22.tar.gz239 tar zxvf linux-2.6.22.tar.gz236 $ 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 240 240 241 241 Client: 242 krgcapset -d +CAN_MIGRATE243 cd /home/linux-2.6.22244 sudo make -j 24 bzImage245 sudo dmesg242 $ krgcapset -d +CAN_MIGRATE 243 $ cd /home/linux-2.6.22 244 $ sudo make -j 24 bzImage 245 $ sudo dmesg 246 246 (you can command dmesg to see message of process migration 247 247 ex.