Highlighted
sekaraj
2 Bronze

nsrmmd associations

Jump to solution

Hi,

we have four tape drives cpnnect to the backup server and OS path are /dev/rmt/112stcbn,/dev/rmt/113stcbn and /dev/rmt/42stcbn. All the devices are working fine.How do we know which device  is using which nsrmmd?. Is there way we could  map the nsrmmd process through to its /dev/rmt 

ps -ef | grep nsrmmd

/usr/sbin/nsrmmd -n 57

/usr/sbin/nsrmmd -n 55

/usr/sbin/nsrmmd -n 10

Any suggestion?

Tags (1)
Reply
1 Solution

Accepted Solutions
Highlighted
coganb
3 Cadmium

Re: nsrmmd associations

Jump to solution

Hi,

Run the 'fuser' command against the device path and this will give you the process id of the nsrmmd process that is handling that device.

-Bobby

View solution in original post

Reply
6 Replies
Highlighted
coganb
3 Cadmium

Re: nsrmmd associations

Jump to solution

Hi,

Run the 'fuser' command against the device path and this will give you the process id of the nsrmmd process that is handling that device.

-Bobby

View solution in original post

Reply
Highlighted
sekaraj
2 Bronze

Re: nsrmmd associations

Jump to solution

.

Thanks Bobby.It is very useful. However it is giving the information about the pid when the drive is writing the data and not for the idle ones.Is there a way we can pid for the idle one's also.

bash-3.00$ /usr/sbin/fuser /dev/rmt/0stcbn

/dev/rmt/0stcbn:    25396o

bash-3.00$ /usr/sbin/fuser /dev/rmt/14stcbn

/dev/rmt/14stcbn:

ps -ef | grep nsrmmd /usr/sbin/nsrmmd -n 57 /usr/sbin/nsrmmd -n 55 /usr/sbin/nsrmmd -n 10

Reply
Highlighted
coganb
3 Cadmium

Re: nsrmmd associations

Jump to solution

I'm not sure - why would you want to do that?

-Bobby

Reply
Highlighted

Re: nsrmmd associations

Jump to solution

Whne the device is not in use, none of the nsrmmd is associated with any device. The association happens only when the drive is in use. This is the reason you will not get a pid for the idle devices.

Reply
Highlighted
ble1
6 Indium

Re: nsrmmd associations

Jump to solution

mridul.singh wrote:

Whne the device is not in use, none of the nsrmmd is associated with any device. The association happens only when the drive is in use.

That's not correct - at least not for all versions up to NW8.  I know NW8 had changes in respect to nsrmmd and how it is inwoked, but not many have gone boldly where no men has gone before... Were you referring to NW8 perhaps? 

Reply
Highlighted
sekaraj
2 Bronze

Re: nsrmmd associations

Jump to solution

Nope.It is Networker 7.6.2.Sometimes we have issues with the particular drives.From the NMC we know which tape drive is causing but we don't know which nsrmmd is associated to that drive,if we know that, we can kill that particular nsrmmd rather bouncing the services and bring it online.(backup server or on the storage node).It looks be fine when the drive is wirting the data,fuser works fine and not the other devices which is idle.

Anyways it is not best pratice to kill the nsrmmd with knowing the root cause but still wanted to check is there a way we can get the associations?

Once again thanks to Bobby,Crvelin and Mridul for your help.

Reply