User Tools

Site Tools


nas

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
nas [2011/11/22 10:57] – created alexnas [2011/11/22 11:09] (current) alex
Line 2: Line 2:
 As we are limited on disk space, we are using NASes lurking on the end of xDSL connections.  The problem with this is that obvious the xDSL uplinks are slow, but fortunately we can call upon [[http://en.wikipedia.org/wiki/CacheFS|CacheFS]] to speed things up. As we are limited on disk space, we are using NASes lurking on the end of xDSL connections.  The problem with this is that obvious the xDSL uplinks are slow, but fortunately we can call upon [[http://en.wikipedia.org/wiki/CacheFS|CacheFS]] to speed things up.
  
-===== NAT Firewall =====+===== Configuration ===== 
 +==== NAS Side ==== 
 +=== NAT Firewall ===
 Unfortuantely Debian squeeze does not support IPv6 NFS mounts so we have to jump through a bunch of NAT hoops. Unfortuantely Debian squeeze does not support IPv6 NFS mounts so we have to jump through a bunch of NAT hoops.
  
Line 21: Line 23:
   -A PREROUTING -i ppp0 -s 188.246.204.87 -d 192.0.2.1 -p tcp -m multiport --dports 111,2049,32767 -j DNAT --to-destination 192.168.64.96   -A PREROUTING -i ppp0 -s 188.246.204.87 -d 192.0.2.1 -p tcp -m multiport --dports 111,2049,32767 -j DNAT --to-destination 192.168.64.96
   -A PREROUTING -i ppp0 -s 188.246.204.87 -d 192.0.2.1 -p udp -m multiport --dports 111,2049,32767 -j DNAT --to-destination 192.168.64.96   -A PREROUTING -i ppp0 -s 188.246.204.87 -d 192.0.2.1 -p udp -m multiport --dports 111,2049,32767 -j DNAT --to-destination 192.168.64.96
 +
 +=== LDAP Replication ===
 +FIXME
 +
 +[[https://help.ubuntu.com/community/OpenLDAPServer#LDAP_replication]]
 +
 +=== NFS Replicas ===
 +FIXME
 +
 +Jamie and I plan to have an rsync session keeping content between our NASes in sync (probably with [[https://github.com/hollow/inosync#readme|inosync]] or [[http://code.google.com/p/lsyncd/|lsyncd]]).  Once done we can use 'replicas' in ''/etc/exports'' to tell marmot that it can pull the file contents from either of our xDSL links.
 +
 +==== marmot side ====
 +Until the NFS replica is set up a sraight forward mount point is configured in ''/etc/fstab'':
 +  router.foobar.wormnet.eu:/photos       /home/alex/bitbucket/photos     nfs4    relatime,nodev,nosuid,noexec,sec=none,soft,bg,fsc,ro        0
 +  
 +The "''bg,soft''" hopefully helps out if the xDSL link is down when marmot reboots and "''fsc''" instructs marmot to use CacheFS (using the 'cachefilesd' daemon).
nas.1321959422.txt.gz · Last modified: 2011/11/22 10:57 by alex