Changes between Version 10 and Version 11 of kiyoshi-recovery-2010-02


Ignore:
Timestamp:
Feb 8, 2010, 11:44:24 PM (14 years ago)
Author:
Daniel Kahn Gillmor
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • kiyoshi-recovery-2010-02

    v10 v11  
    3535   * Move with:
    3636{{{
    37 pvmove --verbose --name vg_kiyoshi0/<logical-volume-name> <path/to/old/volume> /dev/sdc
     37pvmove --verbose --name vg_kiyoshi0/<logical-volume-name> <path/to/old/volume> /dev/sdc2
    3838}}}
    3939  * Ensure /dev/sdb is no longer in use
    4040{{{
    41 pvdisplay /dev/dm-2
     41pvdisplay /dev/mapper/md2_crypt
    4242}}}
    4343
     
    5757   * Move testy partition to sdb
    5858{{{
    59 pvmove --verbose vg_kiyoshi0/testy /dev/sdc /dev/dm-2
     59pvmove --verbose vg_kiyoshi0/testy /dev/sdc2 /dev/mapper/md2_crypt
    6060}}}
    6161   * Create a file system
     
    6565   * Mount it
    6666{{{
    67 mount /dev/mapper/vg_kiyoshi0-test /mnt
     67mount /dev/mapper/vg_kiyoshi0-tesyt /mnt
    6868}}}
    6969   * Create a file called postmark.conf:
     
    116116{{{
    117117umount /mnt
    118 pvmove --verbose --name vg_kiyoshi0/testy /dev/dm-2 /dev/sdc
     118pvmove --verbose --name vg_kiyoshi0/testy /dev/mapper/md2_crypt /dev/sdc2
    119119}}}
    120120   * Remove as logical volume
    121121{{{
    122 pvremove /dev/dm-2
     122pvremove /dev/mapper/md2_crypt
     123}}}
     124   * Unmap crypto layer:
     125{{{
     126cryptsetup luksClose md2_crypt
    123127}}}
    124128   * Remove from RAID
    125129{{{
    126130mdadm --fail /dev/md2 /dev/sdb2
     131### shouldn't this remove /dev/md2 entirely?
    127132mdadm --fail /dev/md0 /dev/sdb1
    128133}}}
     
    135140(parted) mklabel gpt
    136141(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.
    137145(parted) mkpart primary ext2 40 -1
    138146# parted will complain about end location, ignore
     
    141149   * 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
    142150{{{
    143 mdadm --add /dev/md2 /dev/sdb2
     151mdadm /dev/md2 --create --level=mirror -n 2 /dev/sdb2 missing
    144152mdadm --add /dev/md0 /dev/sdb1
     153}}}
     154  * add crypto layer to md2
     155{{{
     156cryptsetup luksFormat /dev/md2
     157cryptsetup luksOpen /dev/md2 md2_crypt
    145158}}}
    146159  * Test to make sure this new partition means it really does write/read faster.
    147160         * Move test partition back and mount
    148161{{{
    149 pvmove --verbose --name vg_kiyoshi0/testy /dev/sdc2 /dev/dm-2
     162pvmove --verbose --name vg_kiyoshi0/testy /dev/sdc2 /dev/mapper/md2_crypt
    150163mount /dev/mapper/vg_kiyoshi0-test /mnt
    151164}}}