# lspv
hdisk0 00cd7e82847793f8 rootvg active
hdisk1 00c759e2b092ddee altinst_rootvg
# lsvg
rootvg
datavg
JDEvg
vgbackup
altinst_rootvg
rmanbakvg
# varyonvg -f altinst_rootvg
#bootinfo -s hdiskpower3
##扩容rmanbakvgVG
extendvg rmanbakvg hdiskpower3
# lspv
# lspv
hdisk0 00cd7e82847793f8 rootvg active
hdisk1 00c759e2b092ddee altinst_rootvg active
hdisk2 none None
hdisk3 none None
hdisk4 none None
hdisk5 none None
hdisk6 none None
hdisk7 none None
hdisk8 none None
hdisk9 none None
hdiskpower0 00cd7e82124a837e JDEvg
hdisk18 none None
hdisk19 none None
hdisk20 none None
hdisk21 none None
hdisk22 none None
hdisk23 none None
hdisk24 none None
hdisk25 none None
hdiskpower2 00cd7e82eb62518b datavg
hdisk26 none None
hdisk27 none None
hdisk28 none None
hdisk29 none None
hdisk30 none None
hdisk31 none None
hdisk32 none None
hdisk33 none None
hdiskpower3 00cd7e825da4134c rmanbakvg active
hdisk35 none None
hdisk36 none None
hdisk37 none None
hdisk38 none None
hdisk39 none None
hdisk40 none None
hdisk41 none None
hdisk42 none None
hdisk43 none None
hdisk44 none None
hdisk45 none None
hdisk46 none None
hdisk47 none None
hdisk48 none None
hdisk49 none None
hdisk50 none None
hdiskpower4 00cd7bb2d96aa983 rmanbakvg active
hdiskpower5 00cd7bb2d967299f JDEvg
# lsvg rmanbakvg
VOLUME GROUP: rmanbakvg VG IDENTIFIER: 00cd7bb200004c0000000147004b5847
VG STATE: active PP SIZE: 1024 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 4564 (4673536 megabytes)
MAX LVs: 512 FREE PPs: 113 (115712 megabytes)
LVs: 2 USED PPs: 4451 (4557824 megabytes)
OPEN LVs: 2 QUORUM: 2 (Enabled)
TOTAL PVs: 2 VG DESCRIPTORS: 3
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 2 AUTO ON: yes
MAX PPs per VG: 127000
MAX PPs per PV: 5080 MAX PVs: 25
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
PV RESTRICTION: none
#
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 2.25 2.04 10% 13882 3% /
/dev/hd2 18.25 11.30 39% 54466 3% /usr
/dev/hd9var 2.00 0.96 53% 7547 4% /var
/dev/hd3 20.00 18.69 7% 8522 1% /tmp
/dev/hd1 2.00 0.00 100% 763 80% /home
/proc – – – – – /proc
/dev/hd10opt 0.25 0.03 88% 3790 27% /opt
/dev/lv00 0.25 0.24 4% 18 1% /var/adm/csd
/dev/hd11admin 0.25 0.25 1% 5 1% /admin
/dev/livedump 0.25 0.25 1% 4 1% /var/adm/ras/livedump
/dev/fslv04 4450.00 444.67 91% 889 1% /rmanbak
#
# chfs -a size= 110G /rmanbak
# chfs -a size= 100G /rmanbak
0516-787 extendlv: Maximum allocation for logical volume fslv04
is 4500.
# lslv fslv04
LOGICAL VOLUME: fslv04 VOLUME GROUP: rmanbakvg
LV IDENTIFIER: 00cd7bb200004c0000000147004b5847.2 PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs2 WRITE VERIFY: off
MAX LPs: 4500 PP SIZE: 1024 megabyte(s)
COPIES: 1 SCHED POLICY: parallel
LPs: 4450 PPs: 4450
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: middle UPPER BOUND: 25
MOUNT POINT: /rmanbak LABEL: /rmanbak
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?: NO
# 超出了LPS
#重新调整pp的max值、
# smit chlv
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 2.25 2.04 10% 13882 3% /
/dev/hd2 18.25 11.30 39% 54469 3% /usr
/dev/hd9var 2.00 0.96 53% 7547 4% /var
/dev/hd3 20.00 18.69 7% 8522 1% /tmp
/dev/hd1 2.00 0.00 100% 763 80% /home
/proc – – – – – /proc
/dev/hd10opt 0.25 0.03 88% 3790 27% /opt
/dev/lv00 0.25 0.24 4% 18 1% /var/adm/csd
/dev/hd11admin 0.25 0.25 1% 5 1% /admin
/dev/livedump 0.25 0.25 1% 4 1% /var/adm/ras/livedump
/dev/fslv04 4560.00 554.65 88% 889 1% /rmanbak
# 调整MAX LPs为6000
# lslv fslv04
LOGICAL VOLUME: fslv04 VOLUME GROUP: rmanbakvg
LV IDENTIFIER: 00cd7bb200004c0000000147004b5847.2 PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs2 WRITE VERIFY: off
MAX LPs: 6000 PP SIZE: 1024 megabyte(s)
COPIES: 1 SCHED POLICY: parallel
LPs: 4450 PPs: 4450
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: middle UPPER BOUND: 25
MOUNT POINT: /rmanbak LABEL: /rmanbak
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?: NO
# chfs -a size= 110G /rmanbak
Filesystem size changed to 9563013120
#
# lsvg altinst_rootvg
VOLUME GROUP: altinst_rootvg VG IDENTIFIER: 00cd7e8200004c0000000147b8838a0e
VG STATE: active PP SIZE: 256 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 546 (139776 megabytes)
MAX LVs: 256 FREE PPs: 274 (70144 megabytes)
LVs: 13 USED PPs: 272 (69632 megabytes)
OPEN LVs: 0 QUORUM: 2 (Enabled)
TOTAL PVs: 1 VG DESCRIPTORS: 2
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 1 AUTO ON: no
MAX PPs per VG: 32512
MAX PPs per PV: 1016 MAX PVs: 32
LTG size (Dynamic): 1024 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
PV RESTRICTION: none
#
lsvg -p altinst_rootvg
#必须手动敲命令才生效# chfs -a size= 1G /home
Filesystem size changed to 3145728
# df -g
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 2.25 2.04 10% 13882 3% /
/dev/hd2 18.25 11.30 39% 54251 3% /usr
/dev/hd9var 2.00 0.98 52% 7542 4% /var
/dev/hd3 20.00 18.69 7% 8522 1% /tmp
/dev/hd1 2.00 1.75 13% 443 1% /home
/proc – – – – – /proc
/dev/hd10opt 0.25 0.03 88% 3790 27% /opt
/dev/lv00 0.25 0.24 4% 18 1% /var/adm/csd
/dev/hd11admin 0.25 0.25 1% 5 1% /admin
/dev/livedump 0.25 0.25 1% 4 1% /var/adm/ras/livedump
/dev/fslv04 4000.00 1617.03 60% 6955 1% /rmanbak
chfs -a size= 200G /rmanbak
# chfs -a size= 200G /rmanbak
0516-787 extendlv: Maximum allocation for logical volume fslv04
is 4000.
#
使用smit chlv更改MAXIMUM NUMBER of LOGICAL PARTITIONS
# df -g###
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 2.25 2.04 10% 13882 3% /
/dev/hd2 18.25 11.30 39% 54251 3% /usr
/dev/hd9var 2.00 0.98 52% 7543 4% /var
/dev/hd3 20.00 18.69 7% 8522 1% /tmp
/dev/hd1 2.00 1.75 13% 443 1% /home
/proc – – – – – /proc
/dev/hd10opt 0.25 0.03 88% 3790 27% /opt
/dev/lv00 0.25 0.24 4% 18 1% /var/adm/csd
/dev/hd11admin 0.25 0.25 1% 5 1% /admin
/dev/livedump 0.25 0.25 1% 4 1% /var/adm/ras/livedump
/dev/fslv04 4200.00 1816.99 57% 6955 1% /rmanbak
#
10.8.17.2# lslv fslv00
LOGICAL VOLUME: fslv00 VOLUME GROUP: JDEvg
LV IDENTIFIER: 00cd7bb200004c00000001208a77222f.2 PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs2 WRITE VERIFY: off
MAX LPs: 9000 PP SIZE: 32 megabyte(s)
COPIES: 1 SCHED POLICY: parallel
LPs: 4134 PPs: 4134
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: middle UPPER BOUND: 128
MOUNT POINT: /u01 LABEL: /u01
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?: NO
#
# lsvg JDEvg
VOLUME GROUP: JDEvg VG IDENTIFIER: 00cd7bb200004c00000001208a77222f
VG STATE: active PP SIZE: 32 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 4158 (133056 megabytes)
MAX LVs: 512 FREE PPs: 23 (736 megabytes)
LVs: 2 USED PPs: 4135 (132320 megabytes)
OPEN LVs: 2 QUORUM: 2 (Enabled)
TOTAL PVs: 2 VG DESCRIPTORS: 3
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 2 AUTO ON: no
MAX PPs per VG: 130048
MAX PPs per PV: 4064 MAX PVs: 32
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
PV RESTRICTION: none
#
extendvg -f JDEvg hdiskpower4
# chfs -a size= 5G /u01
0516-787 extendlv: Maximum allocation for logical volume fslv00
is 5000.
#
使用smit chlv更改MAXIMUM NUMBER of LOGICAL PARTITIONS
挂载存储卷
# lsvg -l JDEvg
JDEvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
loglv02 jfs2log 1 1 1 closed/syncd N/A
fslv00 jfs2 4150 4150 2 closed/syncd /u01
# ls /dev/fslv00
/dev/fslv00
# mount /dev/fslv00 /u01
Replaying log for /dev/fslv00.
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 10.25 10.11 2% 5149 1% /
/dev/hd2 18.25 11.62 37% 52028 2% /usr### ###/dev/hd9var 5.00 3.66 27% 7423 1% /var### ###/dev/hd3 35.00 17.50 50% 13485 1% /tmp###
/dev/hd1 2.00 1.37 32% 1099 1% /home
/proc – – – – – /proc
/dev/hd10opt 0.50 0.24 53% 3809 7% /opt
/dev/lv00 0.25 0.24 4% 18 1% /var/adm/csd
/dev/hd11admin 0.25 0.25 1% 5 1% /admin
/dev/livedump 0.25 0.25 1% 4 1% /var/adm/ras/livedump
/dev/fslv00 129.69 81.33 38% 768212 4% /u01
#
The above is the detailed content of AIX_EXT_VG. For more information, please follow other related articles on the PHP Chinese website!