Custom Search

April 14, 2010

Updating replaced tape drive in NBU

 How to update Netbackup for a replaced tape drive without deleting and re-adding the drive

Details:
Manual: Veritas Netbackup (tmp) 6.0 Commands for UNIX, Pages: 420-423
Modification Type: Supplement

Modification:
When a tape drive is replaced, the Veritas Netbackup (tmp) configuration will need to be updated to reflect the changed drive.

This procedure is needs to be followed:

To swap a shared serialized drive or to update drive firmware on a shared drive
1 Down the drive. In the Device Monitor, select the drive to swap or update. From the Actions menu, select Down Drive.

2 Replace the drive or physically update the firmware for the drive. If you replace the drive, specify the same SCSI ID for the new drive as the old drive.

3 To produce a list of new and missing hardware, run tpautoconf -report_disc on one of the reconfigured servers. This command scans for  new hardware and produce a report that shows the new and the replaced hardware.

4 Ensure that all servers that share the new hardware are up and that all Netbackup services are active.

5 Run tpautoconf with the -replace_drivedrive_name -path path_name options or -replace_robotrobot_number -pathrobot_path options. The tpautoconfcommand reads the serial number from the new hardware device and then updates the EMM database.

6 If the new device is an unserialized drive, run the device configuration wizard on all servers that share the drive. If the new device is a robot, run the device configuration wizard on the server that is the robot control host.

7 Up the drive. In the Device Monitor, select the new drive. From the Actions menu, select Up Drive.

Here is an example but make sure the drive is "down" prior to running the tpautoconf -replace_drive. If it is not the info could actually revert back to the old drive information:

Once the drive is replaced, run the following command to report the discrepancy:

/usr/openv/volmgr/bin/tpautoconf -report_disc

This produces information similar to the following:

======================= New Device (Tape) ============
Inquiry = "QUANTUM DLT7000         245F"
Serial Number = PXA51S3232
Drive Path = /dev/rmt/21cbn
Found as TLD(0), Drive = 1
===================== Missing Device (Drive) =========
Drive Name = QUANTUMDLT70001
Drive Path = /dev/rmt/11cbn
Inquiry = "QUANTUM DLT7000         245F"
Serial Number = PXA51S3587
TLD(0) definition, Drive = 1
Hosts configured for this device:
Host = HOSTA
Host = HOSTB

This reports the discrepancy between the device database and the new device found. Take note of the new Drive Path for the device as this will be needed for the tpautoconf command.  To resolve this, run:

# cd /usr/openv/volmgr/bin
#./tpautoconf -replace_drive QUANTUMDLT70001 -path /dev/rmt/21cbn

Found a matching device in global DB, QUANTUMDLT70001 on host HOSTA
update of local DB on host HOSTA completed
globalDB update for host HOSTA completed

Found a matching device in global DB, QUANTUMDLT70001 on host HOSTB
update of local DB on host HOSTB completed
globalDB update for host HOSTB completed

This will update the global and local database to reflect the new device being replaced.

Up the drive at this point.

1 comment:

  1. I replaced the drive, but it does not show new drive. cfgadm luxadm can query new drive and shows new drive. scan -tape does not, and neither does the tpautocnf finds new drive.

    # tpautoconf -report_disc
    ======================= Missing Device (Drive) =======================
    Drive Name = lib1-top
    Drive Path = MISSING_PATH:/dev/rmt/0cbn:HU10748CWY
    Inquiry = "HP Ultrium 3-SCSI M63S"
    Serial Number = HU10748CWY
    TLD(1) definition Drive = 1
    Hosts configured for this device:
    Host = xxxxxxxx


    # luxadm display /dev/rmt/0
    DEVICE PROPERTIES for tape: /dev/rmt/0
    Vendor: HP
    Product ID: Ultrium 3-SCSI
    Revision: M6BS
    Serial Num: MXP1014LG5
    Device Type: Tape device
    Path(s):

    /dev/rmt/0n
    /devices/pci@780/pci@0/pci@8/SUNW,qlc@0/fp@0,0/st@w500104f0009bd896,0:n
    LUN path port WWN: 500104f0009bd896
    Host controller port WWN: 2100001b3213f2fd
    Path status: Not Ready

    (path status is 'not ready' for other drives too which are working fine.)

    # cfgadm -al|grep 00104f0009bd896
    c2::500104f0009bd896 tape connected configured unknown

    now hoe to remove the bad/old drive from emm db and put in the new drive info??

    ReplyDelete