AIX下LUN扩容后不能自动识别容量

发布时间:  2014-10-09 浏览次数:  261 下载次数:  0
问题描述
在S2600阵列上面映射一个LUN到AIX主机,在主机上面用此LUN创建vg、lv、fs并挂载使用;此时在S2600阵列上面对LUN进行扩容,在AIX主机上面能识别到LUN扩容后的大小,但是VG的容量无法自动识别,现象如下:

1.        在主机上查询LUN和vg的信息:

bash-3.00# getconf DISK_SIZE /dev/hwdisk0

20452

(LUN扩容前大小为20G)

bash-3.00# lsvg vgdata

VOLUME GROUP:       vgdata                   VG IDENTIFIER:  000507820000d70000000121d30fc7e1

VG STATE:           active                   PP SIZE:        32 megabyte(s)

VG PERMISSION:      read/write               TOTAL PPs:      639 (20448 megabytes)

MAX LVs:            256                      FREE PPs:       538 (17216 megabytes)

LVs:                2                        USED PPs:       101 (3232 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): 256 kilobyte(s)          AUTO SYNC:      no

HOT SPARE:          no                       BB POLICY:      relocatable

(LUN扩容前VG中PP数为639,总大小为20448m)

2.     在S2600上将LUN扩容到30G,再在主机上面查询LUN和vg的信息

bash-3.00# getconf DISK_SIZE /dev/hwdisk0

30480

(主机能自动识别LUN扩容后的容量,大小为30G)

bash-3.00# lsvg vgdata

VOLUME GROUP:       vgdata                   VG IDENTIFIER:  000507820000d70000000121d30fc7e1

VG STATE:           active                   PP SIZE:        32 megabyte(s)

VG PERMISSION:      read/write               TOTAL PPs:      639 (20448 megabytes)

MAX LVs:            256                      FREE PPs:       538 (17216 megabytes)

LVs:                2                        USED PPs:       101 (3232 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): 256 kilobyte(s)          AUTO SYNC:      no

HOT SPARE:          no                       BB POLICY:      relocatable

(VG中PP的数量和容量并没有改变,VG无法自动识别LUN容量的变化)

告警信息
处理过程
实际上在AIX系统中是可以在线识别LUN容量增长的,只需执行一条chvg命令即可,具体如下:

bash-3.00# chvg -g vgdata

执行完成后在查询vg的信息:

bash-3.00# lsvg vgdata

VOLUME GROUP:       vgdata                   VG IDENTIFIER:  000507820000d70000000121d30fc7e1

VG STATE:           active                   PP SIZE:        32 megabyte(s)

VG PERMISSION:      read/write               TOTAL PPs:      952 (30464 megabytes)

MAX LVs:            256                      FREE PPs:       851 (27232 megabytes)

LVs:                2                        USED PPs:       101 (3232 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): 256 kilobyte(s)          AUTO SYNC:      no

HOT SPARE:          no                       BB POLICY:      relocatable

(VG中PP数和总容量已发生改变,符合PV的大小)


根因
AIX系统中需手动刷新,进行容量识别
建议与总结

END