Professional Documents
Culture Documents
Convert A Standard VG To Big VG Format PDF
Convert A Standard VG To Big VG Format PDF
html
Contents
AIX
1. Introduction
BSD 2. Convert to Big VG Format
HP-UX
Linux 1. Introduction
Solaris For new volume groups I strongly recommend to only use scalable VGs with a physical partition size of 32.
Others But if you have a legacy system with old standard volume groups and you need to integrate new LUNs of a
substantially bigger size you might run into a problem for two reasons:
Un*x the number of physical partitons per physical volume is too small
the number of maximum physical volumes in the volume group is reached.
Topics
The first problem can be solved by increasing the maximum PPs per PV with the t factor. But the same time you
increase the number of physical partitions per physical volume you decrease the number of physical volumes per
volume group by the same factor.
But it is possible to convert a standard volume group to big VG format while all logical volume remain online. The
number of physical volumes in big VGs is four times higher than in standard VGs.
Guestbook
Contact
# lsvg -p myvg
myvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
vpath68 active 607 16 00..00..00..00..15
vpath69 active 607 16 00..00..00..00..15
vpath82 active 607 16 00..00..00..00..15
vpath83 active 607 16 00..00..00..00..16
vpath80 active 607 0 00..00..00..00..00
vpath81 active 607 0 00..00..00..00..00
vpath84 active 607 0 00..00..00..00..00
vpath85 active 607 0 00..00..00..00..00
Conclusion: The first physical partition of vpath80, vpath81, vpath84, and vpath85 have to be moved to vpath68,
vpath69, vpath82/, and vpath83 respectively. To find the affected logical volumes we check disk by disk for the
logical volume residing on the first PP:
# lspv -l vpath80
vpath80:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
lv01 593 593 122..120..121..121..109 /oracle/data01
lv02 13 13 00..00..00..00..13 /oracle/data02
loglv01 1 1 00..01..00..00..00 N/A
# lspv -l vpath81
vpath81:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
lv01 595 595 122..121..121..121..110 /oracle/data01
# lspv -l vpath84
vpath84:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
lv01 595 595 122..121..121..121..110 /oracle/data01
lv02 12 12 00..00..00..00..12 /oracle/data02
# lspv -l vpath85
vpath85:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
lv01 595 595 122..121..121..121..110 /oracle/data01
lv02 12 12 00..00..00..00..12 /oracle/data02
Conclusion: Affected LV is lv01. To find the logical partitions to be migrated we look for physical partiton '0001' on
each disk...
Checking...
# lsvg -p myvg
myvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
vpath68 active 607 15 00..00..00..00..15
vpath69 active 607 15 00..00..00..00..15
vpath82 active 607 15 00..00..00..00..15
vpath83 active 607 15 00..00..00..00..15
vpath80 active 607 1 01..00..00..00..00
vpath81 active 607 1 01..00..00..00..00
vpath84 active 607 1 01..00..00..00..00
vpath85 active 607 1 01..00..00..00..00
# chvg -B myvg
0516-1164 chvg: Volume group myvg changed. With given characteristics myvg
can include up to 128 physical volumes with 1016 physical partitions each.
If the free partitions are not on the beginning of the disk an additional message appears:
0516-1216 chvg: Physical partitions are being migrated for volume group
descriptor area expansion. Please wait.
To be able to integrate physical volumes with more than 1016 partitions we need to increase the limit of the number
of physical partitions per physical volume:
# chvg -t 2 myvg
0516-1164 chvg: Volume group myvg changed. With given characteristics myvg
can include up to 64 physical volumes with 2032 physical partitions each.
As we see we have one physical partiton less per disk. This is due to a larger VGDA with big VGs:
# lsvg -p myvg
myvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
vpath68 active 606 14 00..00..00..00..14
vpath69 active 606 14 00..00..00..00..14
vpath82 active 606 14 00..00..00..00..14
vpath83 active 606 14 00..00..00..00..14
vpath80 active 606 0 00..00..00..00..00
vpath81 active 606 0 00..00..00..00..00
vpath84 active 606 0 00..00..00..00..00
vpath85 active 606 0 00..00..00..00..00