[linux-lvm] shift PV from disk to raid device?

Kai Schaetzl maillists at conactive.com
Mon Dec 8 23:41:38 UTC 2008


To make a long story short I accidentally put an LVM PV on top of /dev/sda 
instead of /dev/md2 (a Linux RAID 1 partition with the mirror missing) and 
noticed only after I was done with creating logical volumes and filling 
them with content. After adding the second RAID device and syncing I now 
get the duplicate PV uuid warning. The reason is obvious, I have the same 
PV on both drives. Apart from that warning "everything" works, but I would 
like to fix it.

If possible I would like to avoid wiping the complete PV, recreating all 
of it and copying all the content of the logical volumes back to it.
Is there a way to "shift" the PV from /dev/sda to /dev/md2 and leave 
everything else intact? Maybe after breaking the array?

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com






More information about the linux-lvm mailing list