1832152 Members
3534 Online
110038 Solutions
New Discussion

Free Space

 
SOLVED
Go to solution
Indrajit Bhagat
Regular Advisor

Free Space

How do you calculate the free space available , to increase/extend a filesystem.?
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Free Space

Shalom Indrajit,

LVM only once again.

vgdisplay /dev/vg00
# /dev/vg00 may need to be chaned.
# You will see a list of physical disks.

pvdisplay /dev/dsk/c1t1d0
# example use a real disk.

Now you know if you have a disk to extend to.

lvexted

Note that the root FS can not be extended, it must be contiguous.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Wouter Jagers
Honored Contributor
Solution

Re: Free Space

When issuing the following command:

# vgdisplay vg00

These 2 lines are important:
PE Size (Mbytes) 16
Free PE 1200

In this example, 1200 Physical Extents (PE) are still available and every PE is 16MB in size. Hence, in this example there is 1200x16MB=19200MB still available in vg00.

When you are out of free PE's, listen to SEP :)

Cheers
an engineer's aim in a discussion is not to persuade, but to clarify.
Arturo Galbiati
Esteemed Contributor

Re: Free Space

Hi,
you can use the attached script.
HTH,
Art