[root@aix back]# lsvg oradata1
VOLUME GROUP: oradata1 VG IDENTIFIER: 00f7609300004c000000014dc0bf17b6
VG STATE: active PP SIZE: 512 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 4193 (2146816 megabytes)
MAX LVs: 512 FREE PPs: 2 (1024 megabytes)
LVs: 2 USED PPs: 4191 (2145792 megabytes)
OPEN LVs: 2 QUORUM: 4 (Enabled)
TOTAL PVs: 7 VG DESCRIPTORS: 7
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 7 AUTO ON: yes
MAX PPs per VG: 130048
MAX PPs per PV: 1016 MAX PVs: 128
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
PV RESTRICTION: none
扩展VG:
[root@aix back]# extendvg oradata1 hdisk52
0516-1254 extendvg: Changing the PVID in the ODM.
[root@aix back]# lslv -L backlv
LOGICAL VOLUME: backlv VOLUME GROUP: datavg
LV IDENTIFIER: 00f7609300004c000000013f2cebbbf9.6 PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs2 WRITE VERIFY: off
MAX LPs: 8000 PP SIZE: 512 megabyte(s)
COPIES: 1 SCHED POLICY: parallel
LPs: 4100 PPs: 4100
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: middle UPPER BOUND: 32
MOUNT POINT: /back LABEL: /back
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?: NO
修改 MAX LPS 值用chlv -x 8000 oradata
[root@aix /]# extendvg datavg hdisk12
0516-1254 extendvg: Changing the PVID in the ODM.
[root@aix /]# chfs -a size=+100G /oradata
[root@aix /]# chfs -a size=+50G /oradata
[root@aix /]# chfs -a size=+30G /oradata
[root@aix /]# chfs -a size=+33G /oradata
[root@aix /]# chfs -a size=+512M /oradata
chfs -a size=+512M /oradata
chfs -a size=+100G /oradata
chlv �Cx 8000 oradata
Filesystem size changed to 3985637376
[root@aix /]# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 20.50 15.35 26% 11861 1% /
/dev/hd2 7.25 4.68 36% 54650 5% /usr
/dev/hd9var 2.50 2.03 19% 8331 2% /var
/dev/hd3 4.00 3.71 8% 778 1% /tmp
/dev/hd1 2.25 1.46 36% 386 1% /home
/dev/hd11admin 0.25 0.25 1% 5 1% /admin
/proc - - - - - /proc
/dev/hd10opt 4.00 3.46 14% 11808 2% /opt
/dev/livedump 0.25 0.25 1% 4 1% /var/adm/ras/livedump
/dev/oralv 75.00 9.66 88% 80006 4% /oracle
/dev/redolv1 5.00 2.65 48% 9 1% /redo1
/dev/redolv2 5.00 2.65 48% 9 1% /redo2
/dev/oradata 1900.50 202.25 90% 66 1% /oradata
/dev/archlv 650.00 378.55 42% 567 1% /arch
/dev/backlv 550.00 283.76 49% 3433 1% /back
------------------------------------------------------------------------------------------------------------------------
[root@aix /]# lslv -L oradata
LOGICAL VOLUME: oradata VOLUME GROUP: datavg
LV IDENTIFIER: 00f7609300004c000000013f2cebbbf9.4 PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs2 WRITE VERIFY: off
MAX LPs: 8000 PP SIZE: 512 megabyte(s)
COPIES: 1 SCHED POLICY: parallel
LPs: 4201 PPs: 4201
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: middle UPPER BOUND: 32
MOUNT POINT: /oradata LABEL: /oradata
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?: NO
------------------------------------------------------------------------------------------------------------------
[root@aix /]# chlv -x 8000 oradata --
[root@aix /]# chfs -a size=+120G /oradata
Filesystem size changed to 4405067776
------------------------------------------------------------------------------------------------------------------
查看未加入vg的hdisk的大小:
lscfg -pv -l hdisk2
============================================================0517==============================================
extendvg datavg hdisk13
[root@aix /]# extendvg datavg hdisk13
0516-1254 extendvg: Changing the PVID in the ODM.
-------------------------------------------------20140703-----------------------------------------
extendvg datavg hdisk14
chfs -a size=+200G /oradata
---------------------------------20140709-------------------------------------------------
[root@aix /]# chfs -a size=+100G /arch
Filesystem size changed to 1677721600
[root@aix /]# lspv hdisk12
PHYSICAL VOLUME: hdisk12 VOLUME GROUP: datavg
PV IDENTIFIER: 00f7609381e961cf VG IDENTIFIER 00f7609300004c000000013f2cebbbf9
PV STATE: active
STALE PARTITIONS: 0 ALLOCATABLE: yes
PP SIZE: 512 megabyte(s) LOGICAL VOLUMES: 1
TOTAL PPs: 599 (306688 megabytes) VG DESCRIPTORS: 1
FREE PPs: 0 (0 megabytes) HOT SPARE: no
USED PPs: 599 (306688 megabytes) MAX REQUEST: 256 kilobytes
FREE DISTRIBUTION: 00..00..00..00..00
USED DISTRIBUTION: 120..120..119..120..120
MIRROR POOL: None
-------------------------------------------------------------20140712-----------------------------------------------------
[root@aix /]# extendvg datavg hdisk28
0516-1254 extendvg: Changing the PVID in the ODM.
------------------------------------20140727-------------------------------------------------
[root@aix /]# chfs -a size=+100G /arch
Filesystem size changed to 2097152000
-----------------------------------------20140801---------------------------------------
root@aix /]# chlv -x 8000 archlv
[root@aix /]# lslv -L archlv
LOGICAL VOLUME: archlv VOLUME GROUP: datavg
LV IDENTIFIER: 00f7609300004c000000013f2cebbbf9.5 PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs2 WRITE VERIFY: off
MAX LPs: 8000 PP SIZE: 512 megabyte(s)
COPIES: 1 SCHED POLICY: parallel
LPs: 2000 PPs: 2000
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: middle UPPER BOUND: 32
MOUNT POINT: /arch LABEL: /arch
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
[root@aix /]# chfs -a size=+100G /arch
Filesystem size changed to 2306867200
添加新的磁盘后,在AIX系统用cfgmgr 扫描新的磁盘
------------------------------------------20140819---------------------------------------------------
[root@aix /]# extendvg datavg hdisk29
0516-1254 extendvg: Changing the PVID in the ODM.
[root@aix /]# chfs -a size=+18G /arch
Filesystem size changed to 2516582400
aix删除文件系统操作:
umount /dev/folback
rmfs /folback
rmlv: Logical volume folback is removed,
就可以释放空间了
select file_name from dba_data_files where tablespace_name='TSTLOG'
extendvg oradata1 hdisk46
extendvg oradata1 hdisk47
chlv �Cx 8000 datalv1
chfs -a size=+600G /oradata1