Setting Up An NFS Server And Client On Mandriva 2010.1 Spring
Setting Up An NFS Server And Client On Mandriva 2010.1 SpringVersion 1.0 This guide explains how to set up an NFS server and an NFS client on Mandriva 2010.1 Spring. NFS stands for Network File System; through NFS, a client can access (read, write) a remote share on an NFS server as if it was on the local hard disk. I do not issue any guarantee that this will work for you!
1 Preliminary NoteI'm using two Mandriva systems here:
2 Installing NFSserver: On the NFS server we run: urpmi nfs-utils Then we create the system startup links for the NFS server and start it: chkconfig --levels 235 nfs-server on client: On the client we can install NFS as follows (this is actually the same as on the server): urpmi nfs-utils
3 Exporting Directories On The Serverserver: I'd like to make the directories /home and /var/nfs accessible to the client; therefore we must "export" them on the server. When a client accesses an NFS share, this normally happens as the user nobody. Usually the /home directory isn't owned by nobody (and I don't recommend to change its ownership to nobody!), and because we want to read and write on /home, we tell NFS that accesses should be made as root (if our /home share was read-only, this wouldn't be necessary). The /var/nfs directory doesn't exist, so we can create it and change its ownership to nobody and nogroup: mkdir /var/nfs Now we must modify /etc/exports where we "export" our NFS shares. We specify /home and /var/nfs as NFS shares and tell NFS to make accesses to /home as root (to learn more about /etc/exports, its format and available options, take a look at man 5 exports ) vi /etc/exports
(The no_root_squash option makes that /home will be accessed as root.) Whenever we modify /etc/exports, we must run exportfs -a afterwards to make the changes effective.
|




Recent comments
11 hours 36 min ago
16 hours 35 min ago
18 hours 1 min ago
18 hours 54 min ago
20 hours 37 min ago
1 day 1 hour ago
1 day 1 hour ago
1 day 4 hours ago
1 day 17 hours ago
1 day 18 hours ago