setup network interface nic1 static
setup network interface nic1 unconfiguresetup network interface nic2 unconfigure
setup network aggregation createsetup network interface aggr1 static
setup appliance nms property net_tcp_recv_hiwat -y -p 524288setup appliance nms property net_tcp_xmit_hiwat -y -p 524288setup appliance nms property net_tcp_naglim_def -y -p 1setup appliance nms property sys_zfs_vdev_max_pending -y -p 1(効かにゃい?)
zfs set mountpoint=/volumes/pool1 pool1zfs set sync=disabled pool1zfs set sync=disabled pool1/sharezfs set atime=off pool1zfs set atime=off pool1/sharezfs set snapdir=visible pool1zfs set snapdir=visible pool1/shareecho set zfs:zfs_scrub_delay = 100 >> /etc/systemecho set zfs:zfs_scrub_limit = 1 >> /etc/systemecho set rpcmod:clnt_max_conns = 8 >> /etc/systemecho set hires_tick = 1 >> /etc/system# RAID HBA CACHEとCompress関連で調整echo set zfs:zfs_txg_timeout = 10 >> /etc/systemecho set zfs:zfs_write_limit_override = 0 >> /etc/system# SATA直結の場合1〜 SAN等には30〜echo set zfs:zfs_vdev_max_pending = 1 >> /etc/system# Dedup/L2ARC使用時echo set zfs:zfs_arc_meta_limit = $(( $(echo "::arc" | mdb -k | grep "^c_max" |sed -e 's/^[^=]*=[ ]*//' -e 's/ *MB//')000000 / 10 * 8 )) >> /etc/system割合は適当に変更
apt-get update ; apt-get install sudo topapt-get install sunwter
u=user1echo "$u localhost:/export/home/&" >> /etc/auto_homeusermod -d /home/$u $uecho "$u::::roles=root" >> /etc/user_attrmkdir /export/home/$uchown $u.staff /export/home/$u
visudouser1 ALL=(ALL) NOPASSWD: ALLDefaults:user1 !env_reset# nfs clientのIPを全部登録vi /etc/hostsseq 1 9|while read a ; do echo 123.123.123.$a sv0$a ; done | grep -v $HOSTNAME >> /etc/hostsseq 10 254|while read a ; do echo 123.123.123.$a sv$a ; done | grep -v $HOSTNAME >> /etc/hostscd /ln -s /volumes/pool1/mkdir -p /vmfs/volumescd /vmfs/volumes/host=`cat /etc/nodename`ln -s /pool1/share/ ds_$hostcd / ; ln -s /volumes/pool1chmod 777 /pool1/sharecrontab -essh-keygen -t rsacd ; cd .sshvi authorized_keysecho VerifyReverseMapping no >> /etc/ssh/sshd_config