How to investigate transition service issues offline* in Solaris 10 ?

Today I got one issue in which customer was not able to login into one of Solaris non-global zone.

I logged in into non-global zone. I checked and found that ssh service is not running in non-global zone.

-bash-3.2# svcs ssh
STATE STIME FMRI
offline Oct_07 svc:/network/ssh:default

I thought its cakewalk I tried to start the service.

-bash-3.2# svcadm enable ssh

But still it was in disabled state.

-bash-3.2# svcs ssh
STATE STIME FMRI
offline Oct_07 svc:/network/ssh:default

I checked the status of dependent services. Found that one service is in offline state. I tried to bring up that one but it was not coming up.

-bash-3.2# svcs -d /network/ssh
STATE STIME FMRI
disabled Oct_07 svc:/system/filesystem/autofs:default
online Oct_07 svc:/network/loopback:default
online Oct_07 svc:/network/physical:default
online Oct_07 svc:/system/cryptosvc:default
online Oct_07 svc:/system/filesystem/local:default
offline Oct_07 svc:/system/utmp:default

I checked the dependency of utmp service and found that its dependency is also offline that was also not coming up.

-bash-3.2# svcs -d /system/utmp
STATE STIME FMRI
offline Oct_07 svc:/milestone/sysconfig:default
I checked the dependency of sysconfig service and finally found one cluprit service is in transition state that is the problematic one.

-bash-3.2# svcs -d /milestone/sysconfig
STATE STIME FMRI
online Oct_07 svc:/milestone/single-user:default
offline Oct_07 svc:/system/sysidtool:system
offline* Oct_07 svc:/system/sysidtool:net

You can’t bring the offline* state into online state.

I checked the processes which are using that service.

-bash-3.2# svcs -p /system/sysidtool:net
STATE STIME FMRI
offline* Oct_07 svc:/system/sysidtool:net
Oct_07 3421 sysidtool-net
Oct_07 3454 sysidnet
Oct_07 3648 sysidnet

After that I took the console of non-global zone. It was showing me wizard I answered that.

[root@Node1 /]# zlogin -C non-globalzone1
[Connected to zone ‘non-globalzone1’ console]
You did not enter a selection.
What type of terminal are you using?
1) ANSI Standard CRT
2) DEC VT52
3) DEC VT100
4) Heathkit 19
5) Lear Siegler ADM31
6) PC Console
7) Sun Command Tool
8) Sun Workstation
9) Televideo 910
10) Televideo 925
11) Wyse Model 50
12) X Terminal Emulator (xterms)
13) CDE Terminal Emulator (dtterm)
14) Other
Type the number of your choice and press Return: 13
I came out of non-global zone using ~.
non-globalzone1 console login: ~.
[Connection to zone ‘non-globalzone1’ console closed]

I checked the status of service by logging into non-global zone and found that its in online state. If that is in online state services on which it depend should also be in healthy state 🙂

-bash-3.2# svcs ssh
STATE STIME FMRI
online 23:38:17 svc:/network/ssh:default

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s