Overview
In this tutorial we will be using FAS3210 with ONTAP 8 to Manage NetAPP NFS exports using exportfs CLI.
Requirements
Login to NetAPP with SSH / Console (We used PUTTY)
How to
-Read NetAPP NFS exports file:
rdfile /etc/exports
– Copy output to Notepad or something similar with CTRL+C
Output example for NFS share called “myexport” located at /vol/myexport with rw permissions to all 10.0.0.X, 10.0.1.X and root access to 10.0.0.X
/myexport -actual=/vol/myexport,sec=sys,rw=10.0.0.0/24:10.0.1.0/24,root=10.0.0.0/24
– Edit NetAPP NFS exports – for example limit 10.0.0.X to Read Only:
/myexport -actual=/vol/myexport,sec=sys,ro=10.0.0.0/24,rw=10.0.1.0/24,root=10.0.0.0/24
– Copy all exports to Memory with CTRL+C
– Write updated exports file:
wrfile /etc/exports
– Paste Memory to Console with CTRL+V
– Press enter and then exit with CTRL+C
– Re Export your NFS shares:
exportfs -a
All Done!
DevOps/IT Specialist, Musician.
IT Manager – Faculty of Exact Sciences, Bar-Ilan University
Personal Website