Veritas-bu

Re: [Veritas-bu] Identify drives in use

2007-06-06 14:59:45
Subject: Re: [Veritas-bu] Identify drives in use
From: Justin Piszcz <jpiszcz AT lucidpixels DOT com>
To: Dave Markham <dave.markham AT fjserv DOT net>
Date: Tue, 5 Jun 2007 09:18:06 -0400 (EDT)

On Tue, 5 Jun 2007, Dave Markham wrote:

> Justin Piszcz wrote:
>>
>>
>> On Tue, 5 Jun 2007, Dave Markham wrote:
>>
>>> Netbackup 5.0MP7 Solaris9
>>>
>>> Anyone know how to identify from command line what drives are in use, or
>>> what tapes are in use while a job is running.
>>>
>>> We have an issue where ops keep opening the jukebox and changing tapes
>>> while jobs are running. The job is fine as the L700 library just
>>> suspends writes but the problem is they fill slots up which are
>>> destination slots of tapes in use. Once the tapes have finished and a
>>> new tape is required to continue the job the old tape cannot be put back
>>> into its slot as it has some tape in it.
>>>
>>> I therefore sometimes need to manually move the tapes to another slot
>>> using robtest. Issue is a lot of the time the backup job is still
>>> running and i dont want to unload the tapes in use so i need to identify
>>> them.
>>>
>>> I have been using iostat -xnd 2 10 |grep rmt and seeing which are
>>> written to and then double checking with the gui the tape ids, but i'd
>>> like a nice netbackup command to just say tapes being written to at that
>>> moment in time.
>>>
>>> Cheers
>>> _______________________________________________
>>> Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
>>> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
>>>
>>
>> How to see what drives are in use? vmoprcmd -d ds
>>
> Thanks.
>
> Problem with this command is it shows tapes in all the drives due to the
> problem i mentioned in my mail. Tapes are in drives due to not being
> able to move back to destination slots. I need to confirm the drives
> which are in use for the current job(s) running. Normally its just one
> job running see and as im using ITC 2 drives will be in use. I need to
> determine these so i can then safely move tapes out of the other drives.
>
> Cheers
>

>> I therefore sometimes need to manually move the tapes to another slot
>> using robtest. Issue is a lot of the time the backup job is still
>> running and i dont want to unload the tapes in use so i need to 
identify them.

Read more closely, that is your problem!  If you do not re-inventory in 
NetBackup -AND/OR- you put the tape in a slot that was already kept vacant 
for a tape that's in the drive, you're going to have problems.

Justin.
_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu