How to find the amount of free space available

Display the number of free physical partitions

  1. Determine the logical volume associated with the paging space or file system:

    For a paging space:

    lsps -t lv

    For non-paging file systems:

    df -k
  2. Determine the volume group associated with the logical volume: lslv hd#

    Don't include the /dev/ prefix.

    The number of 1024-blocks will be the number of LPs times the PP SIZE times 1024.

  3. Determine if there are enough free physical partitions in the volume group to increase space. lsvg vgname

    For mirrored drives, the number of FREE PPs must be at least the number of logical partitions to be added times the number of COPIES in the lslv command.

    The number of USED PPs in the lsvg output will be 4 more than the sum of the allocated PPs shown in the output of the lslv commands for all of the logical volumes allocated from the volume group.

How to increase the size of a paging space

To change the size of a paging space, use the chps command or the smit pgsp FastPath.

Increase the size of a paging space

chps -snn pagingnn
chps -snn hdn

Increases the size by nn logical paritions.

Decrease the size of a paging space

chps -dnn pagingnn
chps -dnn hdn

Decreases the size by nn logical paritions.

How to increase the size of a file system

To change the size of a file system, use the chfs command or the smit manfs FastPath.

Increase or decrease the size of a file system by one logical partition

chfs -a size=+1 fsname
chfs -a size=-lpsizeM fsname

Although size=+1 says to increase the size by one 512-byte block, the size will be rounded up to the actual size of a logical partition.

Increase the size by a given amount

chfs -a size=+nM fsname

Change the size to match another file system

df fs1name
chfs -a size=nnnnnn fs2name

The df command will display the number of 512-byte blocks in the first file system. Using that number in the chfs command will change the second file system to the same size.

Last updated Wednesday January 10, 2007


Printer-friendly PDF* format:

Commands for UNIX File System Administration

This Section

You are currently viewing this page in XHTML 1 Style Sheet* format (* see Clicklets for more infomation). This document is also available in XHTML 1*XML*HTML 4*HTML 5 Style Sheet*HTML 5 XML*HTML 5 non-XML* XHTML 2* XHTML Mobile* WML Mobile* and printer-friendly PDF* formats. This is accomplished with Single Source Publishing, a content management system that uses templates in XSLT style sheets provided by XML Styles .com to transform the source content for various content delivery channels. There is also RDF* metadata that describes the content of this document.