Moving a PV to a new, larger, disk.
Hello,
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?
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?
//Anders
Quoted 8 lines · Spam
Hello,
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/hdb1and the new disk is/dev/hdcand 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
Quoted 12 lines
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?
//Anders
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Signature · 15 lines
Regards,
Heinz -- The LVM Guy --
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf
Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-Quoted 13 lines · Spam
Quoted 8 lines
Hello,
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/hdb1and the new disk is/dev/hdcand is unpartitioned so far. How would I proceed to make this work?Following procedure to make it happen:
Quoted 7 lines
o partition the new disk with 1 partition of _exactly_ the same size (in units of sectors) as
/dev/hdb1o
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 ;)
//Anders
Quoted 6 lines
Quoted 6 lines
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?
//Anders
Quoted 17 lines · Spam
Quoted 16 lines · Spam
Quoted 8 lines
Hello,
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/hdb1and the new disk is/dev/hdcand 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
Quoted 6 lines
Quoted 4 lines
o
dd(_rescue)content over
o remove the old disk
o vgscan
o vgchange -ayGreat! Thank you. Now I know who to blame if things does not work ;)
Right, unless you didn't follow the steps exactly _and_ removed all mistakes ;-)
Quoted 17 lines
//Anders
Quoted 6 lines
Quoted 6 lines
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?
//Anders
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Signature · 15 lines
Regards,
Heinz -- The LVM Guy --
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf
Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-Quoted 8 lines
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/hdb1and the new disk is/dev/hdcand is unpartitioned so far. How would I proceed to make this 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?
Why not back it up to stable media and restore it (or do the move on the same day you make your normal image backups). That way if anything goes wrong you can just say a few words and start the restore over...
--
Steven Lembark 2930 W. Palmer
Workhorse Computing Chicago, IL 60647
+1 888 359 3508