Symantec logo

Extending a file system using extendfs

If a VxFS file system is not mounted, you can use the extendfs command to increase the size of the file system.

 To extend a VxFS file system

extendfs [-F vxfs] [-q] [-v] [-s size] special

vxfs

The file system type

-q

Displays the size of special without resizing it

-v

Specifies verbose mode

-s size

Specifies the number of blocks to add to the file system (maximum if not specified)

special

Either a logical volume or a disk partition


  Note   The device must have enough space to hold the new larger file system.

When the file system size is grown with the extendfs command, the intent log size is not automatically increased. This issue is most visible when upgrading file systems with disk layout Versions prior to 3 and of a size smaller than 8 MB. When such a file system is upgraded to disk layout Version 4 and then extended to a size greater than 8 MB with the extendfs command, the file system cannot be mounted since the minimum allowed intent log size is 256K.



Example of extending a VxFS file system

The following example extends a VxFS file system on a VxVM volume.

 To increase the capacity of a file system

  1. Unmount the file system:

# umount /dev/vg00/lvol7

  1. Extend the volume so that the volume can contain the larger file system:

# lvextend -L larger_size /dev/vg00/lvol7

  1. Extend the file system:

# extendfs -F vxfs /dev/vg00/rlvol7

  1. Mount the file system:

# mount -F vxfs /dev/vg00/lvol7 mount_point