Symantec logo

The largefiles|nolargefiles option

The section following describes:

VxFS supports files larger than 2 gigabytes. The maximum file size that can be created is 2 terabytes.


  Note   Applications and utilities such as backup may experience problems if they are not aware of large files. In such a case, create your file system without large file capability.


Creating a File System with large files

You can create a file system with large file capability by entering the following command:

# mkfs -F vxfs -o largefiles special_device size

Specifying largefiles sets the largefiles flag, which allows the file system to hold files that are two terabytes or larger in size. The default option is largefiles. Conversely, the nolargefiles option clears the flag and prevents large files from being created:

# mkfs -F vxfs -o nolargefiles special_device size


  Note   The largefiles flag is persistent and stored on disk.


Mounting a File System with large files

If a mount succeeds and nolargefiles is specified, the file system cannot contain or create any large files. If a mount succeeds and largefiles is specified, the file system may contain and create large files.

The mount command fails if the specified largefiles|nolargefiles option does not match the on-disk flag.

The mount command defaults to match the current setting of the on-disk flag if specified without the largefiles or nolargefiles option, so it's best not to specify either option. After a file system is mounted, you can use the fsadm utility to change the large files option.

Managing a File System with large files

You can determine the current status of the largefiles flag using the fsadm or mkfs command:

# mkfs -F vxfs -m special_device

# fsadm -F vxfs mount_point | special_device

You can switch capabilities on a mounted file system using the fsadm command:

# fsadm -F vxfs -o [no]largefiles mount_point

You can also switch capabilities on an unmounted file system:

# fsadm -F vxfs -o [no]largefiles special_device

You cannot change a file system to nolargefiles if it holds large files.

See the mount_vxfs(1M), fsadm_vxfs(1M), and mkfs_vxfs(1M) manual pages.