| | 58 | |
| | 59 | == cleaning up == |
| | 60 | |
| | 61 | Cleaning up after a backup should be done simply and logically. First unmount both volumes (and sync disks just to be sure): |
| | 62 | |
| | 63 | {{{ |
| | 64 | umount /var/local/backups/calhome.$TODAY |
| | 65 | umount /var/local/backups/calhome-target.$TODAY |
| | 66 | sync |
| | 67 | }}} |
| | 68 | |
| | 69 | dispose of the snapshot: |
| | 70 | |
| | 71 | {{{ |
| | 72 | lvremove -f /dev/vghome_jupiter/calhome.$TODAY |
| | 73 | }}} |
| | 74 | |
| | 75 | deactivate the target volume: |
| | 76 | |
| | 77 | {{{ |
| | 78 | lvchange -an /dev/vgbackup0_jupiter/backup0 |
| | 79 | }}} |
| | 80 | |
| | 81 | You should now be able to remove the disk. |