1827826 Members
1964 Online
109969 Solutions
New Discussion

NFS configure

 
SOLVED
Go to solution
Shah Gaurang B.
Frequent Advisor

NFS configure

Dear Friends,

pl. guide me how to configure NFS in server and at client side ?

6 REPLIES 6
Robert-Jan Goossens
Honored Contributor

Re: NFS configure

Hi,

on the nfs server

fire up sam

"Networking and Communications"

"Networked File Systems"

"Exported Local Filesystems"

"Actions --> Add Exported File Systems"

on the client

fire up sam

"Networking and Communications"

"Networked File Systems"

"Mounted Remote File Systems"

"Actions --> Add Remote File System"

Hope this helps,
Robert-Jan
Pete Randall
Outstanding Contributor

Re: NFS configure

Edit the f/etc/rc.config.d/nfsconf file and set the NFS_CLIENT and NFS_SERVER variables to 1. Edit /etc/exports to include the file systems to be NFS mounted. Edit /etc/fstab to mount the NFS file systems on the local machine. Then reboot the servers.


Pete

Pete
Alan Meyer_4
Respected Contributor

Re: NFS configure

Once the NFS server is up and running, you can make changes to the exported file systems on the fly by;

1. Editing the /etc/exports file appropiately
2. re-exporting the exports file with the /usr/sbin/exportfs -a command.
" I may not be certified, but I am certifiable... "
Bharat Katkar
Honored Contributor
Solution

Re: NFS configure

HI,

At server Side:

1. Edit /etc/rc.config.d/nfsconf and set:
NFS_CLIENT=1
NFS_SERVER=1
2. Edit /etc/exports file and add FileSystems to be exported. See man exports for more details.
e.g the entry should look like this for /mnt filesystems:
/mnt -ro
3. # /sbin/init.d/nfs.core start
# /sbin/init.d/nfs.server start
4. # exportfs -a

On Client Side:

1. Edit /etc/rc.config.d/nfsconf and set:
NFS_CLIENT=1
NFS_SERVER=0
2. # /sbin/init.d/nfs.core start
# /sbin/init.d/nfs.client start
3. Then mount the exported filesystem
e.g example mount /mnt filesystem
# mount NFSservername:/mnt /mnt

Also have look at showmount,exportfs commands.

Hope that helps.
Regards,







You need to know a lot to actually know how little you know
Shah Gaurang B.
Frequent Advisor

Re: NFS configure

Thanks bharat and to all,

but as per procedure given by Mr.Bharat , one error shows at server side after applying command showmount on server shows

server name: rpc: program not register

and at client side at the time of mounting network file system shows error

servername: rpc_prog_not_register

so pl. give me the solution .
john kingsley
Honored Contributor

Re: NFS configure

You need to export your filesystems from the server.

Add the filesytems to /etc/exports

-access=:

Then export the filesystem

exportfs /filesystem1