Deleting a vps

From PrgmrWiki
Revision as of 23:01, 9 August 2011 by Nick (talk | contribs)

To delete a vps for a cancelled customer, first we run the script which tries to shutdown the domU, then moves (mv) the /etc/xen/ file to /etc/xen/cancelled/. This way, it can't be started again if the customer logs in. Later when we need more disk space, we look in /etc/xen/cancelled/ for files older than a month or so (ls -ltc /etc/xen/cancelled/) and run diskdelete on their disks to free the space. diskdelete can be run with -f to give force options to unpartitioning the disk and removing the logical volume. Of course, many variations on this process might make sense in various situations.