Linux LVM增加硬盘:
以sdb 为例
fdisk /dev/sdb # new and t change to 8e (LVM)
pvcreate /dev/sdb1
vgextend yourvg /dev/sdb1
lvextend -l +100%FREE yourlv
resize2fs yourlv
AIX 下面:
#cfgmgr #recognize newadd hardware
# lspv
hdisk0 000a1ddc7f36a2f0 rootvg active
hdisk1 none None
#chdev -l hdisk1 -a pv=clear
#chdev -l hdisk1 -a pv=yes
hdisk1 changed
# lspv
hdisk0 000a1ddc7f36a2f0 rootvg active
hdisk1 000a1ddcd9e3cc9e None
# extendvg rootvg hdisk1 //如果hdisk1内有数据在做extend的时侯,hdisk1里面的东西就没了
#extendvg -f rootvg hdisk1 强制把hdisk1加入到rootvg中
#chfs -a size=+300G /oradata
有时候需要修改MAX LPs:
# lslv hd10opt
LOGICAL VOLUME: hd10opt VOLUME GROUP: rootvg
LV IDENTIFIER: 0008d69a0000d4000000012aa0db098a.10 PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs2 WRITE VERIFY: off
MAX LPs: 512 PP SIZE: 512 megabyte(s)
chlv -x 2000 hd10opt #把MAX LPs改为2000
转载于:https://blog.51cto.com/512bit/1671118