svcadm fails to enable nfs/server


 
Thread Tools Search this Thread
Operating Systems Solaris svcadm fails to enable nfs/server
# 1  
Old 08-13-2008
svcadm fails to enable nfs/server

When trying to enable nfs/server, I keep getting this message that another entity has disabled the service but I cannot find where the problem is.

Code:
hostname:> svcadm -v enable -s svc:/network/nfs/server
svc:/network/nfs/server:default enabled.
svcadm: Instance "svc:/network/nfs/server:default" has been disabled by another entity.

svcs doesn't really tell me anything about what the problem is. In fact, svcs says that it is disabled by an administrator.

Code:
hostname:> svcs -xv nfs/server
svc:/network/nfs/server:default (NFS server)
 State: disabled since Tue Aug 12 19:59:12 2008
Reason: Disabled by an administrator.
   See: Sun Message ID: SMF-8000-05
   See: man -M /usr/share/man -s 1M nfsd
Impact: This service is not running.


Checking the log doesn't give me anything to go on either.

Code:
 
hostname:> cat /var/svc/log/network-nfs-server\:default.log | tail -10
[ Aug 12 13:16:45 Enabled. ]
[ Aug 12 13:16:49 Disabled. ]
[ Aug 12 13:17:37 Enabled. ]
[ Aug 12 13:17:43 Disabled. ]
[ Aug 12 13:21:42 Enabled. ]
[ Aug 12 13:21:46 Disabled. ]
[ Aug 12 13:24:30 Enabled. ]
[ Aug 12 13:24:34 Disabled. ]
[ Aug 12 19:59:01 Enabled. ]
[ Aug 12 19:59:12 Disabled. ]

Can anyone point me in the right direction to find out why this svc keeps getting disabled?
# 2  
Old 08-13-2008
What about services that nfs/server is dependent on? You might want to check svcs -d nfs/server to make sure that all necessary processes are running.
# 3  
Old 08-13-2008
Code:
 
hostname:> svcs -d nfs/server
STATE          STIME    FMRI
disabled        0:49:04 svc:/network/rpc/keyserv:default
online          0:49:06 svc:/milestone/network:default
online          0:49:39 svc:/system/filesystem/local:default
online          0:49:40 svc:/network/rpc/bind:default
online          0:49:40 svc:/network/nfs/mapid:default
online          0:49:40 svc:/network/nfs/nlockmgr:default
online          0:49:41 svc:/network/rpc/gss:default

When I looked at this, I thought ... great, just start keyserv. But I don't think that's the cause of the problem. Even when I use the recursive option for svcadm if fails to start. Plus, this is one server in a redundant pair. On the mate server, svcs -d shows the same thing (except for difference in STIME) but nfs/server comes online in the mate. On this server, it briefly comes online and then quickly goes disabled again.

The logs have now changed. Yesterday they were only showing Enabled/Disabled, now they look like this:
Code:
[ Aug 13 09:27:42 Executing start method ("/lib/svc/method/nfs-server start") ]
[ Aug 13 09:27:42 Method "start" exited with status 0 ]
[ Aug 13 09:28:01 Stopping because service disabled. ]
[ Aug 13 09:28:01 Executing stop method ("/lib/svc/method/nfs-server stop 2393") ]
[ Aug 13 09:28:01 Method "stop" exited with status 0 ]
[ Aug 13 09:34:43 Enabled. ]
[ Aug 13 09:34:43 Executing start method ("/lib/svc/method/nfs-server start") ]
[ Aug 13 09:34:43 Method "start" exited with status 0 ]
[ Aug 13 09:34:57 Stopping because service disabled. ]
[ Aug 13 09:34:57 Executing stop method ("/lib/svc/method/nfs-server stop 2409") ]
[ Aug 13 09:34:58 Method "stop" exited with status 0 ]
[ Aug 13 09:35:22 Enabled. ]
[ Aug 13 09:35:22 Executing start method ("/lib/svc/method/nfs-server start") ]
[ Aug 13 09:35:23 Method "start" exited with status 0 ]
[ Aug 13 09:35:36 Stopping because service disabled. ]
[ Aug 13 09:35:36 Executing stop method ("/lib/svc/method/nfs-server stop 2419") ]
[ Aug 13 09:35:36 Method "stop" exited with status 0 ]
[ Aug 13 09:36:29 Enabled. ]
[ Aug 13 09:36:30 Executing start method ("/lib/svc/method/nfs-server start") ]
[ Aug 13 09:36:30 Method "start" exited with status 0 ]
[ Aug 13 09:36:46 Stopping because service disabled. ]
[ Aug 13 09:36:46 Executing stop method ("/lib/svc/method/nfs-server stop 2435") ]
[ Aug 13 09:36:46 Method "stop" exited with status 0 ]

# 4  
Old 08-13-2008
Have you set anything to share in the /etc/dfs/dfstab ?
# 5  
Old 08-13-2008
Here is /etc/dfs/dfstab on the working server:
Code:
hostname_b:> cat /etc/dfs/dfstab
# THIS LINE DEFINES THE COMMENT CHARACTER FOR THIS FILE BUT WILL NOT BE INCLUDED
/usr/sbin/share -F nfs -o rw=@xx.yyy.zzz.37/25,root=@xx.yyy.zzz.37/25 -d 'Sxxxxxx Billing' /billing
/usr/sbin/share -F nfs -o rw=@xx.yyy.zzz.37/25,root=@xx.yyy.zzz.37/25 -d 'Sxxxxxx TMM' /stats
/usr/sbin/share -F nfs -o rw=@xx.yyy.zzz.37/25,root=@xx.yyy.zzz.37/25 -d 'Sxxxxxx DB Backups' /dbbackup
/usr/sbin/share -F nfs -o rw=@xx.yyy.zzz.37/25,root=@xx.yyy.zzz.37/25 -d 'Sxxxxxx Event Logs' /space/event
/usr/sbin/share -F nfs -o rw -d "" /space/sxxxxxx


And from the non-working server:
Code:
hostname:> cat /etc/dfs/dfstab
# THIS LINE DEFINES THE COMMENT CHARACTER FOR THIS FILE BUT WILL NOT BE INCLUDED
/usr/sbin/share -F nfs -o rw=@xx.yyy.zzz.35/25,root=@xx.yyy.zzz.35/25 -d 'Sxxxxxx Billing' /billing
/usr/sbin/share -F nfs -o rw=@xx.yyy.zzz.35/25,root=@xx.yyy.zzz.35/25 -d 'Sxxxxxx TMM' /stats
/usr/sbin/share -F nfs -o rw=@xx.yyy.zzz.35/25,root=@xx.yyy.zzz.35/25 -d 'Sxxxxxx DB Backups' /dbbackup
/usr/sbin/share -F nfs -o rw=@xx.yyy.zzz.35/25,root=@xx.yyy.zzz.35/25 -d 'Sxxxxxx Event Logs' /space/event
/usr/sbin/share -F nfs -o rw -d "" /space/sxxxxxx
/usr/sbin/share -F nfs -o rw -d "" /space/sxxxxxx
/usr/sbin/share -F nfs -o rw -d "" /space/sxxxxxx
/usr/sbin/share -F nfs -o rw -d "" /space/sxxxxxx
/usr/sbin/share -F nfs -o rw -d "" /space/sxxxxxx
/usr/sbin/share -F nfs -o rw -d "" /space/sxxxxxx
/usr/sbin/share -F nfs -o rw -d "" /space/sxxxxxx
/usr/sbin/share -F nfs -o rw -d "" /space/sxxxxxx
/usr/sbin/share -F nfs -o rw -d "" /space/sxxxxxx
/usr/sbin/share -F nfs -o rw -d "" /space/sxxxxxx

While I don't think it has anything to do with the problem, I'm thinking those last 9 duplicated lines can be deleted.

Even though the nfs server never stays online, the mounts to this server are created.
# 6  
Old 08-14-2008
Thanks for your time, guys. After talking to one of the admin guys over a 2 day period, he finally tells me there's a daemon running that kills nfs whenever it finds it running (unless one of two other processes had started it and were still active). Some security audit. And there are only two approved processes for enabling nfs.
# 7  
Old 11-26-2008
same problem of enabling nfs services

I have followed this thread and i have exactly the same problem. all my outputs resemble yours.

what deamon was killing your nfs services?
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. AIX

AIX NFS Server and NFS Client

Hi 2 ALL, try to run NFS Server in AIX 7.1 : 1. Step by step on NFS Server node mkdir /tmp/test chgrp staff /tmp/test chmod 775 /tmp/test-- create export directory (fs) mknfsexp -d /tmp/test -t ro exportfs -va show mount -e :/# exportfs -av exports: 1831-187 re-exported /tmp/test... (4 Replies)
Discussion started by: penchev
4 Replies

2. UNIX for Dummies Questions & Answers

enable all operations to use a proxy server , redhat server

Hi, i would like to enable all operations/connections to use a proxy server in a redhat server , witch file should i config to get this for all conections .... Thanks (0 Replies)
Discussion started by: prpkrk
0 Replies

3. AIX

Enable large filesize option in NFS mount in AIX 4.3

Hi All, I have a NFS mount filesystem, however it is not supporting a creation of filesize greater than 2 GB in it, how can i enable the option (bf = true) in it. The AIX version is 4.3.2 Thanks in Advance!! (1 Reply)
Discussion started by: mad_man12
1 Replies

4. SCO

enable ssh server on SCO 5.0.6

hi How to enable ssh server on SCO unix 5.0.6 and allow remote root login? (2 Replies)
Discussion started by: ccc
2 Replies

5. Ubuntu

[UBUNTU] mount.nfs fails in Ubuntu / Works on Red Hat!!!

Gurus, I want log in locally to my Lucid (10.04) workstation and have my code saved over the network on my samba account At work, all developers have samba user ids and when we were running Red Hat, we went thru the following procedure to get setup. * open a shell session to NFS server... (2 Replies)
Discussion started by: alan
2 Replies

6. Solaris

Solaris 9 as a nfs client -- centos as a nfs server.

Hello, I have a centos as nfs server, its name is centos_A. After I finish the setup of the nfs server, the other linux can access this nfs server immediately via /net/centos_A/* But, My solaris 9 can not access /net/centos_A/* immediately. I have to leave /net/centos_A, and wait for about... (1 Reply)
Discussion started by: bruceharbin
1 Replies

7. Solaris

NFS write failed for server.....error 11 (RPC: Server can't decode arguments)

Hello! I have a Linux nfs server (called server100 below) with a export nfs. My problem is that the Solaris client (called client100 below) doesn't seems to like it. In the Solaris syslog I got following messages (and after a while the solaris client behave liked its hanged/to buzy). Also see... (3 Replies)
Discussion started by: sap4ever
3 Replies

8. Solaris

Solaris 8 - FTP server -enable

Hi, I have turn off the FTP service and rebooted the server . (edit /etc/inetd.conf and /etc/inet/services) Now , how can I enable back the FTP without rebooting the server . Thanks (1 Reply)
Discussion started by: civic2005
1 Replies
Login or Register to Ask a Question