| | 126 | |
| | 127 | {{{ |
| | 128 | sudo aptitude install drbl |
| | 129 | (DRBL will be installed in directory /opt/drbl ) |
| | 130 | |
| | 131 | sudo /opt/drbl/sbin/drblsrv -i |
| | 132 | sudo /opt/drbl/sbin/drblpush-offline -s `uname -r` |
| | 133 | (The command used interactive mothod help user to install. It install related packages (nfs, dhcp, tftp......) and create /tftpboot directory. The /tftpboot include: |
| | 134 | nbi_img: kenrel , initrd image and grub menu |
| | 135 | node_root: server directories copy |
| | 136 | nodes: each nodes' individual directories |
| | 137 | ) |
| | 138 | |
| | 139 | sudo /opt/drbl/sbin/drblpush -i |
| | 140 | (the command will deploy client environment, like client name, DRBL mode, swap ...) |
| | 141 | }}} |
| | 142 | |
| | 143 | * setup each node's grub menu |
| | 144 | {{{ |
| | 145 | cd /tftpboot/nbi_im/pxelinux.cfg |
| | 146 | (named rule is IP's hexadecimal |
| | 147 | ex. 192.168.0.2 -> C0A80002) |
| | 148 | |
| | 149 | cp default C0A80002 |
| | 150 | vim C0A80002 |
| | 151 | ( add node_id in append line: |
| | 152 | ex. |
| | 153 | label drbl |
| | 154 | MENU DEFAULT |
| | 155 | # MENU HIDE |
| | 156 | MENU LABEL Ubuntu 7.04 Linux (DRBL mode, mostly local resources) |
| | 157 | # MENU PASSWD |
| | 158 | kernel vmlinuz-pxe |
| | 159 | append initrd=initrd-pxe.img devfs=nomount drblthincli=off selinux=0 node_id=0 session_id=9 |
| | 160 | ) |
| | 161 | }}} |
| | 162 | |
| | 163 | == test GPFS == |
| | 164 | * running |
| | 165 | {{{ |
| | 166 | If kerrighed module don't auto load when booting: |
| | 167 | sudo /etc/init.d/kerrighed start |
| | 168 | (all node must load, and we can use command dmesg see node message |
| | 169 | ex. |
| | 170 | TIPC: Established link <1.1.1:eth0-1.1.3:eth0> on network plane A |
| | 171 | krg_node_arrival: 2 |
| | 172 | ) |
| | 173 | |
| | 174 | sudo krgadm cluster start |
| | 175 | (Kerrighed is running on 7 nodes) |
| | 176 | |
| | 177 | top |
| | 178 | (we cane see all clients' CPU and Memory are combined |
| | 179 | ex. |
| | 180 | top - 18:53:16 up 10 min, 2 users, load average: 0.10, 0.07, 0.04 |
| | 181 | Tasks: 221 total, 1 running, 220 sleeping, 0 stopped, 0 zombie |
| | 182 | Cpu0 : 0.7%us, 0.3%sy, 0.0%ni, 98.6%id, 0.2%wa, 0.0%hi, 0.1%si, 0.0%st |
| | 183 | Cpu1 : 0.7%us, 0.3%sy, 0.0%ni, 98.6%id, 0.2%wa, 0.0%hi, 0.1%si, 0.0%st |
| | 184 | Cpu2 : 0.7%us, 0.3%sy, 0.0%ni, 98.7%id, 0.2%wa, 0.0%hi, 0.1%si, 0.0%st |
| | 185 | Cpu3 : 0.8%us, 0.4%sy, 0.0%ni, 98.4%id, 0.3%wa, 0.0%hi, 0.1%si, 0.0%st |
| | 186 | Cpu4 : 0.8%us, 0.4%sy, 0.0%ni, 98.5%id, 0.2%wa, 0.0%hi, 0.1%si, 0.0%st |
| | 187 | Cpu5 : 0.7%us, 0.4%sy, 0.0%ni, 98.5%id, 0.2%wa, 0.0%hi, 0.1%si, 0.0%st |
| | 188 | Cpu6 : 0.8%us, 0.3%sy, 0.0%ni, 98.6%id, 0.2%wa, 0.0%hi, 0.1%si, 0.0%st |
| | 189 | Mem: 14530264k total, 1508584k used, 13021680k free, 560k buffers |
| | 190 | Swap: 2650684k total, 0k used, 2650684k free, 1282652k cached |
| | 191 | |
| | 192 | PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND |
| | 193 | 1 root 15 0 1580 548 480 S 0 0.0 0:00.30 init.orig |
| | 194 | 2 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0 |
| | 195 | 3 root RT 0 0 0 0 S 0 0.0 0:00.00 watchdog/0 |
| | 196 | 4 root 10 -5 0 0 0 S 0 0.0 0:00.00 events/0 |
| | 197 | ) |
| | 198 | }}} |
| | 199 | |
| | 200 | * test Kerrighed command |
| | 201 | {{{ |
| | 202 | sudo krgadm nodes status |
| | 203 | (ex. |
| | 204 | [rock@krg002 ~]$ krgadm nodes |
| | 205 | 0:1 1:1 2:1 3:1 4:1 5:1 6:1 |
| | 206 | ) |
| | 207 | |
| | 208 | sudo krgcapset -s |
| | 209 | (ex. |
| | 210 | Permitted Capabilities: 037777777777 |
| | 211 | CHANGE_KERRIGHED_CAP, CAN_MIGRATE, DISTANT_FORK, FORK_DELAY |
| | 212 | CHECKPOINTABLE, USE_REMOTE_MEMORY, USE_INTRA_CLUSTER_KERSTREAMS |
| | 213 | USE_INTER_CLUSTER_KERSTREAMS, USE_WORLD_VISIBLE_KERSTREAMS |
| | 214 | SEE_LOCAL_PROC_STAT |
| | 215 | Effective Capabilities: 01 |
| | 216 | CHANGE_KERRIGHED_CAP |
| | 217 | Inheritable Permitted Capabilities: 037777777777 |
| | 218 | CHANGE_KERRIGHED_CAP, CAN_MIGRATE, DISTANT_FORK, FORK_DELAY |
| | 219 | CHECKPOINTABLE, USE_REMOTE_MEMORY, USE_INTRA_CLUSTER_KERSTREAMS |
| | 220 | USE_INTER_CLUSTER_KERSTREAMS, USE_WORLD_VISIBLE_KERSTREAMS |
| | 221 | SEE_LOCAL_PROC_STAT |
| | 222 | Inheritable Effective Capabilities: 01 |
| | 223 | CHANGE_KERRIGHED_CAP |
| | 224 | ) |
| | 225 | }}} |
| | 226 | |
| | 227 | * Test process migration |
| | 228 | {{{ |
| | 229 | DRBL Server: |
| | 230 | mkdir /home/ker ; chmod 777 /home/ker |
| | 231 | cd /home/ker |
| | 232 | wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.22.tar.gz |
| | 233 | tar zxvf linux-2.6.22.tar.gz |
| | 234 | |
| | 235 | Client: |
| | 236 | krgcapset -d +CAN_MIGRATE |
| | 237 | cd /home/linux-2.6.22 |
| | 238 | sudo make -j 24 bzImage |
| | 239 | sudo dmesg |
| | 240 | (you can command dmesg to see message of process migration |
| | 241 | ex. |
| | 242 | send_kerrighed_signal: 36647 (Migration Mgr) -> 36885 (bzip2) |
| | 243 | send_kerrighed_signal: 36647 (Migration Mgr) -> 37449 (cc1) |
| | 244 | send_kerrighed_signal: 36647 (Migration Mgr) -> 39064 (cc1) |
| | 245 | send_kerrighed_signal: 36647 (Migration Mgr) -> 39234 (cc1) |
| | 246 | send_kerrighed_signal: 36647 (Migration Mgr) -> 39269 (cc1) |
| | 247 | send_kerrighed_signal: 36647 (Migration Mgr) -> 39325 (cc1) |
| | 248 | send_kerrighed_signal: 36647 (Migration Mgr) -> 39402 (cc1) |
| | 249 | send_kerrighed_signal: 36647 (Migration Mgr) -> 39465 (cc1) |
| | 250 | send_kerrighed_signal: 36647 (Migration Mgr) -> 39543 (cc1) |
| | 251 | send_kerrighed_signal: 36647 (Migration Mgr) -> 39599 (cc1) |
| | 252 | send_kerrighed_signal: 36647 (Migration Mgr) -> 39660 (cc1) |
| | 253 | ) |
| | 254 | }}} |
| | 255 | |
| | 256 | == Reference == |
| | 257 | |
| | 258 | DRBL |
| | 259 | http://drbl.sourceforge.net/ |
| | 260 | [[BR]] |
| | 261 | Kerrighed |
| | 262 | http:///www.kerrighed.org/wiki/index.php/Main_Page |