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

Re: [linux-lvm] Converting from LVM to LVM on RAID1 (WAS: no subject)

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 

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)


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