[linux-lvm] Need help with a particular use-case for pvmove.
Stuart D Gathman
stuart at bmsi.com
Sun Nov 14 22:56:59 UTC 2010
On 11/13/2010 10:56 PM, Stirling Westrup wrote:
>> Then dd_rescue copy the disk image from bad-old to new, including
>> everything (partition table, if any, LVM signature, the full image).
>> Remove bad-old drive, have all other old and the new plugged,
>> reboot normally
> Thanks. I did consider this, but the new drive is twice the size of
> the old one, so I would need to make sure I had created a partition on
> the new drive the exact size of the old one, and had dd-ed everything
> correctly. Even then, I wasn't sure if it would work, because I don't
> know what the metadata records in terms of the drive configurations.
The partition can be bigger. Just run pvresize on the new partition
when done. The metadata goes by UUID and doesn't
care what drive it is on (which results in a FAQ when cloning VGs via SAN).
More information about the linux-lvm