Re: [Veritas-bu] Identify drives in use

2007-06-19 Thread Justin Piszcz


On Tue, 19 Jun 2007, Marianu, Jonathan wrote:

 Here is a possible answer to your problem.
 I have a script that combines these commands into a more condense
 version but here I broke it into several logical commands to make it
 easier to understand.


 This command provides a list of the TLD robots defined on the control
 host
 tpconfig -d | sed s/,// | awk '/robotic path/{print $5}'

 Once you have the path to the L700 run this command
 echo s d | tldtest -r /dev/PATH_TO_L700  /tmp/foo

 Redirect that output to a file and filter out the non relevant
 information then redirect that to a file.
 cat /tmp/foo | egrep ^drive|^Source address|^Barcode | sed s/\)//g 
 /tmp/foo2

 Run the following awk command against the output and it will list all
 drives in use, the MEDIAID and the original SLOT# so that ops will know
 not to put a tape in that slot.
 awk '/yes/{DRIVE=$2; getline; SLOT=$6; getline; MEDIAID=$3; print DRIVE,
 MEDIAID, SLOT}' /tmp/foo2


 Please let me know if this was helpful.



 __
 Jonathan Marianu (mah ree ah' nu)
 Storage Planning and Design Architect
 ATT/Cingular
 (360) 597-6896

 Manager: David Anderson
 (314) 340-9296




 ___
 Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
 http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


You should use tpconfig -dl because from NetBackup 5.x - 6.x the 
formatting will change.

Justin.
___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


Re: [Veritas-bu] Identify drives in use

2007-06-05 Thread Justin Piszcz


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@mailman.eng.auburn.edu
 http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


How to see what drives are in use? vmoprcmd -d ds
___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


Re: [Veritas-bu] Identify drives in use

2007-06-05 Thread Dave Markham
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@mailman.eng.auburn.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
___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


Re: [Veritas-bu] Identify drives in use

2007-06-05 Thread Weber, Philip
If NetBackup can't move a tape back from the drive to its slot, it will
down the drive (at least in our environment -  as the OS is Solaris
will log a message to /var/adm/messages).

We used to have a small robot where the OPs manually changed tapes by
opening the robot up  moving tapes.  As part of the script that told
them what to do I used tldtest to check which slots the tapes in the
drives came from, and make sure those slots were kept free.

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Dave Markham
 Sent: 05 June 2007 11:16
 To: Justin Piszcz
 Cc: veritas-bu@mailman.eng.auburn.edu
 Subject: Re: [Veritas-bu] Identify drives in use
 
 
 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@mailman.eng.auburn.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
 ___
 Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
 http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
 

-
Egg is a trading name of the Egg group of companies which includes:
Egg plc (reg no 2448340), Egg Financial Intermediation Ltd (reg no
3828289), and Egg Banking plc (reg no 2999842). Egg Banking plc and
Egg Financial Intermediation Ltd are authorised and regulated by
the Financial Services Authority (FSA) and are entered in the FSA
register under numbers 205621 and 309551 respectively. These
members of the Egg group are registered in England and Wales.
Registered office: Citigroup Centre, Canada Square, London E14 5LB.

This e-mail is confidential and for use by the addressee only. If
you are not the intended recipient of this e-mail and have received
it in error, please return the message to the sender by replying to
it and then delete it from your mailbox. Internet e-mails are not
necessarily secure. The Egg group of companies do not accept
responsibility for changes made to this message after it was sent.


Whilst all reasonable care has been taken to avoid the transmission
of viruses, it is the responsibility of the recipient to ensure
that the onward transmission, opening or use of this message and
any attachments will not adversely affect its systems or data. No
responsibility is accepted by the Egg group of companies in this
regard and the recipient should carry out such virus and other
checks as it considers appropriate.

This communication does not create or modify any contract.


___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


Re: [Veritas-bu] Identify drives in use

2007-06-05 Thread Paul Keating
This may not be the answer you're looking for, but why not lock the
door, and have ops use the CAP?
The L700 has a 20 cart CAP, and I believe you can add an optional
additional 20 cart CAP.
40 carts at a time ain't to bad.

Paul

-- 


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Dave Markham
 Sent: June 5, 2007 5:25 AM
 To: veritas-bu@mailman.eng.auburn.edu
 Subject: [Veritas-bu] Identify drives in use
 
 
 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.


La version française suit le texte anglais.



This email may contain privileged and/or confidential information, and the Bank 
of
Canada does not waive any related rights. Any distribution, use, or copying of 
this
email or the information it contains by other than the intended recipient is
unauthorized. If you received this email in error please delete it immediately 
from
your system and notify the sender promptly by email that you have done so. 



Le présent courriel peut contenir de l'information privilégiée ou 
confidentielle.
La Banque du Canada ne renonce pas aux droits qui s'y rapportent. Toute 
diffusion,
utilisation ou copie de ce courriel ou des renseignements qu'il contient par une
personne autre que le ou les destinataires désignés est interdite. Si vous 
recevez
ce courriel par erreur, veuillez le supprimer immédiatement et envoyer sans 
délai à
l'expéditeur un message électronique pour l'aviser que vous avez éliminé de 
votre
ordinateur toute copie du courriel reçu.

___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


Re: [Veritas-bu] Identify drives in use

2007-06-05 Thread Justin Piszcz


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@mailman.eng.auburn.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@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


Re: [Veritas-bu] Identify drives in use

2007-06-05 Thread Kevin Whittaker
I have to agree, the issue is that they are opening the robot.  There is
a reason that the CAP was created.  Just insert the tapes into to the
CAP and run an inventory of the robot with the option to empty the cap
marked.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Justin
Piszcz
Sent: Tuesday, June 05, 2007 9:18 AM
To: Dave Markham
Cc: veritas-bu@mailman.eng.auburn.edu
Subject: Re: [Veritas-bu] Identify drives in use



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@mailman.eng.auburn.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@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


Re: [Veritas-bu] Identify drives in use

2007-06-05 Thread Marianu, Jonathan
 

Two ways to obtain a list of all tape drives logically in use by media
servers across a netbackup environment:
1 vmdareq (not always accurate)
2. bpstulist (to obtain a list of media servers)
   vmoprcmd -h $MEDIA_SERVER_NAME -xdraw 
   The output provides a list of all drives in use.

To obtain a list of what drives are physically loaded use a tool that
queries the library directly.
If the robot is a TLD use tldtest as shown below:
echo s d | tldtest -r $ROBOT_DEVICE_NAME You can obtain the robotic
device name by typing robtest and choosing the robot.
Be sure to exit out of robtest because the tldd process can not control
the arm while you are in and you will end up with Status 52 mount
failures.


__
Jonathan Marianu (mah ree ah' nu)
National Enterprise Backup Restore
ATT/Cingular
(360) 597-6896

___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


Re: [Veritas-bu] Identify drives in use

2007-06-05 Thread Dominik Pietrzykowski

Jonathan,

I like the :

vmoprcmd -h $MEDIA_SERVER_NAME -xdraw

But on NB6 this command is better for listing media servers:

nbemmcmd -listhost

Cheers,

Dom


-Original Message-
From: Marianu, Jonathan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 6 June 2007 5:00 AM
To: veritas-bu@mailman.eng.auburn.edu
Subject: Re: [Veritas-bu] Identify drives in use

 

Two ways to obtain a list of all tape drives logically in use by media
servers across a netbackup environment:
1 vmdareq (not always accurate)
2. bpstulist (to obtain a list of media servers)
   vmoprcmd -h $MEDIA_SERVER_NAME -xdraw 
   The output provides a list of all drives in use.

To obtain a list of what drives are physically loaded use a tool that
queries the library directly.
If the robot is a TLD use tldtest as shown below:
echo s d | tldtest -r $ROBOT_DEVICE_NAME You can obtain the robotic
device name by typing robtest and choosing the robot.
Be sure to exit out of robtest because the tldd process can not control
the arm while you are in and you will end up with Status 52 mount
failures.


__
Jonathan Marianu (mah ree ah' nu)
National Enterprise Backup Restore
ATT/Cingular
(360) 597-6896

___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu