Configure NFS on suse Linux

This entry was posted in Linux and tagged on June 17, 2012, by

Configure NFS on Suse

NFS SERVER

1. Edit /etc/exports file

# vi /etc/exports

/home 192.168.0.0/24(rw,sync,no_root_squash)

Save and quit

where /home – is the share directory

192.168.0.0/24 is network range to access the nfs

rw – read write

sync – syncronize

no_root_squash – enable root privileage

2. Start the bind and nfs service

# /etc/init.d/rpcbind start

# /etc/init.d/nfsserver start

# chkconfig rpcbind on

# chkconfig nfsserver on

NFS CLIENT

1. Start the bind service

# /etc/init.d/rpcbind start

# chkconfig rpcbind on

2. Mount the NFS server mount point

# mount -t nfs nfs.server:/home /home

where nfs.server is the server name

# df -h

You will see home directory is mounted

3 . In order to bring it up on next boot you should edit /etc/fstab file

# vi /etc/fstab

nfs.server:/home /home nfs defaults 0 0

Save and quit

4. Start the service

# chkconfig nfs on

Now you will be able to acces the NFS share on next boot

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright 2017 ©Aceadmins. All rights reserved.