compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (14)

View Page History
Copied from [https://gist.github.com/sjorge/57c7694e6a0df6fe2ad4]


{code:language=bash|title=root@smartos|linenumbers=true}mkdir -p /opt/custom/smf/bin
cd /opt/custom/smf
<set nfs/smb config, create/edit groups/user>
svcadm enable persist-syscfg{code}
|| variable \\ || description \\ ||
| enable_stmf | enable services needed for iSCSI target \\ |
| enable_smb | enable services needed for CIFS \\ |
| enable_nfs | enable services needed for NFS \\
\\ |

{code:title=persist-syscfg|language=bash|collapse=true}
if [[ -n $(/bin/bootparams | grep '^smartos=true') ]]; then
# file magic
svcadm disable system/name-service-cache:default
 for file in ${save_us[*]}
do
ukf=${ukeystor}${file}
fi
done
svcadm enable system/name-service-cache:default
 mkdir -p ${ukeystor}/svc/
[ -e /tmp/nfssrv.lock ] && svccfg export -a nfs/server > ${ukeystor}/svc/nfssrv.prop
[ -e ${ukeystor}/svc/nfssrv.prop ] && svccfg import ${ukeystor}/svc/nfssrv.prop
;;
'stop')
svcadm disable system/name-service-cache:default
 for file in ${save_us[*]}
do
if [[ -n $(/usr/sbin/mount -p | grep $file) ]]; then
fi
done
svcadm enable system/name-service-cache:default
 ;;
esac
{code}