uncategorized

Sharing ZFS filesystems in OpenSolaris

Set sharenfs on the serving computer

1
2
su
zfs set sharenfs=ro rpool/wav

“ro” = read-only
“on” = read/write
“off” = off

The other setting is sharesmb which requires SUNWsmbs SUNWsmbskr, a reboot, and svcadm enable -r smb/server, and

1
2
3
4
5
6
cat >>/etc/pam.conf <EOF
# Seem to need this line for smb / cifs:
other password required pam_smb_passwd.so.1 nowarn
EOF

zfs set sharesmb=on rpool/wav

See http://www.aspdeveloper.net/tiki-index.php?page=SolarisSMBShareSetup for more info about sharesmb

On the client computer

1
2
3
su
mkdir /tmp/220wav
mount -F nfs 192.168.1.220:/rpool/wav /tmp/220wav
Share