mirroring LVM tested

| | Comments (0)
today we tested yesterday's entry.   I'm not going over the md stuff, as there are good guides for md all over the place, but restoring the LVM mirroring is a bit tricky.

once you reboot after removing the disk (as in our test) to make things work, you must 

vgreduce --remove-missing vg_name


vgchange -ay vg_name

this will get you back up and running.  

Then, once you have the disk replaced, to restore redundancy:

pvcreate /dev/newdiskpartition

vgextend vg_name pv_name

lvconvert -m1 /dev/vg_name/lv_name 

check status by typing 'lvs'  and looking at the 'copy percent' log

Leave a comment