Changes between Version 26 and Version 27 of jazz/DRBL_Xen


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

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/DRBL_Xen

    v26 v27  
    159159 $nfsserver:$drblroot/$ip/var      /var    nfs     $FSTAB_NFS_RW_OPT
    160160 $nfsserver:$drblroot/$ip/root     /root   nfs     $FSTAB_NFS_RW_OPT
    161 +$nfsserver:/boot            /boot       nfs    $FSTAB_NFS_RO_OPT
     161+$nfsserver:/boot            /tmp/boot   nfs    $FSTAB_NFS_RO_OPT
    162162 $nfsserver:/usr             /usr        nfs    $FSTAB_NFS_RO_OPT
    163163 $nfsserver:/opt             /opt        nfs    $FSTAB_NFS_RO_OPT
    164164 $nfsserver:/home            /home       nfs    $FSTAB_NFS_RW_OPT
    165165}}}
    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{{{
     168drbl-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
     181esac
     182
     183exit 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
     206set -e
     207
     208# /etc/init.d/mount_boot: mount /boot for DRBL Client which is Xen enabled.
     209
     210export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
     211
     212case "$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
     228esac
     229
     230exit 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'''.
    167233
    168234== Reference ==