![]() |
< Previous | Next > |
Product: File System Guides | |
Manual: File System 4.1 Administrator's Guide |
Resizing a File SystemYou can extend or shrink mounted VxFS file systems using the fsadm command. Use the extendfs command to extend the size of an unmounted file system. A file system using the Version 4 disk layout can be up to two terabytes in size. A file system using the Version 5 disk layout can be up to 32 terabytes in size. A file system using the Version 6 disk layout can be up to 256 terabytes in size. The size to which a Version 5 or Version 6 disk layout file system can be increased depends on the file system block size (as shown in the tables under VxFS Version 5 Disk Layout and VxFS Version 6 Disk Layout). See the following manual pages for more information about resizing file systems: extendfs(1M) fsadm_vxfs(1M) How to Extend a File System Using fsadmIf a VxFS file system is not large enough, you can increase its size. The size of the file system is specified in units of 1024-byte blocks (or sectors). ![]() To extend a VxFS file system, use the syntax:
fsadm [-F vxfs] [-b newsize] [-r rawdev] mount_point
The size (in sectors) to which the file system will increase.
Specifies the path name of the raw device if there is no entry in /etc/fstab and fsadm cannot determine the raw device.
![]() To extend the VxFS file system mounted on /ext to 22528 sectors, enter: # fsadm -F vxfs -b 22528 /ext How to Shrink a File SystemYou can decrease the size of the file system using fsadm, even while the file system is mounted. ![]() To decrease the size of a VxFS file system, use the syntax: fsadm [-F vxfs] [-b newsize] [-r rawdev] mount_point
Specifies the path name of the raw device if there is no entry in /etc/fstab and fsadm cannot determine the raw device.
To shrink a VxFS file system mounted at /ext to 20480 sectors, enter: # fsadm -F vxfs -b 20480 /ext ![]() How to Reorganize a File SystemYou can reorganize (or compact) a fragmented file system using fsadm, even while the file system is mounted. This may help shrink a file system that could not previously be decreased. ![]() To reorganize a VxFS file system, use the syntax: fsadm [-F vxfs] [-e] [-d] [-E] [-D] [-r rawdev] mount_point
To reorganize the VxFS file system mounted at /ext, enter: # fsadm -F vxfs -EeDd /ext How to Extend a File System Using extendfsIf 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, use the syntax: extendfs [-F vxfs] [-q] [-v] [-s size] special
Specifies the number of blocks to add to the file system (maximum if not specified)
![]() 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. To increase the capacity of a file system on a VM volume, enter: # umount /dev/vg00/lvol7 # lvextend -L larger_size /dev/vg00/lvol7 # extendfs -F vxfs /dev/vg00/rlvol7 # mount -F vxfs /dev/vg00/lvol7 mount_point |
^ Return to Top | < Previous | Next > |
Product: File System Guides | |
Manual: File System 4.1 Administrator's Guide | |
VERITAS Software Corporation
www.veritas.com |