pvmove problem
Ok, I've been searching for an answer for a long time now... hopefully someone here can help me.
I have a pretty lengthy explanation.. so i'll just post the link to it.
http://forums.gentoo.org/viewtopic.php?t=206391
Please help.. I don't feel like doing it the manual cp way :-/
BK
Quoted 2 lines · BK Box
I have a pretty lengthy explanation.. so i'll just post the link to it.
http://forums.gentoo.org/viewtopic.php?t=206391
Summary: How do I pvmove data with LVM2 if contiguous runs of PEs in the source LVs will have to be split up to make them fit?
Quick answer:
LVM2 doesn't support this directly yet: it's being worked on. Until it's done you need to edit the metadata [using vgcfg*] to split the segments into smaller ones before running pvmove. [Might also need to recompile disabling section merging code which would undo your splitting.]
Alasdair
Signature · 1 line
[email protected]
Quoted 14 lines · Alasdair G Kergon
Quoted 2 lines · BK Box
I have a pretty lengthy explanation.. so i'll just post the link to it.
http://forums.gentoo.org/viewtopic.php?t=206391Summary: How do I pvmove data with LVM2 if contiguous runs of PEs in the source LVs will have to be split up to make them fit?
Quick answer:
LVM2 doesn't support this directly yet: it's being worked on. Until it's done you need to edit the metadata [using vgcfg*] to split the segments into smaller ones before running pvmove. [Might also need to recompile disabling section merging code which would undo your splitting.]
Quoted 9 lines
Alasdair
--
[email protected]
_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Thank you very much, I'm glad I finally got an answer.
I have another question for you now...
All I seem to have is vgcfgrestore and vgcfgbackup.. but by reading the man pages I don't see how they edit the metadata. Is there another vgcfg that I am missing?
Thank you
Quoted 5 lines · Alasdair G Kergon
Summary: How do I pvmove data with LVM2 if contiguous runs of PEs in the source LVs will have to be split up to make them fit?
Quick answer:
LVM2 doesn't support this directly yet: it's being worked on.
This code is now in CVS for testing.
It lets you restrict the PEs you want to move.
Can only move off one PV at once (ie. only one cmdline arg).
And of course you can still restrict the PEs available for allocation by listing them afterwards, and/or use -n to restrict the PEs moved to those belonging to a specific LV.
pvmove /dev/sda2:1000-1999 /dev/sdb1:1000-1499:2000- /dev/sdc1:500-1000
Alasdair
Signature · 1 line
[email protected]