Changes between Version 1 and Version 2 of decommission_kvm


Ignore:
Timestamp:
May 11, 2012, 3:05:29 PM (8 years ago)
Author:
Daniel Kahn Gillmor
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • decommission_kvm

    v1 v2  
    77== Shutting down the guest ==
    88
    9 We need the machine to be out of service so that we can wipe any sensitive data from the disks. In order to shutdown a guest so that it will not reboot, you'll need to be root@HOSTNAME.mayfirst.org.  From the host, issue the command:
     9We need the machine to be out of service so that we can wipe any sensitive data from the disks. In order to shutdown a guest so that it will not reboot, you'll need to be `root@HOSTNAME.mayfirst.org`.  From the host, issue the command:
    1010
    1111{{{
     
    1717== Removing the guest directory ==
    1818
    19 To ensure that the guest will not come back online, ever, you should remove the guest kvm directory with the following command as root@HOSTNAME.mayfirst.org.
     19To ensure that the guest will not come back online, ever, you should remove the guest kvm directory with the following command as `root@HOSTNAME.mayfirst.org.`:
    2020
    2121{{{
     
    2525== Ensure all sensitive data is overwritten ==
    2626
    27 For this step, login as GUESTNAME@HOSTNAME.mayfirst.org to ensure that you do not overwrite data for other guests.  Here we'll issue a dd command that writes zeros across the entire logical volume.  The command is:
     27For this step, login as `GUESTNAME@HOSTNAME.mayfirst.org` to ensure that you do not overwrite data for other guests.  Here we'll issue a dd command that writes zeros across the entire logical volume.  The command is:
    2828
    2929{{{
     
    3131}}}
    3232
    33 A real world example would be '''dd if=/dev/zero of=/dev/mapper/vg_ken0-bataille bs=1M'''
     33A real world example would be:
     34{{{
     350 bataille@ken:~$ dd if=/dev/zero of=/dev/mapper/vg_ken0-bataille bs=1M
     36dd: writing `/dev/mapper/vg_ken0-bataille': No space left on device
     3710001+0 records in
     3810000+0 records out
     3910485760000 bytes (10 GB) copied, 500.62382 s, 18.6 MB/s
     401 bataille@ken:~$
     41}}}
    3442
    3543Once this command finishes running, you can return the logical volume to the volume group.
     
    3745== Removing a Logical Volume ==
    3846
    39 From root@HOSTNAME.mayfirst.org check the volume group with:
     47From `root@HOSTNAME.mayfirst.org` check the volume group with:
    4048
    4149{{{