Linux Networking, Part 7: Implementing NFS - page 2
Sharing Data Between Machines
NFS client and server support is actually built into the Linux kernel. The NFS server application is named The NFS script only operates if the Dynamic sharing of directories is done by The first exports the directory The second instance of The The The first allows any user read-only access to the /home/guest directory. The second allows read-write access to computers with a domain name of local.dom and read-only access to everyone else.
rpc.nfsd and the client is rpc.mountd. There is also a quota support application named rps.rquotad. These NFS deamons are normally started at boot time from the script /etc/rc.d/init.d/nfs. Most Linux implementations include this NFS support by default.
/etc/exports file exists and is not empty (zero length). The /etc/exportsNFS Server Support
rpc.nfsd using the exportfs program that changes the /etc/exports file. The following is an example using exportfs:
exportfs clientDomainName:/a/path/name/on/the/server
exportfs -o rw :/a/path/name/on/the/server
/a/path/name/on/the/server to a specified client. In this case the domain name is clientDomainName*.foo.com. This could also be an IP address or an IP address and subnet mask. NIS group names can also be used. The directory is exported as read-only when no options specified.
exportfs exports the same directory but allows the world to access it. The exportfs supports a number of options. In this case, the command allows read-write access.
exportfs program is also used to remove an export. This is done using the -u option as shown below:
exportfs -u client DomainName:/a/path/name/on/the/server
/etc/exports file is used to define exported NFS directories when NFS is started. Each line in the file defines the directory to be exported and how the directory can be accessed. The following is a sample /etc/exports file:
/home/guest (ro)
/pub *.local.dom(rw) (ro)
Skip Ahead
Solid state disks (SSDs) made a splash in consumer technology, and now the technology has its eyes on the enterprise storage market. Download this eBook to see what SSDs can do for your infrastructure and review the pros and cons of this potentially game-changing storage technology.