Forum Discussion

Home_224's avatar
Home_224
Level 6
6 years ago

Invalid drive index when delete the tape drive

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

  • In the output you show,  I see the heading - but no config ...

    Your output:

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

    Example output from myserver

    root@gpk630r2f-18 mph $ tpconfig -l
    Device Robot Drive Robot Drive Device Second
    Type Num Index Type DrNum Status Comment Name Path Device Path
    robot 0 - TLD - - - - /dev/sg7
    drive - 0 hcart3 1 UP - IBM.ULTRIUM-HH6.000 /dev/tape/by-path/pci-0000:04:00
    drive - 1 hcart3 2 UP - IBM.ULTRIUM-HH6.001 /dev/tape/by-path/pci-0000:04:00

    So, unless you accidently missed copy/ paste the config, I do not see any drives configured.

    Presuming you didn;t copy/ paste all the details, and you have some issue with eth drive index and cannot delete a drive, the only way to resolve this is to delete everything, and reconfigure.

    You can specify a media server, or just delete all devices from all servers

    nbemmcmd -deletealldevices -allrecords  (everything)

    or

    nbemmcmd -deletealldevices -machinename <media server name> -machinetype media  (specific server)

    ... then , reconfigure.

    The scan output is useless here, it has no relation to index values of the drives.

  • Home_224 

    tpconfig shows NetBackup configuration. 
    Your output shows nothing. In other words, nothing is configured in NBU.

    scan shows what the OS sees. 
    When scan shows devices correctly (robot and tape drives), you can run Device Config wizard to add the devices to NBU config. 

    But.... before you do that - all is not well with scan output:

    NetBackup Drive Type: Not Found(5)

    You need to download and install NBU Device Mappings that supports this drive type.
    Links to Device Mappings download in NBU HCL. 

    • Home_224's avatar
      Home_224
      Level 6

      Thank you for all of your.

      I try to use the commnd delete command but not work on my old version of NBU, so I try to do that and no idea how to find the string. 

      My current version is 6.0 MP4 

      Usage:
      nbemmcmd -deletemedia -mediaid <string> -originhost <string>
      Command did not complete successfully.
      root@devuarbak01 # nbemmcmd -deletemedia devuarbak01
      NBEMMCMD, Version:6.0MP4(20060530)
      There is no value associated with the command option
      Usage:
      nbemmcmd -deletemedia -mediaid <string> -originhost <string>

       

      • Marianne's avatar
        Marianne
        Level 6

        Home_224 

        Did you read through our previous posts?

        Why are you trying to run a command to delete media (tapes)? 
        nbemmcmd -deletemedia

        I think you won't be able to use 'nbemmcmd -deletealldevices' as this option was added in a newer NBU version. 

        But, once again - your tpconfig command shows that you DON'T have any devices configured in NBU.
        Please read my previous post again?