Difference between revisions of "NFS"

From Amahi Wiki
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''NOTE:'''  This has been packaged as an [http://www.amahi.org/apps/NFS app] in Amahi, currently in '''ALPHA'''.
+
'''NOTE:'''  This has been tested with Amahi 7 and no issues noted.
  
Amahi has the ability to be a fully functional [http://en.wikipedia.org/wiki/Network_File_System_(protocol) NFS] server.
+
Amahi has the ability to be a fully functional [http://en.wikipedia.org/wiki/Network_File_System_(protocol) NFS] server.  In order to use Amahi as a NFS server we need to setup a couple of options.
  
In order to use Amahi as a NFS server we need to setup a couple of options.
+
* First we need to [[Storage_and_file_sharing#Step_2:_Create_Shares|create a share]], I will be using ''nfsexports'' for the name of mine.
  
First we need to create a share, I will be using nfsexports for the name of mine.
+
* Next we need to setup our NFS exports. This is done by executing the following commands in a terminal.
 +
su -
 +
nano -w /etc/exports
  
Next we need to setup our NFS exports. This is done by executing the following commands in a terminal.
+
:The contents of the file will be
<ol>
 
<li>su -</li>
 
<li>nano -w /etc/exports</li>
 
</ol>
 
  
The contents of the file will be
+
/var/hda/files/nfsexports *(rw,insecure,all_squash,async,anonuid=48,anongid=48)
<ul>
 
<li>/var/hda/files/nfsexports *(rw,insecure,all_squash,async,anonuid=48,anongid=48)</li>
 
</ul>
 
  
Now that this is done, its time to decide if you want to do this just once or if you want to be able to do it all the time.  If you want to do it just once, type the following without exiting from the root shell we started earlier.
+
* Now that this is done, its time to decide if you want to do this just once or if you want to be able to do it all the time.  If you want to do it just once, type the following without exiting from the root shell we started earlier.
<ul>
 
<li>service nfs start</li>
 
</ul>
 
  
If you want to be able to do this many times including rebooting your server, type the following in.
+
service nfs start
<ul>
 
<li>chkconfig nfs on</li>
 
<li>service nfs start</li>
 
</ul>
 
  
Now using SMB, the CLI or a NFS client we can add files to the NFS Exports and be able to use them.  You can use them for PXE booting, ESXi datastores, just about anything.
+
* If you want to be able to do this many times including rebooting your server, type the following in.
 +
chkconfig nfs on
 +
service nfs start
 +
 
 +
Now using SMB, the CLI or a NFS client we can add files to the NFS Exports and be able to use them.  You can use them for PXE booting, ESXi data stores, just about anything.

Latest revision as of 01:37, 17 January 2017

NOTE: This has been tested with Amahi 7 and no issues noted.

Amahi has the ability to be a fully functional NFS server. In order to use Amahi as a NFS server we need to setup a couple of options.

  • First we need to create a share, I will be using nfsexports for the name of mine.
  • Next we need to setup our NFS exports. This is done by executing the following commands in a terminal.
su -
nano -w /etc/exports
The contents of the file will be
/var/hda/files/nfsexports *(rw,insecure,all_squash,async,anonuid=48,anongid=48)
  • Now that this is done, its time to decide if you want to do this just once or if you want to be able to do it all the time. If you want to do it just once, type the following without exiting from the root shell we started earlier.
service nfs start
  • If you want to be able to do this many times including rebooting your server, type the following in.
chkconfig nfs on
service nfs start

Now using SMB, the CLI or a NFS client we can add files to the NFS Exports and be able to use them. You can use them for PXE booting, ESXi data stores, just about anything.