12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Network File System 301FIGURE 13.4Assigning Static NFS PortsProvide the ports you want to use, and click OK.Connecting to the NFS SharesThere are three ways to mount an NFS export on a client system, assuming the server hasgiven the client permission to do so:13. Use the mount command along with the server name, exported directory, and localmount point.. Add the export to /etc/fstab so it is automatically mounted at boot time or isavailable to be mounted.. Use the autofs service to mount the share when a user attempts to access it from aclient.Using mount to Connect to the NFS ShareIf you only need to mount the share occasionally (or if you are testing the export), usethe mount command. Create a directory to mount the share, then, as root, execute thefollowing command:mount -o server.example.com:/exporteddir /mountpointreplacing the server name, exported directory, and the local mount point. By default, theshare is mounted in read-write mode, meaning that all file permissions are retained fromthe server. It is important to know that the file permissions are based on the user ID andgroup ID numbers, not the user and group names used on the NFS server. If the client isallowed access by the server, the shared directory will then be available from the specifiedmount point on the client.Any NFS mount options can also be used in place of including the following:. rsize=8192. wsize=8192. timeo=14. intrThe rsize value is the number of bytes used when reading from the server. The wsizevalue is the number of bytes used when writing to the server. The default for both is

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!