2012. 6. 4. 12:25

Solaris/nfs server가 smf에서 보이지 않을때

######################################################
# svcs -a 로 봤을때 /network/nfs/server가 보이지 않을때 확인 방법

######################################################


a. Try re-importing the manifest (Reference : http://www.linuxquestions.org/questions/solaris-opensolaris-20/svcadm-pattern-nfs-status-doesnt-match-any-instances-813401/)
# svccfg import /var/svc/manifest/network/nfs/server.xml


a. Before do above workaround, CHECK below items (Reference : http://www.unix.com/unix-advanced-expert-users/41292-svcadm-solaris-10-a.html)

please check with
pkginfo | grep nfs
if there are all packets .


system SUNWnfsckr Network File System (NFS) client kernel support (Root)
system SUNWnfscr Network File System (NFS) client support (Root)
system SUNWnfscu Network File System (NFS) client support (Usr)
system SUNWnfsskr Network File System (NFS) server kernel support (Root)
system SUNWnfssr Network File System (NFS) server support (Root)
system SUNWnfssu Network File System (NFS) server support (Usr)


And one more test if the manifest is installed:

more /var/sadm/install/contents | grep "/var/svc/manifest/network/nfs"


/var/svc/manifest/network/nfs d none 0755 root sys SUNWnfssr SUNWnfscr
/var/svc/manifest/network/nfs/cbd.xml f manifest 0444 root sys 2204 53695 1106350153 SUNWnfscr
/var/svc/manifest/network/nfs/client.xml f manifest 0444 root sys 2980 51885 1106350149 SUNWnfscr
/var/svc/manifest/network/nfs/mapid.xml f manifest 0444 root sys 2364 975 1106350150 SUNWnfscr
/var/svc/manifest/network/nfs/nlockmgr.xml f manifest 0444 root sys 2204 53993 1166763677 SUNWnfscr
/var/svc/manifest/network/nfs/rquota.xml f manifest 0444 root sys 2288 62355 1106350149 SUNWnfssr
/var/svc/manifest/network/nfs/server.xml f manifest 0444 root sys 3333 18726 1106350148 SUNWnfssr
/var/svc/manifest/network/nfs/status.xml f manifest 0444 root sys 2023 38699 1106350152 SUNWnfscr