How to run through the service reset procedure

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
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值