xen-drbd

changeset 19:128f4bc3f522

installation pathes and defaults
author igor
date Sun Feb 17 11:50:53 2008 +0200 (2008-02-17)
parents 0aa17b693e59
children 1a20c33686ba
files INSTALL default-xen-drbd
line diff
     1.1 --- a/INSTALL	Sun Feb 17 11:38:43 2008 +0200
     1.2 +++ b/INSTALL	Sun Feb 17 11:50:53 2008 +0200
     1.3 @@ -1,8 +1,21 @@
     1.4  #!/bin/sh
     1.5  
     1.6  ROOT=/
     1.7 -DEST_DIR=/usr/bin
     1.8 +DEST_DIR=/usr/local/sbin
     1.9  
    1.10 +echo -------------------------------------------------
    1.11 +echo Installation of xen-drbd to $ROOT$DEST_DIR
    1.12 +echo -------------------------------------------------
    1.13 +set -x
    1.14 +cp xen-drbd.py ${ROOT}/${DEST_DIR}
    1.15 +cp xen-drbd-install.py ${ROOT}/${DEST_DIR}
    1.16 +set +x
    1.17 +
    1.18 +echo -------------------------------------------------
    1.19 +echo Installing of xen-drbd configs and boot scripts to /etc:
    1.20 +echo -------------------------------------------------
    1.21 +
    1.22 +set -x
    1.23  cp init.d-xen-drbd ${ROOT}/etc/init.d/xen-drbd
    1.24  chmod +x ${ROOT}/etc/init.d/xen-drbd
    1.25  
    1.26 @@ -11,18 +24,21 @@
    1.27  
    1.28  cp default-xen-drbd ${ROOT}/etc/default/xen-drbd
    1.29  cp xen-drbd-start.py ${ROOT}/etc/xen/xen-drbd-start
    1.30 -cp xen-drbd.py ${ROOT}/${DEST_DIR}
    1.31 +set +x
    1.32 +
    1.33  
    1.34  for i in 2 3 4 5
    1.35  do
    1.36 -	ln -sf ../init.d/xen-drbd ${ROOT}/etc/rc$i.d/S95xen-drbd
    1.37 -	#rm /etc/rc$i.d/S22xen-drbd
    1.38 +    set -x
    1.39 +    ln -sf ../init.d/xen-drbd ${ROOT}/etc/rc$i.d/S95xen-drbd
    1.40 +    set +x
    1.41  done
    1.42  
    1.43  for i in 0 1 6
    1.44  do
    1.45 -	ln -sf ../init.d/xen-drbd ${ROOT}/etc/rc$i.d/K05xen-drbd
    1.46 -	#rm /etc/rc$i.d/K21xen-drbd
    1.47 +    set -x
    1.48 +    ln -sf ../init.d/xen-drbd ${ROOT}/etc/rc$i.d/K05xen-drbd
    1.49 +    set +x
    1.50  done
    1.51  
    1.52  
     2.1 --- a/default-xen-drbd	Sun Feb 17 11:38:43 2008 +0200
     2.2 +++ b/default-xen-drbd	Sun Feb 17 11:50:53 2008 +0200
     2.3 @@ -1,5 +1,5 @@
     2.4 -XEN_DRBD_PATH='/usr/local/bin'
     2.5 -TOPOLOGY_NAME='eb'
     2.6 +XEN_DRBD_PATH='/usr/local/sbin'
     2.7 +TOPOLOGY_NAME='od'
     2.8  START_ACTION=nothing 	# migrate-and-start-all
     2.9  STOP_ACTION=nothing	# migrate-all-out
    2.10