[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] replacing a failling disk on a mirrred VG.



This one should be pretty easy...

Effectively, you want to keep the primary mirror devices, so do:
lvconvert -m0 <vg/lv>
to down convert them to linear devices.

Then remove PV1 (vgreduce), add a new disk to your system, add it to your vg (vgextend), and finally, up-convert the linear devices to mirrors again:
lvconvert -m1 <vg/lv>

 brassow

On Feb 4, 2007, at 12:53 PM, Georges Giralt wrote:

Hi !
I run A Fedora Core 6 box with
lvm> version
  LVM version:     2.02.17 (2006-12-14)
  Library version: 1.02.13 (2006-11-28)
  Driver version:  4.10.0
lvm>
on a 2.6.19 kernel.
My VG comprises 3PV  onto which I've spread 4 mirrored LVs.
PV 0 : LV1 mirror copy 0, LV2 mirror copy 0, lv3 mirror copy 0 and lv4 mirror copy 0 PV 1 : LV1 mirror copy 1, LV2 mirror log, LV3 mirror log and LV4 mirror copy 1 PV2 : LV1 mirror log, LV2 mirror copy 1 , LV3 mirror copy 1 and LV4 mirror log.
I plan to replace (Smart signals a future failure) the PV #1.
Question : What is the best route to do this ? And is it feasible ?
Thanks a lot in advance for your answer !
--
Ce message est constitué d'au moins 50 % d'électrons recyclés.
S'il vous plaît, aidez nous à conserver nos ressources,
recyclez vos électrons !

_______________________________________________
linux-lvm mailing list
linux-lvm redhat com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]