Re: Converting from LVM to LVM on RAID1 (WAS: no subject)

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

 



it's not a good idea, but you could use raid1 without a superblock... did 
i mention it's not a good idea?

normally you want the raid1 superblock... which lives at the end of the 
partition.  you can't blindly convert an LVM pv to a raid1 device without 
ensuring the physical extent at the end of the pv isn't in use.  i don't 
see any way to shrink a pv -- so i don't think you'll be able to convert 
an existing lvm pv to a raid1 device.

however there's nothing stopping you from creating a raid1 device on a 
second disk (and specify "missing" for the other raid device(s)... see 
mdadm man page), creating a pv/vg/lv on top of that raid1, then copying 
the filesystems over... doing grub/lilo/whatever magic... and trying to 
boot it.

if it works, you can convert the old disk into the second component of the 
raid.

there's probably several docs already explaining this sort of procedure 
without lvm involved... (for example there's one supplied with debian 
mdadm at /usr/share/doc/mdadm/rootraiddoc.97.html)

-dean

_______________________________________________
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/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux