166 | | * Step 3: run '''/opt/drbl/sbin/dcs -> re-deploy''' or '''/opt/drbl/sbin/drblpush -c /etc/drbl/drblpush.conf''' to replace current '''/etc/exports'''. |
| 166 | * Step 3: creat a shell script to mount /boot for each node. |
| 167 | {{{ |
| 168 | drbl-srv:~# cat << EOF > mount_boot |
| 169 | > #! /bin/sh |
| 170 | > set -e |
| 171 | > |
| 172 | > # /etc/init.d/mount_boot: mount /boot for DRBL Client which is Xen enabled. |
| 173 | > |
| 174 | > export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" |
| 175 | > |
| 176 | > case "$1" in |
| 177 | > start) |
| 178 | *) |
| 179 | echo "Usage: /etc/init.d/ssh {start|stop}" |
| 180 | exit 1 |
| 181 | esac |
| 182 | |
| 183 | exit 0 |
| 184 | > mkdir -p /tmp/boot |
| 185 | > echo -n "mounting /boot:" |
| 186 | > mount /boot |
| 187 | > echo "[OK]" |
| 188 | > ;; |
| 189 | > stop) |
| 190 | > echo -n "unmounting /boot:" |
| 191 | > umount /boot |
| 192 | > echo "[OK]" |
| 193 | > ;; |
| 194 | > |
| 195 | > *) |
| 196 | > echo "Usage: /etc/init.d/ssh {start|stop}" |
| 197 | > exit 1 |
| 198 | > esac |
| 199 | > |
| 200 | > exit 0 |
| 201 | > EOF |
| 202 | }}} |
| 203 | * (following is for copy and paste) |
| 204 | {{{ |
| 205 | #! /bin/sh |
| 206 | set -e |
| 207 | |
| 208 | # /etc/init.d/mount_boot: mount /boot for DRBL Client which is Xen enabled. |
| 209 | |
| 210 | export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" |
| 211 | |
| 212 | case "$1" in |
| 213 | start) |
| 214 | mkdir -p /tmp/boot |
| 215 | echo -n "mounting /boot:" |
| 216 | mount /boot |
| 217 | echo "[OK]" |
| 218 | ;; |
| 219 | stop) |
| 220 | echo -n "unmounting /boot:" |
| 221 | umount /boot |
| 222 | echo "[OK]" |
| 223 | ;; |
| 224 | |
| 225 | *) |
| 226 | echo "Usage: /etc/init.d/ssh {start|stop}" |
| 227 | exit 1 |
| 228 | esac |
| 229 | |
| 230 | exit 0 |
| 231 | }}} |
| 232 | * Step 4: run '''/opt/drbl/sbin/dcs -> re-deploy''' or '''/opt/drbl/sbin/drblpush -c /etc/drbl/drblpush.conf''' to replace current '''/etc/exports'''. |