You are on page 1of 2

NFS a Remote File System on Solaris

by Jeff Hunter, Sr. Database Administrator

This short article demonstrates how to mount a remote file system on Solaris. Before
getting into the details, you must be logged into Solaris as the root user account.

The syntax to mount a remote file system using NFS is as follows:

mount -F nfs <remote file system> <mount point>


The following example will mount the file system /share2 located on the host cartman
to the mount point /cartman:
mount -F nfs cartman:/share2 /cartman
You can also enable the above mount command to occur on each startup of the system,
you can insert the following line into your /etc/vfstab file:
#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 -
#
# ----------------------------------------------
# DEFINE THE swap PARTITION
# ----------------------------------------------
/dev/dsk/c0t0d0s1 - - swap - no -
#
# ----------------------------------------------
# MOUNT THE root PARTITION
# ----------------------------------------------
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1
no -
#
# ----------------------------------------------
# MOUNT THE swap PARTITION
# ----------------------------------------------
swap - /tmp tmpfs - yes -
#
# ----------------------------------------------
# MOUNT /u01
# ----------------------------------------------
/dev/dsk/c0t2d0s7 /dev/rdsk/c0t2d0s7 /u01 ufs 2
yes -
#
# ----------------------------------------------
# MOUNT /cartman VIA NFS
# ----------------------------------------------
cartman:/share2 - /cartman nfs
- yes rw,soft
#
# ----------------------------------------------
# THE ENTRIES BELOW ARE FOR THE (D1000) EXAMPLES
# ----------------------------------------------
/dev/md/dsk/d0 /dev/md/rdsk/d0 /db0 ufs 2 yes -
#
# -- ALL ORACLE DATA FILES
# /dev/md/dsk/d0 /dev/md/rdsk/d0 /db0 ufs 2 yes
-
# -- ORACLE CONTROL and ONLINE REDO LOG FILES
# /dev/md/dsk/d1 /dev/md/rdsk/d1 /u03 ufs 2 yes
-
# /dev/md/dsk/d2 /dev/md/rdsk/d2 /u04 ufs 2 yes
-
# /dev/md/dsk/d3 /dev/md/rdsk/d3 /u05 ufs 2 yes
-

You might also like