Changes between Version 27 and Version 28 of jazz/DRBL_Xen


Ignore:
Timestamp:
Jul 28, 2008, 11:13:45 PM (16 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/DRBL_Xen

    v27 v28  
    166166   * Step 3: creat a shell script to mount /boot for each node.
    167167{{{
    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)
     168drbl-srv:~# vi mount_boot
     169drbl-srv:~# /opt/drbl/sbin/drbl-cp-host mount_boot /etc/init.d/
     170drbl-srv:~# /opt/drbl/sbin/drbl-client-service mount_boot on
     171}}}
     172     * Here is mount_boot
    204173{{{
    205174#! /bin/sh