System Administration Guide: Network Services

ProcedureHow to Disable Large Files on an NFS Server

For servers that are supporting clients that cannot handle a file over 2 GBytes, you might need to disable the ability to create large files.

Note –

Versions prior to the 2.6 release of the Solaris release cannot use large files. If the clients need to access large files, check that the clients of the NFS server are running, at minimum, the 2.6 release.

  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services. To configure a role with the Primary Administrator profile, see Chapter 2, Working With the Solaris Management Console (Tasks), in System Administration Guide: Basic Administration.

  2. Check that no large files exist on the file system.

    For example:

    # cd /export/home1
    # find . -xdev -size +2000000 -exec ls -l {} \;

    If large files are on the file system, you must remove or move these files to another file system.

  3. Unmount the file system.

    # umount /export/home1
  4. Reset the file system state if the file system has been mounted by using largefiles.

    fsck resets the file system state if no large files exist on the file system:

    # fsck /export/home1
  5. Mount the file system by using nolargefiles.

    # mount -F ufs -o nolargefiles /export/home1

    You can mount from the command line, but to make the option more permanent, add an entry that resembles the following into /etc/vfstab:

    /dev/dsk/c0t3d0s1 /dev/rdsk/c0t3d0s1 /export/home1  ufs  2  yes  nolargefiles