Changes between Version 1 and Version 2 of decommission_kvm
- Timestamp:
- May 11, 2012, 7:05:29 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
decommission_kvm
v1 v2 7 7 == Shutting down the guest == 8 8 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: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: 10 10 11 11 {{{ … … 17 17 == Removing the guest directory == 18 18 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.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.`: 20 20 21 21 {{{ … … 25 25 == Ensure all sensitive data is overwritten == 26 26 27 For this step, login as GUESTNAME@HOSTNAME.mayfirst.orgto 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: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: 28 28 29 29 {{{ … … 31 31 }}} 32 32 33 A real world example would be '''dd if=/dev/zero of=/dev/mapper/vg_ken0-bataille bs=1M''' 33 A real world example would be: 34 {{{ 35 0 bataille@ken:~$ dd if=/dev/zero of=/dev/mapper/vg_ken0-bataille bs=1M 36 dd: writing `/dev/mapper/vg_ken0-bataille': No space left on device 37 10001+0 records in 38 10000+0 records out 39 10485760000 bytes (10 GB) copied, 500.62382 s, 18.6 MB/s 40 1 bataille@ken:~$ 41 }}} 34 42 35 43 Once this command finishes running, you can return the logical volume to the volume group. … … 37 45 == Removing a Logical Volume == 38 46 39 From root@HOSTNAME.mayfirst.orgcheck the volume group with:47 From `root@HOSTNAME.mayfirst.org` check the volume group with: 40 48 41 49 {{{