3 # If this script is interrupted, it may not clean up after itself.
4 # In particular, it may leave ${TARGET}1 mounted somewhere in tmp.
5 # Unmount it, then kpartx -d $TARGET to clean up.
17 #LVSIZE=`lvs --noheadings --units M --nosuffix -o Size /dev/xenvg/d_foobar_hda | sed 's/\..*//'`
20 IP=`host $HOSTNAME.xvm.mit.edu | sed 's/.* //' | head -n 1`
23 export TARGET=/dev/mapper/xenvg-d_$(echo "$HOSTNAME" | sed -e 's/-/--/g')_hda
25 /usr/sbin/sipb-xen-create-image