如何区分AIX中的VG类型_如何改变AIX操作系统的VG类型

教程发布:风哥 教程分类:ITPUX技术网 更新日期:2022-02-12 浏览学习:118

如何区分AIX中的VG类型_如何改变AIX操作系统的VG类似

1.AIX中的VG类型AIX中的VG有三种类型,如下:[table=525,transparent]
[td=99]VG type[td=125][align=right]Maximum PVs[td=124][align=right]Maximum LVs[td=179][align=right]Maximum PPs per VG[td=149][align=right]Maximum PP size
[td=99]Normal VG[td=125][align=right]32[td=124][align=right]256[td=179][align=right]32,512 (1016 * 32)[td=149][align=right]1 GB
[td=99]Big VG[td=125][align=right]128[td=124][align=right]512[td=179][align=right]130,048 (1016 * 128)[td=149][align=right]1 GB
[td=99]Scalable VG[td=125][align=right]1024[td=124][align=right]4096[td=179][align=right]2,097,152[td=149][align=right]128 GB

2.首先如何查看VG是什么类型呢?通过如下方法例如:hdisk2 属于 datavg那么执行#readvgda hdisk2|grep type..... readvgda_type: smallvgvgtype: 0可以发现datavg是normal VG。
维护过程中用的最多的是,如何平衡一个VG中的PP与PV,LV的数量。
3.如何在不改变VG类型的情况下,改变VG中的最大PP数量呢?可以通过修改factor因子,来平衡PP和PV的数量例如:# lsvg datavgVOLUME GROUP: datavg VG IDENTIFIER: 00f7433800004c000000013808c3ac8dVG STATE: active PP SIZE: 4 megabyte(s)VG PERMISSION: read/write TOTAL PPs: 48 (192 megabytes)MAX LVs: 256 FREE PPs: 10 (40 megabytes)LVs: 3 USED PPs: 38 (152 megabytes)OPEN LVs: 2 QUORUM: 1 (Disabled)TOTAL PVs: 2 VG DESCRIPTORS: 3STALE PVs: 0 STALE PPs: 0ACTIVE PVs: 2 AUTO ON: noConcurrent: Enhanced-Capable Auto-Concurrent: DisabledVG Mode: Non-ConcurrentMAX PPs per VG: 32512MAX PPs per PV: 1016 MAX PVs: 32LTG size (Dynamic): 128 kilobyte(s) AUTO SYNC: noHOT SPARE: no BB POLICY: relocatablePV RESTRICTION: none INFINITE RETRY: no
# lsvg -p datavgdatavg:PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTIONhdisk2 active 24 5 04..00..00..00..01hdisk5 active 24 5 04..00..00..00..01
# readvgda hdisk2|grep type..... readvgda_type: smallvgvgtype: 0# set -o vi# readvgda hdisk2|grep factorfactor: 1
# chvg -t 2 datavg 更改factor 为20516-1164 chvg: Volume group datavg changed. With given characteristics datavgcan include up to 16 physical volumes with 2032 physical partitions each.
# lsvg datavgVOLUME GROUP: datavg VG IDENTIFIER: 00f7433800004c000000013808c3ac8dVG STATE: active PP SIZE: 4 megabyte(s)VG PERMISSION: read/write TOTAL PPs: 48 (192 megabytes)MAX LVs: 256 FREE PPs: 10 (40 megabytes)LVs: 3 USED PPs: 38 (152 megabytes)OPEN LVs: 2 QUORUM: 1 (Disabled)TOTAL PVs: 2 VG DESCRIPTORS: 3STALE PVs: 0 STALE PPs: 0ACTIVE PVs: 2 AUTO ON: noConcurrent: Enhanced-Capable Auto-Concurrent: DisabledVG Mode: Non-ConcurrentMAX PPs per VG: 32512MAX PPs per PV: 2032 MAX PVs: 16LTG size (Dynamic): 128 kilobyte(s) AUTO SYNC: noHOT SPARE: no BB POLICY: relocatablePV RESTRICTION: none INFINITE RETRY: no#
# readvgda hdisk2|grep factorfactor: 2
4.还有一种方法就是改变VG类型,来增大PP,PV,LV的最大数量
# chvg -B mndhb_vg_01 改变VG为Big VG类型0516-1164 chvg: Volume group mndhb_vg_01 changed. With given characteristics mndhb_vg_01can include up to 64 physical volumes with 2032 physical partitions each.
# lsvg mndhb_vg_01VOLUME GROUP: mndhb_vg_01 VG IDENTIFIER: 00f7433800004c000000013808c3ac8dVG STATE: active PP SIZE: 4 megabyte(s)VG PERMISSION: read/write TOTAL PPs: 44 (176 megabytes)MAX LVs: 512 FREE PPs: 6 (24 megabytes)LVs: 3 USED PPs: 38 (152 megabytes)OPEN LVs: 2 QUORUM: 1 (Disabled)TOTAL PVs: 2 VG DESCRIPTORS: 3STALE PVs: 0 STALE PPs: 0ACTIVE PVs: 2 AUTO ON: noConcurrent: Enhanced-Capable Auto-Concurrent: DisabledVG Mode: Non-ConcurrentMAX PPs per VG: 130048MAX PPs per PV: 2032 MAX PVs: 64LTG size (Dynamic): 128 kilobyte(s) AUTO SYNC: noHOT SPARE: no BB POLICY: relocatablePV RESTRICTION: none INFINITE RETRY: no
# readvgda hdisk2|grep type..... readvgda_type: bigvgvgtype: 1
注意如果将VG类型改为Scalable VG时,需要首先varyoffvg#varyoffvg datavg#chvg -G datavg#varyonvg datavg建议在新部署系统的时候,建立VG时,选择Scalable VG,这样可以消除512 byte logical volume control block (LVCB) offset to affect aligned writes (often found on systems using raw LVs with Oracle databases)的限制

特别提示:进行chvg -B和chvg -G的操作的时候,vg中每个pv必须有足够的空余free空间,来存放vgda的变更。

本文标签:
网站声明:本文由风哥整理发布,转载请保留此段声明,本站所有内容将不对其使用后果做任何承诺,请读者谨慎使用!
【上一篇】
【下一篇】