ZFS

Or as was mentioned on the mailing list, zpool labelclear -f /dev/sdc should let zpool replace work to simulate a drive swap.

This wiki is powered by ikiwiki.

Omnios

Host

dladm create-vnic -l nge0    vnic20
dladm create-vnic -l e0000g0 vnic80

Zone

zone Virtuelle nic

#!/bin/sh         TYPE     STATE        ADDR
## 8 Netzwerk 
ipadm create-addr -T static -a 192.168.8.131/24 vnic80/v4static
ipadm show-addr                
netstat -rn -finet

## 2 Netzwerk
ipadm create-addr -T static -a 192.168.2.131/24 vnic20/v4static
ipadm show-addr            
route -p add default 192.168.2.1       
netstat -rn -finet

resolv.conf

 echo "search intranet.test"    > /etc/resolv.conf 
 echo "nameserver 192.168.2.1" >> /etc/resolv.conf

nsswitch.conf

cp /etc/nsswitch.dns nsswitch.conf

ZFS module parameter

This is our current optimization for small machines:

[root@nas123 ~]# cat /etc/modprobe.d/zfs.conf
 options zfs zfs_arc_max=4294967296 zfs_scrub_limit=1 zvol_threads=8
 [root@nas123 ~]#

I know how exactly to configure the options was a bit of a pain so above you can see exactly what to put in your system. A reboot will make it live. You can set some of these parameters live,       others you can not.

Zfs Sync

Production Server VM's (SQL Server etc) sync=standard data is crucial for them.
But desktop and dev VM's could run with sync=disabled as performance is
more important than loosing a couple of seconds typing.
Quelle: http://list.zfsonlinux.org/pipermail/zfs-discuss/2015-September/023101.html     

Postgresql Manifest und Startscript

ZFS Replikation

http://docs.oracle.com/cd/E17952_01/refman-5.6-en/ha-zfs-replication.html

https://github.com/shl/postgres9.smf/blob/master/README

zvol performance

With ZVOLs, you can do:

logbias=latency
primarycache=all
ideally add a SLOG
zfs create -V 10g -o volblocksize=128k tank/xfs
zfs create -V 100m -o volblocksize=4k tank/xfsjournal

mkfs.xfs -s size=4096 -d sw=1,su=131072 -m crc=0 -l logdev=/dev/zvol/tank/xfsjournal /dev/zvol/tank/xfs
mount -o largeio,discard,noatime,logbsize=256K,logbufs=8 /dev/zvol/tank/xfs /somewhere

https://github.com/zfsonlinux/zfs/issues/8590