在opensolaris11上配置smb server
root@opensolaris:~# rem_drv smbsrv
root@opensolaris:~# pkg install SUNWsmbskr
DOWNLOAD PKGS FILES XFER (MB)
Completed 1/1 6/6 0.43/0.43
PHASE ACTIONS
Install Phase 20/20
root@opensolaris:~# pkg install SUNWsmbs
DOWNLOAD PKGS FILES XFER (MB)
SUNWsmbs 0/1 2/29 0.00/1.49
Completed 1/1 29/29 1.49/1.49
PHASE ACTIONS
Install Phase 70/70
root@opensolaris:~#
root@opensolaris:~# add_drv smbsrv
Driver (smbsrv) is already installed.
root@opensolaris:~# svccfg import /var/svc/manifest/network/smb/server.xml
root@opensolaris:~#
root@opensolaris:~# svcadm enable -r smb/server
svcadm: svc:/milestone/network depends on svc:/network/physical, which has multiple instances.
root@opensolaris:~# svcs -a |grep smb
online 15:40:47 svc:/network/smb/client:default
maintenance 16:38:21 svc:/network/smb/server:default
root@opensolaris:~#
到這裏報錯了,沒有在solaris 上高過smb,不知道哪裏出問題了,怎麼辦?google
原來opensoalris的日誌目錄在
/var/svc/log
root@opensolaris:/var/svc/log# cat network-smb-server\:default.log
[ Dec 3 16:10:52 Disabled. ]
[ Dec 3 16:10:52 Rereading configuration. ]
[ Dec 3 16:36:29 Rereading configuration. ]
[ Dec 3 16:37:44 Rereading configuration. ]
[ Dec 3 16:38:19 Enabled. ]
[ Dec 3 16:38:20 Executing start method ("/usr/lib/smbsrv/smbd start"). ]
smbd: NetBIOS services started
smbd: kernel bind error: No such file or directory
smbd: daemon initialization failed
[ Dec 3 16:38:21 Method "start" exited with status 95. ]
[ Dec 3 16:40:00 Leaving maintenance because disable requested. ]
[ Dec 3 16:40:00 Disabled. ]
[ Dec 3 16:40:17 Enabled. ]
[ Dec 3 16:40:17 Executing start method ("/usr/lib/smbsrv/smbd start"). ]
smbd: NetBIOS services started
smbd: kernel bind error: No such file or directory
smbd: daemon initialization failed
[ Dec 3 16:40:18 Method "start" exited with status 95. ]
root@opensolaris:/var/svc/log#
繼續google之
http://www.opensolaris.org/jive/thread.jspa?threadID=70302&tstart=0中說“A reboot solved the problem.”
reboot機器後,果然
root@opensolaris:~# svcs -a |grep smb
online 17:04:07 svc:/network/smb/client:default
online 17:04:08 svc:/network/smb/server:default
好了,繼續。
没有评论:
发表评论