Difference between revisions of "Nfs"

From Fixme.ch
Jump to: navigation, search
(configuration)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
* This is part of the [[Internal_Server]]
+
[[Category:Services]]
== How to use me (hard) ==
+
== Remark ==
 +
To start things up, I sincerely think that NAT is a bad things on a philosophical level. If you however want the nfs to support it, you're welcome to add it. So don't connect to the fixme nat in the first place.
 +
== How to ==
 
First start the rpcbind daemon and the nfs-common daemon
 
First start the rpcbind daemon and the nfs-common daemon
 +
on debian or similar (ubuntu for example)
 
<pre>sudo init.d start rpcbind nfs-common</pre>
 
<pre>sudo init.d start rpcbind nfs-common</pre>
OR
+
OR on arch
 
<pre>sudo rc.d start rpcbind nfs-common</pre>
 
<pre>sudo rc.d start rpcbind nfs-common</pre>
 
(Note: if you don't have rpcbind, just use portmap instead.
 
(Note: if you don't have rpcbind, just use portmap instead.
 
Then simply mount that little boy
 
Then simply mount that little boy
<pre>sudo mount foo.fixme.ch:/media/disk1/music /mnt</pre>
+
<pre>sudo mount nfs.fixme.ch:/media/disk1/music /mnt</pre>
 
Yes, that's all little slacker :).
 
Yes, that's all little slacker :).
 
== Shares ==
 
== Shares ==
 
* /media/disk1/share : Used by the [[Ftp]] server, accessible within the hackerspace [[Network]] by everyone.
 
* /media/disk1/share : Used by the [[Ftp]] server, accessible within the hackerspace [[Network]] by everyone.
* /media/disk1/share_internal : Used internally for storage purpose.
 
 
* /media/disk1/music : Used by [[MPD Daemon]], accessible within the hackerspace [[Network]].
 
* /media/disk1/music : Used by [[MPD Daemon]], accessible within the hackerspace [[Network]].
 
* /media/disk1/tftp : Used by the tftp server for [[pxe]].
 
* /media/disk1/tftp : Used by the tftp server for [[pxe]].
Line 19: Line 21:
 
the export file is :
 
the export file is :
 
<pre>
 
<pre>
/media/disk1/tftp               62.220.135.192/26(ro,sync,no_subtree_check)
+
/media/disk1/tftp                             62.220.135.192/26(ro,sync,no_subtree_check)
/media/disk1/tftp               [2001:788:dead::/48](ro,sync,no_subtree_check)
+
/media/disk1/tftp                             [2001:788:dead::/48](ro,sync,no_subtree_check)
  
/media/disk1/share              62.220.135.192/26(rw,subtree_check,sync)
+
/media/disk1/music                            62.220.135.192/26(ro,subtree_check,sync)
/media/disk1/share              [2001:788:dead::/48](rw,subtree_check,sync)
+
/media/disk1/music                            [2001:788:dead::/48](ro,subtree_check,sync)                                                                        
  
/media/disk1/share_internal    62.220.135.192/26(ro,subtree_check,sync)
+
/media/disk1/stl                              62.220.135.192/26(rw,subtree_check,sync)
/media/disk1/share_internal    [2001:788:dead::/48](ro,subtree_check,sync)
+
/media/disk1/stl                              [2001:788:dead::/48](rw,subtree_check,sync)
 
+
/media/disk1/music              62.220.135.192/26(ro,subtree_check,sync)
+
/media/disk1/music              [2001:788:dead::/48](ro,subtree_check,sync)                                                                         
+
 
</pre>
 
</pre>
 +
 +
* Activate debug
 +
rpcdebug -m nfs -s proc
 +
* Deactivate debug
 +
rpcdebug -m nfsd -c

Latest revision as of 21:12, 15 July 2013

Remark

To start things up, I sincerely think that NAT is a bad things on a philosophical level. If you however want the nfs to support it, you're welcome to add it. So don't connect to the fixme nat in the first place.

How to

First start the rpcbind daemon and the nfs-common daemon on debian or similar (ubuntu for example)

sudo init.d start rpcbind nfs-common

OR on arch

sudo rc.d start rpcbind nfs-common

(Note: if you don't have rpcbind, just use portmap instead. Then simply mount that little boy

sudo mount nfs.fixme.ch:/media/disk1/music /mnt

Yes, that's all little slacker :).

Shares

  • /media/disk1/share : Used by the Ftp server, accessible within the hackerspace Network by everyone.
  • /media/disk1/music : Used by MPD Daemon, accessible within the hackerspace Network.
  • /media/disk1/tftp : Used by the tftp server for pxe.

configuration

the export file is :

/media/disk1/tftp                              62.220.135.192/26(ro,sync,no_subtree_check)
/media/disk1/tftp                              [2001:788:dead::/48](ro,sync,no_subtree_check)

/media/disk1/music                             62.220.135.192/26(ro,subtree_check,sync)
/media/disk1/music                             [2001:788:dead::/48](ro,subtree_check,sync)                                                                          

/media/disk1/stl                               62.220.135.192/26(rw,subtree_check,sync)
/media/disk1/stl                               [2001:788:dead::/48](rw,subtree_check,sync)
  • Activate debug
rpcdebug -m nfs -s proc
  • Deactivate debug
rpcdebug -m nfsd -c