[linux-lvm] Moving a PV to a new, larger, disk.
spam at tnonline.net
Wed Jan 14 10:09:02 UTC 2004
> On Tue, Jan 13, 2004 at 03:45:54PM +0100, Spam wrote:
>> Is it possible to use dd/dd_rescue to simply copy a PV to a new disk
>> that is slightly (16MiB)larger?
>> The old pv is on /dev/hdb1 and the new disk is /dev/hdc and is
>> unpartitioned so far. How would I proceed to make this work?
> Following procedure to make it happen:
> o partition the new disk with 1 partition of _exactly_
> the same size (in units of sectors) as /dev/hdb1
> o dd(_rescue) content over
> o remove the old disk
> o vgscan
> o vgchange -ay
Great! Thank you. Now I know who to blame if things does not work ;)
>> This might seem odd to do as I could perhaps use pvmove, but pvmove
>> requires the whole vg to be present in the system, right?
More information about the linux-lvm