Managing File Systems in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

The Virtual File System Table

Most file systems are mounted automatically by an SMF service at system boot time.

You might need to edit the /etc/vfstab file to mount legacy or remote file systems or to make changes to the ZFS swap volume. For information about changing a ZFS swap volume, see Chapter 3, Configuring Additional Swap Space.

    To add an entry for mounting a legacy or remote file system, the information you need to specify is as follows:

  • The device or the NFS server where the file system resides

  • The file system mount point

  • File system type

  • Whether you want the file system to mount automatically when the system boots (by using the mountall command)

  • Any mount options

The following vfstab example is from a system that has a ZFS root file system. In addition, this system is mounting a remote file system, /users/data, from the NFS server, neo.

# cat /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd              -               /dev/fd         fd      -       no      -
/proc           -               /proc           proc    -       no      -
/dev/zvol/dsk/rpool/swap -      -               swap    -       no      -
/devices        -              /devices         devfs   -       no      -
sharefs         -              /etc/dfs/sharetabsharefs -       no      -
ctfs            -              /system/contract ctfs    -       no      -
objfs           -              /system/object   objfs   -       no      -
swap            -              /tmp             tmpfs   -       yes     -
neo:/users/data	 -          /data            nfs     -       yes     -

ZFS file systems are mounted automatically by the SMF service at boot time. You can mount ZFS file systems from the vfstab by using the legacy mount feature.

For descriptions of each /etc/vfstab field and information on how to edit and use the file, see How to Add an Entry to the /etc/vfstab File.