[lvm-devel] [PATCH lvconvert Appendix] Experimental: pvmove with disk log and seg-by-seg mirrored LV
Jun'ichi Nomura
j-nomura at ce.jp.nec.com
Thu Dec 13 21:32:01 UTC 2007
This patch is experimental and just a proof-of-concept of new APIs.
(Some changes in lib were needed for adding pvmove support.)
Examples of commands and 'dmsetup ls --tree':
("/dev/mapper/d*" are PVs)
Normal pvmove:
# pvmove /dev/mapper/d1 /dev/mapper/d3
testvg-lvol2 (254:11)
|-d2 (254:2)
`-testvg-pvmove0 (254:13)
|-d3 (254:3)
`-d1 (254:1)
testvg-lvol1 (254:10)
`-testvg-pvmove0 (254:13)
|-d3 (254:3)
`-d1 (254:1)
Disklog pvmove:
# pvmove --mirrorlog disk /dev/mapper/d1 /dev/mapper/d3 /dev/mapper/d5:0-0
testvg-lvol2 (254:11)
|-d2 (254:2)
`-testvg-pvmove0 (254:16)
|-testvg-pvmove0_mimage_1 (254:15)
| `-d3 (254:3)
|-testvg-pvmove0_mimage_0 (254:14)
| `-d1 (254:1)
`-testvg-pvmove0_mlog (254:13)
`-d5 (254:5)
testvg-lvol1 (254:10)
`-testvg-pvmove0 (254:16)
|-testvg-pvmove0_mimage_1 (254:15)
| `-d3 (254:3)
|-testvg-pvmove0_mimage_0 (254:14)
| `-d1 (254:1)
`-testvg-pvmove0_mlog (254:13)
`-d5 (254:5)
Normal corelog mirror LV:
# lvcreate -m1 -l1 --mirrorlog core testvg
testvg-lvol0 (254:11)
|-testvg-lvol0_mimage_1 (254:10)
| `-d2 (254:2)
`-testvg-lvol0_mimage_0 (254:9)
`-d1 (254:1)
Seg-by-seg corelog mirror LV:
# lvcreate -m1 -l1 --mirrorlog seg testvg
testvg-lvol0 (254:9)
|-d2 (254:2)
`-d1 (254:1)
Thanks,
--
Jun'ichi Nomura, NEC Corporation of America
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pvmove-disklog-option.patch
Type: text/x-patch
Size: 9942 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20071213/95d64619/attachment.bin>
More information about the lvm-devel
mailing list