今天,在客户处出现一个问题。客户的oracle数据库使用的是裸设备,需要给数据库扩展表空间,在创建LV的时候出错:
mklv -y 'orcl_data100' -w n -t 'raw'  datavg 32 
0516-018 lcreatelv: No more logical volumes can be created; the maximum number has been reached. Use a different volume group. 0516-822 mklv: Unable to create logical volume.
lsvg显示内容如下:
#lsvg datavg
VOLUME GROUP:       datavg            VG IDENTIFIER:  0002b6510000d600000
00117835b1998
VG STATE:           active                   PP SIZE:        32 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      6906 (220992 megaby
tes)
MAX LVs:            256                      FREE PPs:       5488 (175616 megaby
tes)
LVs:                255                      USED PPs:       1418 (45376 megabyt
es)
OPEN LVs:           255                      QUORUM:         4
TOTAL PVs:          6                        VG DESCRIPTORS: 6
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         6                        AUTO ON:        yes
MAX PPs per VG:     32512                                     
MAX PPs per PV:     2032                     MAX PVs:        32
LTG size (Dynamic): 1024 kilobyte(s)         AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      
relocatable 
从上面的提示我们可以看到,vg中的 LVs数已经到了255,MAX LVs是为256。

用smit chvg 改变VG的 MAX LVs 到 512, 但又提示下面的错误:
0516-1616 chvg: This operation is only valid for scalable volume groups.
0516-732 chvg: Unable to change volume group datavg.
最后解决的办法是使用命令:
chvg -B train1vg    修改MAX LVs为512,此操作是把VG更改成Big Vg
另外
chvg -S train1vg    修改MAX LVs为4096,此操作把VG更改成scalable vg