+++---Loss of LVM mirror

To boot the system the Logical volumes need to be started:

https://serverfault.com/questions/564585/system-does-not-boot-from-root-lvm-raid1-partition-when-any-of-the-underlying-pv/564611#564611?newreg=ca961742964c406a881f6cb14475e0f5

Boot from a live OS

lvm pvscan lvm vgscan lvm lvscan

to find all the names

lvm vgchange -ay --partial VolGroup00

lvm vgreduce --removemissing --force VolGroup00

This will enable the volumes

Recreate the partitions on the replacement drive. then add the physical volume

pvcreate /dev/sdb1 lvm vgextend VolGroup00 /dev/sdb1

Re mirror the volumes

lvmconvert -m1 "volume name" e.g. /dev/vg_blackbox/usr


md mirror volume

recreate partition

just readd the partition to the MD

https://www.howtoforge.com/replacing_hard_disks_in_a_raid1_array

mdadm --manage /dev/md127 --add /dev/sda1

-- BarryGreen - 11 Sep 2015


This topic: Public > UserList > BarryGreen > BlackBoxAdminnotes
Topic revision: r1 - 11 Sep 2015 - BarryGreen
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding RHUL Physics Department TWiki? Send feedback