Difference between revisions of "Deleting a vps"

From PrgmrWiki
m (Reverted edits by 190.48.104.24 (talk) to last revision by Rlonstein)
Line 1: Line 1:
To delete a vps for a cancelled customer, first we run the domUcancel.sh 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.
+
To delete a vps for a cancelled customer, first we run the domUcancel.sh 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.  
 +
*"find /etc/xen/cancelled -ctime 90" will print all the files with ctime older than 90 days in /etc/xen/cancelled

Revision as of 07:11, 20 November 2012

To delete a vps for a cancelled customer, first we run the domUcancel.sh 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.

  • "find /etc/xen/cancelled -ctime 90" will print all the files with ctime older than 90 days in /etc/xen/cancelled