| 61 | * part_b) DRBL:[[BR]][[BR]] |
| 62 | * After you install DRBL server, you can follow the example when you execute "drblpush -i" to set up the client environments. Each machine need a host certificate for Globus, and its hostname needs to be fixed. In order to avoid modifying some congifuration files(ex:/etc/hosts) erery time and avoid starting Globus unsuccessfully, you need to let the DHCP service in DRBL server offer same IP address to the client every time when client boots.[[BR]][[BR]] |
| 63 | {{{ |
| 64 | root@drbl-srv:/opt/drbl# /opt/drbl/sbin/drblpush -i -l 0 |
| 65 | |
| 66 | ****************************************************** |
| 67 | Now we can collect the MAC address of clients! |
| 68 | If you want to let the DHCP service in DRBL server offer same IP |
| 69 | address to client every time when client boot, and you never did this |
| 70 | procedure, you should do it now! |
| 71 | If you already have those MAC addresses of clients, you can put them |
| 72 | into different group files (These files number is the same number of |
| 73 | networks cards for DRBL service). In this case, you can skip this |
| 74 | step. |
| 75 | This step helps you to record the MAC addresses of clients, then |
| 76 | divide them into different groups. It will save your time and reduce |
| 77 | the typos. |
| 78 | The MAC addresses will be recorded turn by turn according to the boot |
| 79 | of clients, |
| 80 | and they will be put into different files according to the network |
| 81 | card in server, file name will be like macadr-eth1.txt, |
| 82 | macadr-eth2.txt... You can find them in directory /etc/drbl. |
| 83 | Please boot the clients by order, make sure they boot from etherboot or PXE! |
| 84 | Do you want to collect them ? |
| 85 | [y/N] y |
| 86 | ****************************************************** |
| 87 | OK! Let's do it! |
| 88 | request_eth_port:eth1 |
| 89 | Stopping dhcp3-server ... |
| 90 | Stopping DHCP server: dhcpd3. |
| 91 | Stopping tftpd-hpa ... |
| 92 | Stopping HPA's tftpd: in.tftpd. |
| 93 | *****************************************************. |
| 94 | Start detecting MAC address.... |
| 95 | Enter 1 or press Enter to view the collecting status. |
| 96 | Enter 2 or q to finish collecting and quit. |
| 97 | 1 |
| 98 | ======================================= |
| 99 | 00:0C:29:FA:20:5A |
| 100 | 00:0C:29:EB:9E:2F |
| 101 | 00:0C:29:1B:19:1E |
| 102 | Total: 3 |
| 103 | ======================================= |
| 104 | Enter 1 or press Enter to view the collecting status. |
| 105 | Enter 2 or q to finish collecting and quit. |
| 106 | 2 |
| 107 | *****************************************************. |
| 108 | The collected MAC addresses from [eth1] are saved in file(s) |
| 109 | separately: macadr-eth1.txt. |
| 110 | These files are saved in directory /etc/drbl. |
| 111 | ****************************************************** |
| 112 | OK! Let's continue... |
| 113 | ****************************************************** |
| 114 | Do you want to let the DHCP service in DRBL server offer same IP |
| 115 | address to the client every time when client boots (If you want this |
| 116 | function, you have to collect the MAC addresses of clients, and save |
| 117 | them in file(s) (as in the previous procedure)). This is for the |
| 118 | clients connected to DRBL server's ethernet network interface eth1 ? |
| 119 | [y/N] y |
| 120 | ****************************************************** |
| 121 | OK! Please tell me the file name which contains the MAC address of |
| 122 | clients line by line for eth1. |
| 123 | [macadr-eth1.txt] |
| 124 | ****************************************************** |
| 125 | What is the initial number do you want to use in the last set of |
| 126 | digits in the IP (i.e. the initial value of d in the IP address |
| 127 | a.b.c.d) for DRBL clients connected to this ethernet port eth1. |
| 128 | [1] 10 |
| 129 | ****************************************************** |
| 130 | The file name you set is "macadr-eth1.txt". |
| 131 | The clients number in this file is 3. |
| 132 | We will set the IP address for the clients connected to DRBL server's |
| 133 | ethernet network interface eth1 By the MAC address file you set, the |
| 134 | IP addresses for the clients connected to DRBL server's ethernet |
| 135 | network interface eth1 as: 192.168.0.10 - 192.168.0.12 |
| 136 | Accept ? [Y/n] y |
| 137 | ****************************************************** |
| 138 | OK! Let's continue... |
| 139 | ****************************************************** |
| 140 | The Layout for your DRBL environment: |
| 141 | ****************************************************** |
| 142 | NIC NIC IP Clients |
| 143 | +-----------------------------+ |
| 144 | | DRBL SERVER | |
| 145 | | | |
| 146 | | +-- [eth0] 192.168.183.129 +- to WAN |
| 147 | | | |
| 148 | | +-- [eth1] 192.168.0.254 +- to clients group 1 [ 3 clients, their IP |
| 149 | | | from 192.168.0.10 - 192.168.0.12] |
| 150 | +-----------------------------+ |
| 151 | ****************************************************** |
| 152 | Total clients: 3 |
| 153 | ****************************************************** |
| 154 | Press Enter to continue... |
| 155 | }}} |
| 156 | * You need to modify two files: "/opt/drbl/sbin/drbl-nfs-exports" and "/opt/drbl/sbin/drbl-gen-client-files".[[BR]][[BR]] |
| 157 | * (1) /opt/drbl/sbin/drbl-nfs-exports |
| 158 | {{{ |
| 159 | In "for subnet in $subnet_list" loop, you should add one line. |
| 160 | |
| 161 | /usr/local/globus-4.2.0 $subnet.*($EXPORTS_NFS_RO_NRS_OPT) |
| 162 | |
| 163 | In "for ip in `get-client-ip-list`" loop, you should also add one line. |
| 164 | |
| 165 | /usr/local/globus-4.2.0 $ip($EXPORTS_NFS_RO_NRS_OPT) |
| 166 | |
| 167 | We assume that $GLOBUS_LOCATION is /usr/local/globus-4.2.0. |
| 168 | }}} |
| 169 | * (2) /opt/drbl/sbin/drbl-gen-client-files |
| 170 | {{{ |
| 171 | You only need to add one line. |
| 172 | |
| 173 | $nfsserver:/usr/local/globus-4.2.0 /usr/local/globus-4.2.0 nfs $FSTAB_NFS_RO_OPT |
| 174 | }}} |
| 175 | |