How To Detect New Drives on HP-UX + Netbackup
1. OS Level dan detect new added drives, what you have to do is run ioscan
cel100:/dev/rmt#ioscan -fnC tape
Class I H/W Path Driver S/W State H/W Type Description
=========================================================================
tape 0 0/0/0/2/1.3.0 stape CLAIMED DEVICE HP C5683A
/dev/rmt/0m /dev/rmt/0mnb /dev/rmt/c1t3d0BESTn /dev/rmt/c1t3d0DDSb
/dev/rmt/0mb /dev/rmt/c1t3d0BEST /dev/rmt/c1t3d0BESTnb /dev/rmt/c1t3d0DDSn
/dev/rmt/0mn /dev/rmt/c1t3d0BESTb /dev/rmt/c1t3d0DDS /dev/rmt/c1t3d0DDSnb
tape 2 0/0/2/0/0.98.4.255.1.3.0 stape CLAIMED DEVICE HP Ultrium 2-SCSI
/dev/rmt/2m /dev/rmt/2mn /dev/rmt/c58t3d0BEST /dev/rmt/c58t3d0BESTn
/dev/rmt/2mb /dev/rmt/2mnb /dev/rmt/c58t3d0BESTb /dev/rmt/c58t3d0BESTnb
tape 4 0/0/2/0/0.98.8.255.1.3.0 stape CLAIMED DEVICE HP Ultrium 2-SCSI
/dev/rmt/4m /dev/rmt/4mn /dev/rmt/c60t3d0BEST /dev/rmt/c60t3d0BESTn
/dev/rmt/4mb /dev/rmt/4mnb /dev/rmt/c60t3d0BESTb /dev/rmt/c60t3d0BESTnb
tape 6 0/0/2/0/0.98.20.255.1.3.0 stape CLAIMED DEVICE HP Ultrium 3-SCSI
/dev/rmt/6m /dev/rmt/6mn /dev/rmt/c62t3d0BEST /dev/rmt/c62t3d0BESTn
/dev/rmt/6mb /dev/rmt/6mnb /dev/rmt/c62t3d0BESTb /dev/rmt/c62t3d0BESTnb
tape 8 0/0/2/0/0.98.24.255.1.3.0 stape CLAIMED DEVICE HP Ultrium 3-SCSI
/dev/rmt/8m /dev/rmt/8mn /dev/rmt/c64t3d0BEST /dev/rmt/c64t3d0BESTn
/dev/rmt/8mb /dev/rmt/8mnb /dev/rmt/c64t3d0BESTb /dev/rmt/c64t3d0BESTnb
tape 3 1/0/2/0/0.98.12.255.1.3.0 stape CLAIMED DEVICE HP Ultrium 2-SCSI
/dev/rmt/3m /dev/rmt/3mn /dev/rmt/c59t3d0BEST /dev/rmt/c59t3d0BESTn
/dev/rmt/3mb /dev/rmt/3mnb /dev/rmt/c59t3d0BESTb /dev/rmt/c59t3d0BESTnb
tape 5 1/0/2/0/0.98.16.255.1.3.0 stape CLAIMED DEVICE HP Ultrium 2-SCSI
/dev/rmt/5m /dev/rmt/5mn /dev/rmt/c61t3d0BEST /dev/rmt/c61t3d0BESTn
/dev/rmt/5mb /dev/rmt/5mnb /dev/rmt/c61t3d0BESTb /dev/rmt/c61t3d0BESTnb
tape 7 1/0/2/0/0.98.28.255.1.3.0 stape CLAIMED DEVICE HP Ultrium 3-SCSI
/dev/rmt/7m /dev/rmt/7mn /dev/rmt/c63t3d0BEST /dev/rmt/c63t3d0BESTn
/dev/rmt/7mb /dev/rmt/7mnb /dev/rmt/c63t3d0BESTb /dev/rmt/c63t3d0BESTnb
tape 9 1/0/2/0/0.98.32.255.1.3.0 stape CLAIMED DEVICE HP Ultrium 3-SCSI
/dev/rmt/9m /dev/rmt/9mn /dev/rmt/c65t3d0BEST /dev/rmt/c65t3d0BESTn
/dev/rmt/9mb /dev/rmt/9mnb /dev/rmt/c65t3d0BESTb /dev/rmt/c65t3d0BESTnb
To simplyfy this i grep the ultrium string
cel100:/usr/openv/volmgr/bin#ioscan -fnC tape | grep -i ultrium
tape 2 0/0/2/0/0.98.4.255.1.3.0 stape CLAIMED DEVICE HP Ultrium 2-SCSI
tape 4 0/0/2/0/0.98.8.255.1.3.0 stape CLAIMED DEVICE HP Ultrium 2-SCSI
tape 6 0/0/2/0/0.98.20.255.1.3.0 stape CLAIMED DEVICE HP Ultrium 3-SCSI
tape 8 0/0/2/0/0.98.24.255.1.3.0 stape CLAIMED DEVICE HP Ultrium 3-SCSI
tape 3 1/0/2/0/0.98.12.255.1.3.0 stape CLAIMED DEVICE HP Ultrium 2-SCSI
tape 5 1/0/2/0/0.98.16.255.1.3.0 stape CLAIMED DEVICE HP Ultrium 2-SCSI
tape 7 1/0/2/0/0.98.28.255.1.3.0 stape CLAIMED DEVICE HP Ultrium 3-SCSI
tape 9 1/0/2/0/0.98.32.255.1.3.0 stape CLAIMED DEVICE HP Ultrium 3-SCSI
2. So, we know that OS can detect new drives, but at the OS configuration still not update their kernel module for new drives. So we go to /dev/rmt and work from there.
cel100:/usr/openv/volmgr/bin#cd /dev/rmt
cel100:/dev/rmt#
cel100:/dev/rmt#ls
cel100:/dev/rmt#ls
0m 0mb 0mbn
cel100:/dev/rmt#rm *
cel100:/dev/rmt#ls
cel100:/dev/rmt#
Now is the time to rebuild the kernel driver for tape drives,make sure no entries in /dev/rmt
cel100:/dev/rmt#insf -eC tape
SORRY BUT I FORGOT TO CAPTURE THE OUTPUT FOR YOU, BUT YOU CAN SEE THE KERNEL REBUILD THE 8 NEW DRIVES AS SHOWN IN IOSCAN OUTPUT EARLIER.
Verify that new drives all listed in /dev/rmt
cel100:/dev/rmt#ls
0m 3mb 5mn 7mnb c1t3d0BEST c58t3d0BESTb c60t3d0BESTn c62t3d0BESTnb c65t3d0BEST
0mb 3mn 5mnb 8m c1t3d0BESTb c58t3d0BESTn c60t3d0BESTnb c63t3d0BEST c65t3d0BESTb
0mn 3mnb 6m 8mb c1t3d0BESTn c58t3d0BESTnb c61t3d0BEST c63t3d0BESTb c65t3d0BESTn
0mnb 4m 6mb 8mn c1t3d0BESTnb c59t3d0BEST c61t3d0BESTb c63t3d0BESTn c65t3d0BESTnb
2m 4mb 6mn 8mnb c1t3d0DDS c59t3d0BESTb c61t3d0BESTn c63t3d0BESTnb stape_config
2mb 4mn 6mnb 9m c1t3d0DDSb c59t3d0BESTn c61t3d0BESTnb c64t3d0BEST
2mn 4mnb 7m 9mb c1t3d0DDSn c59t3d0BESTnb c62t3d0BEST c64t3d0BESTb
2mnb 5m 7mb 9mn c1t3d0DDSnb c60t3d0BEST c62t3d0BESTb c64t3d0BESTn
3m 5mb 7mn 9mnb c58t3d0BEST c60t3d0BESTb c62t3d0BESTn c64t3d0BESTnb
You have mail in /var/mail/root
3. Now, comes to netbackup part. Go to /usr/openv/volmgr/bin. Run scan command and you should see all drives info for each new added drives.
cel100:/dev/rmt#cd /usr/openv/volmgr/bin
cel100:/usr/openv/volmgr/bin#scan
sh: scan: not found.
cel100:/usr/openv/volmgr/bin#./scan
************************************************************
*********************** SDT_TAPE ************************
*********************** SDT_CHANGER ************************
*********************** SDT_OPTICAL ************************
************************************************************
------------------------------------------------------------
Device Name : "/dev/rmt/c58t3d0BESTnb"
Passthru Name: "/dev/sctl/c58t3l0"
Volume Header: ""
Port: -1; Bus: -1; Target: -1; LUN: -1
Inquiry : "HP Ultrium 2-SCSI K470"
Vendor ID : "HP "
Product ID : "Ultrium 2-SCSI "
Product Rev: "K470"
Serial Number: "HUM4M00002"
WWN : "HP Ultrium 2-SCSI HUM4M00002"
WWN Id Type : 1
Device Identifier: "HP Ultrium 2-SCSI HUM4M00002"
Device Type : SDT_TAPE
NetBackup Drive Type: 10
Removable : Yes
Device Supports: SCSI-3
Flags : 0x4
Reason: 0x0
------------------------------------------------------------
Device Name : "/dev/rmt/c60t3d0BESTnb"
Passthru Name: "/dev/sctl/c60t3l0"
Volume Header: ""
Port: -1; Bus: -1; Target: -1; LUN: -1
Inquiry : "HP Ultrium 2-SCSI K470"
Vendor ID : "HP "
Product ID : "Ultrium 2-SCSI "
Product Rev: "K470"
Serial Number: "HUM4L00729"
WWN : "HP Ultrium 2-SCSI HUM4L00729"
WWN Id Type : 1
Device Identifier: "HP Ultrium 2-SCSI HUM4L00729"
Device Type : SDT_TAPE
NetBackup Drive Type: 10
Removable : Yes
Device Supports: SCSI-3
Flags : 0x4
Reason: 0x0
------------------------------------------------------------
Device Name : "/dev/rmt/c59t3d0BESTnb"
Passthru Name: "/dev/sctl/c59t3l0"
Volume Header: ""
Port: -1; Bus: -1; Target: -1; LUN: -1
Inquiry : "HP Ultrium 2-SCSI K470"
Vendor ID : "HP "
Product ID : "Ultrium 2-SCSI "
Product Rev: "K470"
Serial Number: "HUM4L00717"
WWN : "HP Ultrium 2-SCSI HUM4L00717"
WWN Id Type : 1
Device Identifier: "HP Ultrium 2-SCSI HUM4L00717"
Device Type : SDT_TAPE
NetBackup Drive Type: 10
Removable : Yes
Device Supports: SCSI-3
Flags : 0x4
Reason: 0x0
------------------------------------------------------------
Device Name : "/dev/rmt/c61t3d0BESTnb"
Passthru Name: "/dev/sctl/c61t3l0"
Volume Header: ""
Port: -1; Bus: -1; Target: -1; LUN: -1
Inquiry : "HP Ultrium 2-SCSI K470"
Vendor ID : "HP "
Product ID : "Ultrium 2-SCSI "
Product Rev: "K470"
Serial Number: "HUM4M00865"
WWN : "HP Ultrium 2-SCSI HUM4M00865"
WWN Id Type : 1
Device Identifier: "HP Ultrium 2-SCSI HUM4M00865"
Device Type : SDT_TAPE
NetBackup Drive Type: 10
Removable : Yes
Device Supports: SCSI-3
Flags : 0x4
Reason: 0x0
------------------------------------------------------------
Device Name : "/dev/rmt/c1t3d0BESTnb"
Passthru Name: "/dev/sctl/c1t3l0"
Volume Header: ""
Port: -1; Bus: -1; Target: -1; LUN: -1
Inquiry : "HP C5683A C111"
Vendor ID : "HP "
Product ID : "C5683A "
Product Rev: "C111"
Serial Number: ""
WWN : ""
WWN Id Type : 0
Device Identifier: ""
Device Type : SDT_TAPE
NetBackup Drive Type: 8
Removable : Yes
Device Supports: SCSI-2
Flags : 0x4
Reason: 0x0
------------------------------------------------------------
Device Name : "/dev/rmt/c62t3d0BESTnb"
Passthru Name: "/dev/sctl/c62t3l0"
Volume Header: ""
Port: -1; Bus: -1; Target: -1; LUN: -1
Inquiry : "HP Ultrium 3-SCSI L58S"
Vendor ID : "HP "
Product ID : "Ultrium 3-SCSI "
Product Rev: "L58S"
Serial Number: "HU10650UUE"
WWN : ""
WWN Id Type : 0
Device Identifier: ""
Device Type : SDT_TAPE
NetBackup Drive Type: 16
Removable : Yes
Device Supports: SCSI-3
Flags : 0x4
Reason: 0x0
------------------------------------------------------------
Device Name : "/dev/rmt/c64t3d0BESTnb"
Passthru Name: "/dev/sctl/c64t3l0"
Volume Header: ""
Port: -1; Bus: -1; Target: -1; LUN: -1
Inquiry : "HP Ultrium 3-SCSI L58S"
Vendor ID : "HP "
Product ID : "Ultrium 3-SCSI "
Product Rev: "L58S"
Serial Number: "HU10648P9Y"
WWN : ""
WWN Id Type : 0
Device Identifier: ""
Device Type : SDT_TAPE
NetBackup Drive Type: 16
Removable : Yes
Device Supports: SCSI-3
Flags : 0x4
Reason: 0x0
------------------------------------------------------------
Device Name : "/dev/rmt/c63t3d0BESTnb"
Passthru Name: "/dev/sctl/c63t3l0"
Volume Header: ""
Port: -1; Bus: -1; Target: -1; LUN: -1
Inquiry : "HP Ultrium 3-SCSI L58S"
Vendor ID : "HP "
Product ID : "Ultrium 3-SCSI "
Product Rev: "L58S"
Serial Number: "HU10648P8R"
WWN : ""
WWN Id Type : 0
Device Identifier: ""
Device Type : SDT_TAPE
NetBackup Drive Type: 16
Removable : Yes
Device Supports: SCSI-3
Flags : 0x4
Reason: 0x0
------------------------------------------------------------
Device Name : "/dev/rmt/c65t3d0BESTnb"
Passthru Name: "/dev/sctl/c65t3l0"
Volume Header: ""
Port: -1; Bus: -1; Target: -1; LUN: -1
Inquiry : "HP Ultrium 3-SCSI L58S"
Vendor ID : "HP "
Product ID : "Ultrium 3-SCSI "
Product Rev: "L58S"
Serial Number: "HU10651AMG"
WWN : ""
WWN Id Type : 0
Device Identifier: ""
Device Type : SDT_TAPE
NetBackup Drive Type: 16
Removable : Yes
Device Supports: SCSI-3
Flags : 0x4
Reason: 0x0
cel100:/usr/openv/volmgr/bin#
Now its happy ending for everyone, now at least few more hours i can go back home there's 15 media servers to get it configured. HP-UX and Tru64 all ok already, but Solaris have to do something on sg kernel configuration.
How To Detect New Drives on HP-UX + Netbackup
Posted by
Syed .Z
on Wednesday, April 11, 2007
Labels:
Unix OS Storage and Backup
0 comments:
Post a Comment