Visit Our UNIX and Linux User Community

Samba service in maintenance mode ???

Thread Tools Search this Thread
Operating Systems Solaris Samba service in maintenance mode ???
# 1  
Old 03-31-2010
Samba service in maintenance mode ???

I have a Solaris 10 SunFire v880 machine and I'm having trouble with Samba.

Samba has worked on this machine but since the machine has been re-booted Samba has not worked.

Machine details are:

cat /etc/release
Solaris 10 10/08 s10s_u6wos_07b SPARC
Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.
Use is subject to license terms.
Assembled 27 October 2008

The Samba version is:

smbd -V

Version 3.0.37

If I disable Samba Wins and Swat then check the 'svcs' I get

svcs samba wins

STATE          STIME    FMRI
disabled       11:51:08 svc:/network/samba:default
disabled       11:51:08 svc:/network/wins:default

svcs swat

STATE          STIME    FMRI
disabled       11:51:22 svc:/network/swat:default

When I execute the start command and check the process I see its running

svcadm enable samba wins
svcadm enable swat

ps -ef | grep smbd

root 15898  2920   0 11:54:21 pts/3       0:00 grep smbd
root 15890     7   0 11:54:16 ?           0:00 /usr/sfw/sbin/smbd -D

The network-samba:default.log file shows the following:

[ Mar 31 11:54:15 Enabled. ]
[ Mar 31 11:54:15 Executing start method ("/usr/sfw/sbin/smbd -D") ]

But the svcs command shows the Samba STATE as offline

svcs samba wins

STATE          STIME    FMRI
online         11:54:15 svc:/network/wins:default
offline*       11:54:15 svc:/network/samba:default

The Swat STATE is showing as online

svcs swat

STATE          STIME    FMRI
online         11:58:14 svc:/network/swat:default

Then after a few minutes the Samba services goes into maintenance STATE

svcs samba wins

STATE          STIME    FMRI
online         11:54:15 svc:/network/wins:default
maintenance    11:57:05 svc:/network/samba:default

The network-samba:default.log file shows this entry

[ Mar 31 11:57:05 Method or service exit timed out.  Killing contract 178 ]

Does anyone have any idea what the problem is?
# 2  
Old 04-01-2010
Fixed !!

On the off chance that this might help someone else I finally got to the cause of the problem.

The samba process was timing out at startup due to a problem with the printers.

When I started the samba service and used the process ID in a ptree command the spawned process was waiting for lpstat -v to finish executing. The lpstat was hanging causing the samba startup process to timeout and shut itself down.

When I commented out the entries in the printers.conf file the samba process started and stayed up.
# 3  
Old 04-02-2010
Running "svcs -xv" shows more details on why starting a service failed (and transitioned to maintenance mode).

Previous Thread | Next Thread
Test Your Knowledge in Computers #1009
Difficulty: Easy
The number 128 in base 10 equals 64 in base 16.
True or False?

10 More Discussions You Might Find Interesting

1. Solaris

Maintenance mode

i booted into maintenance mode boot -- -s from the console I got the Root password for system maintenance (control-d to bypass) I did control -d and then logged in it told me that I was booting into boot -s but after I did a control -d and logged in who -r shows ... (9 Replies)
Discussion started by: goya
9 Replies

2. AIX

How to put VIOS in Maintenance mode?

Hi this may be a easy question to answer but thanks in advance. So I was able to download the VIOS media from IBM and currently I am burning it to a cd/dvd right now. The steps I've collected so far are from the net. can you please confirm and add on to the steps if there are any steps... (0 Replies)
Discussion started by: Adnans2k
0 Replies

3. Solaris

SunOS sun4v sparc ntp service in maintenance mode.

Hi experts, This is a production server. Host information's are below SunOS hostname_srv 5.10 Generic_150400-09 sun4v sparc sun4v Now issue with ntp service, This host have zone in it with 9 hosts, Every hosts have ntp service issue. While i check for the service status it's in... (3 Replies)
Discussion started by: babinlonston
3 Replies

4. Solaris

RPC bind service in maintenance mode

Hi, I have an issue with RPC bind service and its failing with status 1. any help would be much appreciated. THanks (2 Replies)
Discussion started by: Yakub Humami
2 Replies

5. Solaris

DNS service is in maintenance mode. How to bring it back to online mode?

:confused: when i tried to look the status of DNS-client, it is in maintenance mode..... Please tell me how to bring it back to online mode...PLEASE TELL ME STEP BY STEP.... PLEASE... :wall: (2 Replies)
Discussion started by: vamshigvk475
2 Replies

6. Solaris

System booting to maintenance mode

Hi Guys, I have a sunblade 1500. I booted the system and it booted to maintenance mode. How can I fix this? Thanks lots (8 Replies)
Discussion started by: cjashu
8 Replies

7. Solaris

Helpme !! ssh service in maintenance mode

Hi Guys, Virtual Machine - Solaris 10 ssh service is in maintenance mode, when i tried to disable it it got disabled but when i enabling it ( svcadm enable ssh) it is coming in maintenance mode...... Pls help (10 Replies)
Discussion started by: saurabh84g
10 Replies

8. Solaris

Process in maintenance mode, why?

Hi, I have installed Hudson on a Solaris 11 server, using the installation instructions available at Paul Oswald: Hudson Solaris SMF Manifest. When I perform svcs -l hudson, I get: fmri svc:/application/hudson:default name Hudson Continuous Build Server enabled true... (4 Replies)
Discussion started by: JVerstry
4 Replies

9. Solaris

FTP is in maintenance mode always

Hello All, On solaris 10 server i could see the FTP service is in maintenance mode always :mad: Could some assist? svcs -xv svc:/network/nfs/nlockmgr:default (NFS lock manager) State: maintenance since Tue 28 Jul 2009 11:47:55 AM BST Reason: Restarting too quickly. See: Sun... (5 Replies)
Discussion started by: bullz26
5 Replies

10. Solaris

Machine is booting to maintenance mode.

I had a power failure the other day and when my relatively new Solaris 10 machine rebooted it is thrown into maintenance mode. I've found the following lines in the /var/adm/messages file, I'm assuming this is the root cause of the problem. However, I don't have the slightest idea on how to... (9 Replies)
Discussion started by: cheetobandito
9 Replies

Featured Tech Videos