This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
misc:homezfsnas [2015/01/23 08:04] tschulz [Questions] |
misc:homezfsnas [2015/01/31 21:36] (current) tschulz [Questions] |
||
---|---|---|---|
Line 15: | Line 15: | ||
===== Questions ===== | ===== Questions ===== | ||
- | - are iSCSI targets connected on bootup (Windows) | + | - are iSCSI targets connected on bootup (Windows): <file>**yes**</file> |
- | - are iSCSI targets connected on bootup (Ubuntu) yes? | + | - 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 yes with some [[ubuntu:iscsihomedir|work]], 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 | + | - can you grow iSCSI targets as ZFS volumes: **yes, (zfs set volsize=2g <POOL>/<DATASET>)** |
- | - Is there a write gain for 4 drive raid 5 | + | - Is there a write gain for 4 drive raid 5: **yes** |
- | - What is the performance hit for parity calculations | + | - What is the performance hit for parity calculations: **very small, active cpu usage is less than 2%, local throughput at 4 drives is 200MB/s, iSCSI access is at 125MB/s or 1000mb/s** |
- | - what is the added latency of ethernet/tcp transmissions | + | - what is the added latency of ethernet/tcp transmissions: **0.1ms - 0.2ms** |
+ | |||
+ | |||
+ | ====== NFS Automounter Homes ====== | ||
+ | |||
+ | ===== On Server ===== | ||
+ | |||
+ | ==== /etc/rc.conf ==== | ||
+ | * NFS locking must be turned on otherwise NFS exports will not work as home directories | ||
+ | <file> | ||
+ | ... | ||
+ | rpcbind_enable="YES" | ||
+ | nfs_server_enable="YES" | ||
+ | mountd_flags="-r" | ||
+ | rpc_lockd_enable="YES" | ||
+ | rpc_statd_enable="YES" | ||
+ | ... | ||
+ | </file> | ||
+ | |||
+ | ==== Disable ZLI on nfs dataset ==== | ||
+ | <file> | ||
+ | zfs set sync=disabled <DATASET> | ||
+ | </file> | ||
+ | ==== Share Dataset ==== | ||
+ | <file> | ||
+ | zfs set sharenfs="-maproot=root,-alldirs" <DATASET> | ||
+ | </file> | ||
+ | |||
+ | ===== On Client ===== | ||
+ | ===== 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>** | ||