OpenSolarisでRAID1を作ってみる。
install
GUIで適度にIPとか変更。
cat /etc/nsswitch.dns > /etc/nsswitch.conf
ntpdate pool.ntp.org
pfexec pkg install SUNWipkg
pfexec pkg image-update
init 6
format fdisk c8t0d0 create partition 2
prtvtoc /dev/rdsk/c8t0d0s0 | fmthard -s - /dev/rdsk/c8t1d0s0
zpool attach -f rpool c8t0d0s0 c8t1d0s0
installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c8t0d0s0
installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c8t1d0s0
zpool list
zpool status
format fdisk c8t0d0 create patition 2
format fdisk c8t1d0 create patition 2
zpool create pool1 c8t0d0p2 c8t1d0p2 c9t0d0 c9t1d0 c10t0d0 c10t1d0
zfs create -o atime=off -o casesensitivity=mixed -o snapdir=visible -o aclmode=passthrough -o aclinherit=passthrough pool1/share
zfs set sharenfs=on pool1/share
echo set nfs:nfs_allow_preepoch_time = 1 >> /etc/system
echo set nfs:nfs3_max_threads = 32 >> /etc/system
echo set nfs:nfs3_nra = 32 >> /etc/system
echo set zfs:zfs_nocacheflush = 1 >> /etc/system
echo set zfs:zil_disable = 1 >> /etc/system
crontab -e
0 4 * * * svcadm restart idmap
0 * * * * ntpdate pool.ntp.org
svcadm restart cron
pkg install SUNWsmbskr
pkg install SUNWsmbs
init 6
svcadm enable -r smb/server
zfs set sharesmb=on pool1/share
zfs set sharesmb=name=share1 pool1/share
smbadm join -w WORKGROUP
echo other password required pam_smb_passwd.so.1 nowarn >> /etc/pam.conf
passwd 既存ユーザ(smbpasswd相当)
vi resolv.conf
share
chmod 777 /pool1/share
sharemgr show -vp
vi resolv.conf
reboot
若しくは
smbadm join -u domain_admin DOMAIN
svcadm disable smb/server
svcadm enable -r smb/server
chmod -R A=owner@:full_set:fd:allow /pool1/share
chmod -R A+group@:full_set:fd:allow /pool1/share
chmod -R A+everyone@:read_set:fd:allow /pool1/share
ただしあちこちbuggyというか、やっぱダメだこのOS