Changes between Version 10 and Version 11 of kiyoshi-recovery-2010-02
- Timestamp:
- Feb 8, 2010, 11:44:24 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
kiyoshi-recovery-2010-02
v10 v11 35 35 * Move with: 36 36 {{{ 37 pvmove --verbose --name vg_kiyoshi0/<logical-volume-name> <path/to/old/volume> /dev/sdc 37 pvmove --verbose --name vg_kiyoshi0/<logical-volume-name> <path/to/old/volume> /dev/sdc2 38 38 }}} 39 39 * Ensure /dev/sdb is no longer in use 40 40 {{{ 41 pvdisplay /dev/ dm-241 pvdisplay /dev/mapper/md2_crypt 42 42 }}} 43 43 … … 57 57 * Move testy partition to sdb 58 58 {{{ 59 pvmove --verbose vg_kiyoshi0/testy /dev/sdc /dev/dm-259 pvmove --verbose vg_kiyoshi0/testy /dev/sdc2 /dev/mapper/md2_crypt 60 60 }}} 61 61 * Create a file system … … 65 65 * Mount it 66 66 {{{ 67 mount /dev/mapper/vg_kiyoshi0-tes t /mnt67 mount /dev/mapper/vg_kiyoshi0-tesyt /mnt 68 68 }}} 69 69 * Create a file called postmark.conf: … … 116 116 {{{ 117 117 umount /mnt 118 pvmove --verbose --name vg_kiyoshi0/testy /dev/ dm-2 /dev/sdc118 pvmove --verbose --name vg_kiyoshi0/testy /dev/mapper/md2_crypt /dev/sdc2 119 119 }}} 120 120 * Remove as logical volume 121 121 {{{ 122 pvremove /dev/dm-2 122 pvremove /dev/mapper/md2_crypt 123 }}} 124 * Unmap crypto layer: 125 {{{ 126 cryptsetup luksClose md2_crypt 123 127 }}} 124 128 * Remove from RAID 125 129 {{{ 126 130 mdadm --fail /dev/md2 /dev/sdb2 131 ### shouldn't this remove /dev/md2 entirely? 127 132 mdadm --fail /dev/md0 /dev/sdb1 128 133 }}} … … 135 140 (parted) mklabel gpt 136 141 (parted) unit s 142 ### dkg thinks we should not go all the way to the end; rather, we should leave a bit of free space 143 ### this is because we don't know if the other disk is exactly the same size or not. 144 ### so we should change -1 to something several sectors in from the end. 137 145 (parted) mkpart primary ext2 40 -1 138 146 # parted will complain about end location, ignore … … 141 149 * Re-add to raid arrays: this step re-adds it to the LVM raid array it was previously a part of and adds it to the boot partition RAID array 142 150 {{{ 143 mdadm --add /dev/md2 /dev/sdb2151 mdadm /dev/md2 --create --level=mirror -n 2 /dev/sdb2 missing 144 152 mdadm --add /dev/md0 /dev/sdb1 153 }}} 154 * add crypto layer to md2 155 {{{ 156 cryptsetup luksFormat /dev/md2 157 cryptsetup luksOpen /dev/md2 md2_crypt 145 158 }}} 146 159 * Test to make sure this new partition means it really does write/read faster. 147 160 * Move test partition back and mount 148 161 {{{ 149 pvmove --verbose --name vg_kiyoshi0/testy /dev/sdc2 /dev/ dm-2162 pvmove --verbose --name vg_kiyoshi0/testy /dev/sdc2 /dev/mapper/md2_crypt 150 163 mount /dev/mapper/vg_kiyoshi0-test /mnt 151 164 }}}