Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I've gotten solutions within a day - it saved a lot of time and actually got me one ATTABOY from my boss..."

Geography

Where in the world do Tek-Tips members come from?
babeo (TechnicalUser)
3 May 00 9:56
Please help !!! URGENTLY

could someone tells me what should I do, here is the error message I get:

May  1 09:22:45 2000: Backup Server: 4.4.2.1: Device dev/rmt/0n does not belong to session <52>.  Notification failed.

Because of this error, I redo the backup, and it comes the worse, here is another message:

1> dump database master to tapedump with init
2> go
WARNING: In order to LOAD the master database, the SQL Server must run in single-user mode.  If the master database dump uses multiple volumes, you must execute sp_volchanged on another SQL Server at LOAD time in order to signal volume changes.
Backup Server session id is:  64.  Use this value when executing the 'sp_volchanged' system stored procedure after fulfilling any volume change request from the Backup Server.
Backup Server: 4.55.2.1: Device validation error: couldn't open raw device /dev/rmt/0n, error: Device busy
Msg 8009, Level 16, State 1:
Server 'WRDBQ1', Line 1:
Error encountered by Backup Server.  Please refer to Backup Server messages for details.

thanks
AndyBo (MIS)
4 May 00 5:41
Try running (as root):

/etc/fuser -u /dev/rmt/0n

This should identify the process that is holding the drive open.  It's very possible that it's another Backup Server process that's holding the tape drive open.  ie, when you tun ps and grep for the PID number returned by fuser, the program name begins with "nsr".

If this is the case then you can shutdown the Backup Server and restart it.  Login as root, then:

sh /etc/init.d/networker stop
ps -efa ¦ grep nsr

Manually kill any "nsr" processes that are still hanging around.  Then:

sh /etc/init.d/networker start

It may be that the "nsr" processes will not die.  If this is the case, I'm afraid you'll have to reboot the system :(

Hope this helps.
AndyBo (MIS)
4 May 00 5:43
Oops - forgot to say - if fuser returns a non-"nsr" process (for example, a tar command), just try killing the command.  It's still possible, though, that the process won't die and you'll need to reboot if this is the case.
babeo (TechnicalUser)
4 May 00 11:10
Thank Andy

I think your last message matches with my DBA's decision.  She finally has to reboot all the servers related to that backup server and now everything seems fine.

Thanks anyway, hope that I have a chance to try your solution next time.

(in fact, I kill the ps of backup and when I check the device - mt status - I still get message of 'Device busy' and that is why I consider unload all tapes, power cycle the tape drive, and I still get 'Device busy' ! but according to the message, I already think about reboot the backup server, but I don't have power to do that yet !!! and I never do that before to experience it ! So I end up here :()

CT
AndyBo (MIS)
4 May 00 11:32
Ah, well, there's a few processes that will be running that could still be hanging on to the tape device.

The Backup Server software is Legato Backup Manager licensed to Sun.  We've been using Backup Manager for a couple of years now, and we back up 50 servers (Unix, Novell, and NT) to a single Unix server connected to two DLT drives.  The normal processes we see are:

/bmanager/nsrd          
/bmanager/nsrexecd      
/bmanager/nsrexecd      
/backup/sbin/nsrindexd  
/backup/sbin/nsrmmd -n 2
/backup/sbin/nsrmmdbd   
/backup/sbin/nsrmmd -n 1

(Path names are a little different to the Solaris version.)

So, you might kill off, for example, nsrexecd, but nsrmmd is still there hanging on to the tape drive.

You can restart the Backup Server in two ways.  The way I described above ("sh /etc/init.d/networker stop", kill any left over processes, "sh /etc/init.d/networker start"), or you can just run "sh /etc/init.d/networker restart".

We've found that the "stop, kill, start" sequence works best though, but your mileage may vary :)

Glad to be of help, and hope this helps in the future. :)
babeo (TechnicalUser)
4 May 00 13:46
Thanks alot Andy

I think I will try next time, the only ps I kill at the time is the backup process, I don't know the others.
Thanks for your advice. Definitely I will try next time.
CT

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close