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.
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