svn path=/trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/; revision=132
web lvcreate /usr/sbin/sipb-xen-lvcreate /etc/remctl/acl/web
web lvremove /usr/sbin/sipb-xen-lvremove /etc/remctl/acl/web
+web lvrename /usr/sbin/sipb-xen-lvrename /etc/remctl/acl/web
web vmboot /usr/sbin/sipb-xen-boot /etc/remctl/acl/web
web register /usr/sbin/remctl-update.sh /etc/remctl/acl/web
+web moveregister /usr/sbin/remctl-update.sh /etc/remctl/acl/web
web unregister /usr/sbin/remctl-update.sh /etc/remctl/acl/web
web remctl-moira-update /usr/sbin/remctl-update.sh /etc/remctl/acl/web
web listvms /usr/sbin/sipb-xen-listvms /etc/remctl/acl/web
rm -f "$MACHINEDIR"/"$machine"
"$0" web
;;
+ moveregister)
+ oldmachine="$2"
+ newmachine="$3"
+ mv "$ACLDIR"/"$oldmachine" "$ACLDIR"/"$newmachine"
+ rm -f "$MACHINEDIR"/"$oldmachine"
+ "$0" web
+ ;;
register)
machine="$2"
if [ "$machine" == "Domain-0" ]; then
--- /dev/null
+#!/bin/sh
+oldmachine="$2"
+newmachine="$3"
+disk="$4"
+
+if [ -e /etc/remctl/sipb-xen-auto/acl/"$oldmachine" ]; then
+ /sbin/lvrename xenvg "$oldmachine"_"$disk" "$newmachine"_"$disk"
+fi