How to run through the service reset procedure

来源:互联网 发布:ubuntu snmp 编辑:程序博客网 时间:2024/05/22 09:43
run through the service reset procedure.
This only affects user interfaces and will not interrupt your shares:

please run the following from bash:
# svcs nm{s,v,cd}  nbs nmdtrace dbus rmvolmgr rrdaemon

If any are offline then run the following for any service that is offline
If there are no services offline, then please proceed to the next step

# svcadm clear (replace service name for each of the above)
# svcadm clear rmvolmgr

#svcs -v

#svcadm clear nms

Then run

# svcadm -v enable -rs nms

If this fails we may want to systematically stop all the following services and ensure none are running and then start them all again as follows:

svcadm -v disable nms
svcadm -v disable nmv
svcadm -v disable nmcd
svcadm -v disable nbs
svcadm -v disable nmdtrace
svcadm -v disable dbus
svcadm -v disable rmvolmgr
svcadm -v disable rrdaemon

.. wait a few minutes and run 'svcs nm{s,v} nmcd nbs nmdtrace dbus rmvolmgr rrdaemon' to ensure they are offline.

Then run the following:

svcadm -v enable rrdaemon
svcadm -v enable dbus
svcadm -v enable rmvolmgr
svcadm -v enable nbs
svcadm -v enable nmdtrace
svcadm -v enable nms
svcadm -v enable nmv

svcadm -v enable nmcd



————————————————————————————————————————————————————————

Append below steps to restart which includes a section on what happens if it does not start..


1. svcs -p nms

You may end up with a few processes under NMS.

If so..

2. replace the <PID> by the Process ID here:

# echo "0t<PID>::pid2proc | ::walk thread | ::findstack -v" | mdb -k

3. This will be useful too:

# echo "::stacks -c biowait" | mdb -k


How to restart NM Management Layer
==================================

Use this "script" command to record the output:

#script /tmp/reset.out

If NMS service is in maintenance mode only:
=========================================

svcadm clear nms
svcs -v nm{s,v,cd} nbs nmdtrace dbus rmvolmgr


If this does not restart it then:


Restart the NM* services layer (only impacts NM*)
=============================================

#svcs nm{s,v,cd} nbs nmdtrace dbus rmvolmgr
# svcadm disable nm{s,v,cd} nbs nmdtrace dbus rmvolmgr


Check it's status:
================

Issue the following command until you see all outputs below specify "offline"

#svcs nm{s,v,cd} nbs nmdtrace dbus rmvolmgr

When it does restart NM* services

Restart NM* services:
===================

# svcadm enable nm{s,v,cd} nbs nmdtrace dbus rmvolmgr

It may take a few minutes to complete and show "online"


If it does not restart:
====================

If you see in the svcs outputs a starred item not starting:

svcs -p <service that is starred>


From each of the stuck processes pull out the PIDs
Then

# echo "0t<PID>::pid2proc | ::walk thread | ::findstack -v" | mdb -k

Then:

# echo "::stacks -c biowait" | mdb -k

When complete:


#Control-D

Send us that resultant data collection
==================================

1. Send /tmp/reset.out

0 0