Home > Linux > Create NFS share on Linux system

Create NFS share on Linux system

Create NFS Shared File System:

Log in as root user:

[root@vhost001 ~]# id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)

[root@vhost001 ~]# mkdir /dba

Add the following lines to the /etc/exports file.

/dba                 *(rw,sync,no_wdelay,insecure_locks,no_root_squash)

Run the following command to export the NFS shares.
chkconfig nfs on
service nfs restart
Log into another server and mount the the NFS share:

Add the following lines to the “/etc/fstab” file.
vhost001:/dba  /home/oracle/admin/scripts  nfs  rw,bg,hard,nointr,tcp,vers=3,timeo=300,rsize=32768,wsize=32768,actimeo=0  0 0
mount -a

vhost001:/dba         894G  151G  697G  18% /home/oracle/admin/scripts

chown -R oracle:oinstall /home/oracle/admin/scripts

Thanks
Uma

Categories: Linux
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: