Operating System - HP-UX
1843842 Members
4125 Online
110225 Solutions
New Discussion

Inforamtion about space available on vg?

 
SOLVED
Go to solution
Sudhaadm
Regular Advisor

Inforamtion about space available on vg?

Hi All,

Thanks in advance..
How much free space is available in Voloume Group and how to caluclate the PE .How to add free space in to LV /dev/vg01_data/lv_data4

--- Volume groups ---
VG Name /dev/vg01_data
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 11
Open LV 11
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 8631
VGDA 4
PE Size (Mbytes) 4
Total PE 17260
Alloc PE 16972
Free PE 288
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
5 REPLIES 5
RAC_1
Honored Contributor
Solution

Re: Inforamtion about space available on vg?

Free space in VG = (Free PE 288*PE Size (Mbytes) 4)

you have 1152MB free space. to add this to lvol, do as follows.

1. If you have OnlineJFS
lvextend -L "new_size_in_MB" /dev/vgxx/lvolx
fsadm -b "new_size_in_MB" /mount_point_of_fs

2. If you do not have OnlineJFS
umount /file_system
lvextend -L "new_size_in_MB" /dev/vgxx/lvolx
extendfs -F vxfs" /dev/vgxx/rlvolx
There is no substitute to HARDWORK
Devender Khatana
Honored Contributor

Re: Inforamtion about space available on vg?

Hi,

FREE_PE*PE_Size = Total Free Space

Here

288*4=1152 MB

For adding free space to LV, if you have online JFS you can do it online otherwise you will have to unmount the mentioned file system.

The steps in both cases will be slightly different. What is your case?

HTH,
Devender
Impossible itself mentions "I m possible"
Arunvijai_4
Honored Contributor

Re: Inforamtion about space available on vg?

Hello, You can see via SAM,
# sam --> Disks and File Systems --> Volume Groups --> â Volume Groups 0 of 1 selectedâ
â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â
â Mbytes Physical Logical â
â Name Type Available Volumes Volumes â
â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â
â â vg00 LVM 2512 of 34720 1 9 ^ â
â â â

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Sivakumar TS
Honored Contributor

Re: Inforamtion about space available on vg?

Dear Amit,

In the VGdisplay output

PE Size (Mbytes) 4 <------ PE size
Total PE 17260
Alloc PE 16972
Free PE 288 <------ Free PEs
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

and the free spcae available is

PEsize*Free PEs

after calculating this you can do

#lvextend -L

HtH,

Siva.
Nothing is Impossible !
Tvs
Regular Advisor

Re: Inforamtion about space available on vg?

Hi
in addition to this . if u r extending a mirrored lv pls check the amount of free size is availble in the both mirrored disk.