Monday, January 5, 2015

Creating NFS Shares in NetApp Filer

http://netappnotesark.blogspot.in/2015/08/index_12.html

NFS: Network File Sharing. Sharing the Files over the Network using TCP/IP Protocol NFS.

Enabling the NFS in Storage Box you have to add the license to it.
1. Check the NFS license, If not add the License.
2. Check the Service status, If not running start the Service
3. Verify the Host and Storage Controllers are Reachable each other.
4. Create a NFS Share with Read-Only Permission and Change to Read-write
5. Mount the File system yet the Client side.

CtrlInMDR> license show NFS
Serial Number: 4079432-75-2
Owner: CtrlInMDR
Package           Type    Description           Expiration
----------------- ------- --------------------- --------------------
NFS               license NFS License           -

I have NFS license, If not there add the license 
CtrlInMDR>license add <License Key>
check the nfs service status

CtrlInMDR> nfs status
NFS server is NOT running.

in My Case NFS Service is not running.

CtrlInMDR> nfs on
NFS server is running.

CtrlInMDR> nfs status
NFS server is running.
Now NFS service is started.
CtrlInMDR> vol create nfstest dstaggr 200M
Creation of volume 'nfstest' with size 200m on containing aggregate
'dstaggr' has completed.

Created One volume to share using NFS

CtrlInMDR> df -h nfstest
Filesystem               total       used      avail capacity  Mounted on
/vol/nfstest/            200MB      120KB      199MB       0%  /vol/nfstest/
/vol/nfstest/.snapshot        0TB        0TB        0TB       0%  /vol/nfstest/.snapshot

Above is the Volume nfstest
configuration file of NFS is /etc/exports
we have to add a entry to create or share NFS share to the client server.
CtrlInMDR> wrfile /etc/exports
/vol/nfstest    -sec=sys,rw,root=10.80.235.51,nosuid
read: error reading standard input: Interrupted system call

For sharing the NFS Share with Read-Write and root Access to the particular Server add above line in /etc/exports

::Client Side::

 ~]# showmount -e 10.80.242.203
Export list for 10.80.242.203:
/vol/vol0/home (everyone)
/vol/vol0      10.80.242.200
/vol/dst1      (everyone)
/vol/nfstest   (everyone)

Verify whether NFS share is visible or not. (Discover NFS Share)
Then Mount the  NFS share to the client system.

 ~]#  mount -t nfs 10.80.242.203:/vol/nfstest /nfsshare/
Check the Mount Point.

~]# df -h /nfsshare/
Filesystem            Size  Used Avail Use% Mounted on
10.80.242.203:/vol/nfstest 200M   64K  200M   1% /nfsshare

Now verify with Creating and Modifying some Data in NFS Share.
 ~]# cd /nfsshare/
[root@CXServer nfsshare]# ls -a
.  ..  .snapshot

[root@CXServer nfsshare]# mkdir nfs

[root@CXServer nfsshare]# ls
nfs

[root@CXServer nfsshare]# cd nfs/

[root@CXServer nfs]# touch test tes1

[root@CXServer nfs]# ls
tes1  test

Now Successfully able to create and modify the data from NFS Shares. 
:::::::::::::END:::::::::::::::::::::::

Please provide your valuable comments..........

No comments:

Post a Comment