The following is the procedure which can be used to configure a LUN which is allocated from SAN
and use it to increase the filesystem space .
Please use your own discretion, I will not be held responsible for any issues caused by trying out the commands given below
this command to find the VG name
lslv <lv-name>
This command can be used to find the free PPs available in the VG
lsvg <vg-name>
This command can be used to find LUNs which are not associated with any VG
lspv | grep -i none
If no free LUNs are available or if lsvg <vg-name> does not have the required space , its time to add LUNs to your system, once the LUNs are added
This command can be used to bring the storage into the system ( like Solaris devfsadm -Cv)
cfgmgr -v
This shows you the newly added LUNs
lspv | grep -i none
Add the new LUN to the required VG , the “-f” option may need to be used if this LUN was previously assigned to some other server and was part of a VG
extendvg <vg-name> <new-LUN>
check if the required space is available
lsvg <vg-name>
This command can be used to increase the filesystem space
chfs -a size=+<space-required>G <mount-point>
eg: This command will add 2G more to the filesystem on the mountpoint
chfs -a size=+2G /mount-point
Note :
There is a very good chance that you might see an error like this
0516-787 extendlv: Maximum allocation for logical volume<lv-name> is 1024 (or some number)
In case of an error like that, the LPs of a particular LV can be increased using the chlv command
chlv -x 2048 <lv-name>
where 2048= 1024 (existing) + 1024 (new)