Nfs server configuration – Znyx Networks bh5700 User Manual

Page 76

Advertising
background image

/sbin/rpc.statd

/usr/sbin/rpc.mountd -r

Once the above servers are started, you can mount a remote NFS file system.

mount rhost:nfs_file_system local_mount_point

If the remote NFS file system you’re mounting is on an OA switch, you should mount with
caching disabled.

mount rhost:nfs_file_system –o noac local_mount_point

All the necessary servers are included in /etc/init.d/rcS but are commented out by default.
To automatically start all NFS client services each time you boot, uncomment the NFS Client
servers. Go to the /etc/init.d/rcS file. Uncomment the following command lines by
removing the

# sign.

/sbin/portmap

/sbin/rpc.statd

/usr/sbin/rpc.mountd -r

You can also include commands to mount remote NFS file systems at boot time. There is an
example line included at the appropriate location in /etc/init.d/rcS. Uncomment and alter
the mount command included for your particular configuration.

NOTE: A “sleep” of 5 seconds is included to allow time for the links to come up prior to
attempting the mount.

sleep 5

mount 10.0.0.1:/nfs –t nfs –o noac /mnt

NFS Server Configuration

The switch also contains an NFS server so that you can mount the switch file system from other
systems. To enable the NFS server, first follow the steps to enable the NFS client. Then, edit
/etc/exports to include the file systems you wish to export. Consult a standard Linux Network
Administrator’s Guide (or man pages) regarding options for exported file systems. Generally, an

entry in

/etc/exports looks like the following:

/nfs

*.localdomain.com(ro)

Ethernet Switch Blade User's Guide

release 3.2.2j

page 76

Advertising