User Tools

Site Tools


misc:homezfsnas

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
misc:homezfsnas [2015/01/30 07:23]
tschulz [Share Dataset]
misc:homezfsnas [2015/01/30 08:20]
tschulz [Questions]
Line 17: Line 17:
   - are iSCSI targets connected on bootup (Windows): <​file>​**yes**</​file>​   - are iSCSI targets connected on bootup (Windows): <​file>​**yes**</​file>​
   - are iSCSI targets connected on bootup (Ubuntu): **yes, is seems initiator is able to reconnect even after a target restart**   - are iSCSI targets connected on bootup (Ubuntu): **yes, is seems initiator is able to reconnect even after a target restart**
 +  - Does iSCSI reattach quickly after suspend: **Linux no, Windows: yes**
   - can you grow iSCSI targets as normal files   - can you grow iSCSI targets as normal files
   - can you grow iSCSI targets as ZFS volumes: **yes, (zfs set volsize=2g <​POOL>/<​DATASET>​)**   - can you grow iSCSI targets as ZFS volumes: **yes, (zfs set volsize=2g <​POOL>/<​DATASET>​)**
Line 29: Line 30:
  
 ==== /​etc/​rc.conf ==== ==== /​etc/​rc.conf ====
 +  * NFS locking must be turned on otherwise NFS exports will not work as home directories
 <​file>​ <​file>​
 ... ...
Line 49: Line 51:
  
 ===== On Client ===== ===== On Client =====
-==== Headline ​====+===== Install autofs ​===== 
 +<​file>​ 
 +apt-get install autofs 
 +</​file>​
  
  
 +==== /​etc/​default/​autofs ====
 +<​file>​
 +...
 +BROWSE_MODE="​yes"​
 +LOGGING="​debug"​
 +MOUNT_NFS_DEFAULT_PROTOCOL=3
 +...
 +</​file>​
 +  * Autofs sends logging to syslog, on 14.10 logging showed up in **/​var/​log/​syslog**
 +
 +==== /​etc/​auto.master ====
 +<​file>​
 +/netHomes /​etc/​auto.home --timeout=300
 +</​file>​
 +
 +==== /​etc/​auto.homes ====
 +  * There must be a leading "/"​ between the NFS server and the export e.g. 192.168.0.1:/​export
 +<​file>​
 +<​SERVERNAME>​ -rw,​soft,​timeo=5,​intr <​IP/​HOSTNAME>:/<​DATASET>​
 +</​file>​
  
 +  * This will mount **<​IP/​HOSTNAME>:/<​DATASET>​** on **/​netHomes/<​SERVERNAME>​**
  
  
misc/homezfsnas.txt · Last modified: 2015/01/31 21:36 by tschulz