AIX扩展文件系统的大小

时间:2022-02-05 09:04:17
由于AIX系统空间不够需要增加硬盘,希望增加文件系统的空间,折腾了好几天怎么都不能扩展文件系统的空间, 原来是把硬盘加错了卷组
首先,确定文件系统所在的LV
/dev/ datalv      270.00     37.47   87%       24     1% /oradata
2.查看LV所在的卷组
# lslv datalv
LOGICAL VOLUME:     datalv                   VOLUME GROUP:   backupvg LV IDENTIFIER:      00c0711c00004c000000014321c777ce.1 PERMISSION:     read/write
VG STATE:           active/complete        LV STATE:       opened/syncd
TYPE:               jfs2                   WRITE VERIFY:   off
MAX LPs:            10000                  PP SIZE:        1024 megabyte(s)
COPIES:             1                      SCHED POLICY:   parallel
LPs:                270                    PPs:            270
STALE PPs:          0                      BB POLICY:      relocatable
INTER-POLICY:       minimum                RELOCATABLE:    yes
INTRA-POLICY:       middle                 UPPER BOUND:    128
MOUNT POINT:        /oradata               LABEL:          /oradata
MIRROR WRITE CONSISTENCY: on/ACTIVE                             
EACH LP COPY ON A SEPARATE PV ?: yes                                   
Serialize IO ?:     NO   
3.把硬盘加入到相应的卷组中
# smit vg
选择Set Characteristics of a Volume GroupSet Characteristics of a Volume Group
选择Add a Physical Volume to a Volume Group---把硬盘增加到相应的卷组中
4.查看
# lsvg -p backupvg
backupvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk3            active            271         0           00..00..00..00..00
hdisk4            active            271         271         55..54..54..54..54
5.增加文件系统的空间
# chfs -a size=+100G /oradata
Filesystem size changed to 775946240
 
6,确认
/dev/datalv        370.00    137.45   63%       24     1% /oradata
 
成功!