cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid drive index when delete the tape drive

Home_224
Level 6

i find the problem when drive to remove the drive , it shows that the invalid drive index when delete the drive. 

root@devuarbak01 # tpconfig -l
Device Robot Drive Robot Drive Device Second
Type Num Index Type DrNum Status Comment Name Path Device Path

But I can see the tape information when run the  scan.  

root@devuarbak01 # scan-tape
scan-tape: not found
root@devuarbak01 # scan
************************************************************
*********************** SDT_TAPE ************************
*********************** SDT_CHANGER ************************
*********************** SDT_OPTICAL ************************
************************************************************
------------------------------------------------------------
Device Name : "/dev/rmt/0cbn"
Passthru Name: "/dev/sg/c0tw2002000e111639dbl0"
Volume Header: ""
Port: -1; Bus: -1; Target: -1; LUN: -1
Inquiry : "IBM ULT3580-HH6 H991"
Vendor ID : "IBM "
Product ID : "ULT3580-HH6 "
Product Rev: "H991"
Serial Number: "10WT130808"
WWN : ""
WWN Id Type : 0
Device Identifier: "IBM ULT3580-HH6 10WT130808"
Device Type : SDT_TAPE
NetBackup Drive Type: Not Found(5)
Removable : Yes
Device Supports: SCSI-6
Flags : 0x0
Reason: 0x0
------------------------------------------------------------
Device Name : "/dev/sg/c0tw2002000e111639dbl1"
Passthru Name: "/dev/sg/c0tw2002000e111639dbl1"
Volume Header: ""
Port: -1; Bus: -1; Target: -1; LUN: -1
Inquiry : "IBM 3573-TL E.60"
Vendor ID : "IBM "
Product ID : "3573-TL "
Product Rev: "E.60"
Serial Number: "00L2U78CF388_LL0"
WWN : ""
WWN Id Type : 0
Device Identifier: "IBM 3573-TL 00L2U78CF388_LL0"
Device Type : SDT_CHANGER
NetBackup Robot Type: 8
Removable : Yes
Device Supports: SCSI-5
Number of Drives : 2
Number of Slots : 24
Number of Media Access Ports: 0
Drive 1 Serial Number : "10WT130808"
Drive 2 Serial Number : "10WT127994"
Flags : 0x0
Reason: 0x0
------------------------------------------------------------
Device Name : "/dev/rmt/1cbn"
Passthru Name: "/dev/sg/c0tw2005000e111639dbl0"
Volume Header: ""
Port: -1; Bus: -1; Target: -1; LUN: -1
Inquiry : "IBM ULT3580-HH6 H991"
Vendor ID : "IBM "
Product ID : "ULT3580-HH6 "
Product Rev: "H991"
Serial Number: "10WT127994"
WWN : ""
WWN Id Type : 0
Device Identifier: "IBM ULT3580-HH6 10WT127994"
Device Type : SDT_TAPE
NetBackup Drive Type: Not Found(5)
Removable : Yes
Device Supports: SCSI-6
Flags : 0x0
Reason: 0x0

I try to run robot inventory, it cannot connect to robotic software daemon

41 REPLIES 41

Marianne
Level 6
Partner    VIP    Accredited Certified

@Home_224 

You are in a hopeless situation because of your old, unsupported version - see Martin's last comment: 

Problem here is that you are looking at manual SQL commands, and this is not really something for a forum, + these usually go via Engineering as it they can be destructve.

This was my suggestion 7 months ago:

1. Try to locate MP7 for version 6.0 (it includes the additional -deletealldevices switch).

2. Use vmglob or  tpconfig command as per the TN and post that I have shared to delete the devices listed as 'MISSING_DRIVE' . 

And a few days later: 

You really need to figure this out for yourself.

Keep the 'tpconfig -emm_dev_list' output open, and try to use more options from that output to delete devices.
For tpconfig, there was an example in a TN that I shared that looked like this:

tpconfig -delete -drpath -asciiname <drive_name>-port  -1 -bus -1 -target -1 -lun -1
Commands manual lists these options for a drive:
UNIX systems: tpconfig -delete -drpath -path drivepath -asciiname asciidrivename

For the vmglob command, you can see that you need device host as well. 

There was a good example in one of the posts that I shared. 

I have no idea what other assistance you expect from us.

Maybe @mph999 knows how to complete delete the devices database with undocumented sql commands.

Another option might be to completely uninstall NBU and start again - just remember to move or copy NBU images database to a 'safe' place after you have saved output of currently 'assigned' tapes along with their expiration dates (e.g. bpmedialist) before you uninstall. 

After you have reinstalled, treat copied images like 'Recovery without import' and put previously 'Assigned tapes' in a new pool that is not used for backups. 
(You can Google 'Recovery without import', especially method for pre-NBU7.5). 

 

mph999
Level 6
Employee Accredited

There is no way to manually delete the drives from the NBDB via a forum.  The risk is too high, and it's effectivly an Engineering only operation, so I'm not going to post the commands on a public forum.

You need to log a call with NBU support.