Ignore:
Timestamp:
Oct 9, 2007, 2:27:21 AM (17 years ago)
Author:
tabbott
Message:

1) reworking of lvm stuff into a single python script rather than a pile of shell scripts

2) changing naming for database VMs to always start with d_

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/files/usr/sbin/dispatch.sh

    r141 r146  
    1111
    1212ACTION=$(echo "$0" | awk -F'.' '{print $2}')
    13 MACHINE="$1"
     13ORIGMACHINE="$1"
     14MACHINE="d_$ORIGMACHINE"
    1415
    1516case "$ACTION" in
    1617    list|vcpu-list|destroy|create|uptime|shutdown)
    1718        xm "$ACTION" "$MACHINE"
    18         exit 0
    1919        ;;
    2020    reboot-with-cdrom)
    2121        xm shutdown "$MACHINE"
    22         xm create sipb-database machine_name="$MACHINE" cdrom_image="$2"
     22        xm create sipb-database machine_name="$ORIGMACHINE" cdrom_image="$2"
    2323        ;;
    2424    reboot)
    2525        if [ -n "$2" ]; then
    26             /usr/sbin/dispatch.reboot-with-cdrom.sh "$1" "$2" &
     26            /usr/sbin/dispatch.reboot-with-cdrom.sh "$ORIGMACHINE" "$2" &
    2727        else
    2828            xm reboot "$MACHINE"
Note: See TracChangeset for help on using the changeset viewer.