Forum Discussion

Sid1987's avatar
Sid1987
Level 6
8 years ago
Solved

Empty media slot in netbackup

Hi Everyone,

 I am using below command to calculate empty slots in library. However I know this would count those slots as well which has media inside tape drives,

sudo /usr/openv/volmgr/bin/vmcheckxxx -rt tld -list -rn 0 | grep -c No

Is there any better way to find it out from netbackup, please don't suggest to find it from library, I know that would be most reliable.

  • Mouse's avatar
    Mouse
    8 years ago

    Marianne

    Apparently vmquery -bx does not request an update from the robot and still shows everything in original slots, although media has been already moved.

    vmcheckxxx -rt tld -rn 0 scans the contents of the robot and indeed shows the tape in its original slot.

    I would say this experiment highlights that robtest and vm* commands provide different output, where the output from robtest is real physical state of medium whereas NBU utilities show logical state. 

    For the purposes of OP I'd stick to vmcheckxxx and disregard my suggestion to substract the number of busy tape drives if this command is used. However if robtest is used to calculate the number of free slots - the number of busy drives has to be substracted from the total amount of free slots

10 Replies

Replies have been turned off for this discussion
  • vmcheckxxx is the reliable way - it runs inventory and gives a formatted output.

    other option would be to run robtest on a media server that has physical access to the library and find out from its output http://www.veritas.com/docs/100016263

    I don't see why I would prefer the latter to the former as they essentially do the same thing.

    Even if NBU has/had a table in EMM with used/unused slots I'd not trust it for anything serious - it's better to run a robot inventory and get results from it

    • Sid1987's avatar
      Sid1987
      Level 6

      In addition to the vmcheckxxx command for counting "No", I will have to subract no of drives having tapes in them as those empty slots are temporarily empty. Do you all concur?

      • Mouse's avatar
        Mouse
        Moderator

        well, if you count free slots when some drives are busy then definitely yes, you need to substract the number of busy drives from the total number of free slots

  • I use vmchange:

    vmchange -res -robot_info -verbose -rn 0 -rt tld -rh `hostname`|grep "Number of Slots"
    Number of Slots = 324 (57 empty)