sitemap

RSS地图

收藏本站

设为首页

Oracle研究中心

当前位置:Oracle研究中心 > 运维DBA >

【学习笔记】UNIX和LINUX NBU环境测试TAPE功能是否正常

时间:2016-10-29 20:29   来源:Oracle研究中心   作者:HTZ   点击:

天萃荷净 Oracle研究中心学习笔记:分享一篇关于备份软件Netbackup备份软件的测试笔记,详细测试UNIX/LINUX NBU环境测试TAPE功能是否正常。

[root@nbu71 ~]# nbemmcmd -deletealldevices -machinetype master -machinename nbu71
NBEMMCMD, Version:7.1
Command completed successfully.

[root@nbu71 ~]# tpautoconf -a
TPAC60 – – – -1~-1~-1~-1 2 – – – 0 – – – – – – – 0 0 – – nbu71 4 – – 0 – – – –
TPAC60 IBM.ULT3580-TD4.000 IBM~~~~~ULT3580-TD4~~~~~550V /dev/nst7 -1~-1~-1~-1 1 0 – – 0 3 – – – XYZZY_B4 – 5 0 0 nbu71 – nbu71 0 – – 0 – – – –
TPAC60 IBM.ULT3580-TD4.001 IBM~~~~~ULT3580-TD4~~~~~550V /dev/nst6 -1~-1~-1~-1 1 0 – – 0 3 – – – XYZZY_B3 – 5 0 0 nbu71 – nbu71 0 – – 0 – – – –
TPAC60 IBM.ULT3580-TD4.002 IBM~~~~~ULT3580-TD4~~~~~550V /dev/nst5 -1~-1~-1~-1 1 0 – – 0 3 – – – XYZZY_B2 – 5 0 0 nbu71 – nbu71 0 – – 0 – – – –
TPAC60 IBM.ULT3580-TD4.003 IBM~~~~~ULT3580-TD4~~~~~550V /dev/nst4 -1~-1~-1~-1 1 0 – – 0 3 – – – XYZZY_B1 – 5 0 0 nbu71 – nbu71 0 – – 0 – – – –
TPAC60 IBM.ULT3580-TD4.004 IBM~~~~~ULT3580-TD4~~~~~550V /dev/nst3 -1~-1~-1~-1 1 0 1 4 8 3 – – – XYZZY_A4 – 5 0 0 – – nbu71 0 – – 0 – – – –
TPAC60 IBM.ULT3580-TD4.005 IBM~~~~~ULT3580-TD4~~~~~550V /dev/nst2 -1~-1~-1~-1 1 0 1 3 8 3 – – – XYZZY_A3 – 5 0 0 – – nbu71 0 – – 0 – – – –
TPAC60 IBM.ULT3580-TD5.000 IBM~~~~~ULT3580-TD5~~~~~550V /dev/nst1 -1~-1~-1~-1 1 0 1 2 8 10 – – – XYZZY_A2 – 5 0 0 – – nbu71 0 – – 0 – – – –
TPAC60 IBM.ULT3580-TD5.001 IBM~~~~~ULT3580-TD5~~~~~550V /dev/nst0 -1~-1~-1~-1 1 0 1 1 8 10 – – – XYZZY_A1 – 5 0 0 – – nbu71 0 – – 0 – – – –
TPAC60 0 SPECTRA~PYTHON /dev/sg11 -1~-1~-1~-1 0 0 0 – 8 – 39 4 4 XYZZY_B – 5 0 – nbu71 nbu71 nbu71 0 – – 0 – – – –
TPAC60 1 STK~~~~~L700 /dev/sg4 -1~-1~-1~-1 0 0 1 – 8 – 39 4 4 XYZZY_A – 5 0 – nbu71 nbu71 nbu71 0 – – 0 – – – –

[root@nbu71 ~]# tpconfig -l
Device Robot Drive Robot Drive Device Second
Type Num Index Type DrNum Status Comment Name Path Device Path
robot 0 – TLD – – – – /dev/sg11
robot 1 – TLD – – – – /dev/sg4
drive – 4 hcart 4 UP – IBM.ULT3580-TD4.004 /dev/nst3
drive – 5 hcart 3 UP – IBM.ULT3580-TD4.005 /dev/nst2
drive – 6 hcart2 2 UP – IBM.ULT3580-TD5.000 /dev/nst1
drive – 7 hcart2 1 UP – IBM.ULT3580-TD5.001 /dev/nst0
drive – 0 hcart – UP – IBM.ULT3580-TD4.000 /dev/nst7
drive – 1 hcart – UP – IBM.ULT3580-TD4.001 /dev/nst6
drive – 2 hcart – UP – IBM.ULT3580-TD4.002 /dev/nst5
drive – 3 hcart – UP – IBM.ULT3580-TD4.003 /dev/nst4


Currently defined robotics are:
TLD(0) robotic path = /dev/sg11
TLD(1) robotic path = /dev/sg4

EMM Server = nbu71

[root@nbu71 ~]# robtest
Configured robots with local control supporting test utilities:
TLD(0) robotic path = /dev/sg11
TLD(1) robotic path = /dev/sg4

Robot Selection
—————
1) TLD 0
2) TLD 1
3) none/quit
Enter choice: 2

Robot selected: TLD(1) robotic path = /dev/sg4

Invoking robotic test utility:
/usr/openv/volmgr/bin/tldtest -rn 1 -r /dev/sg4

Opening /dev/sg4
MODE_SENSE complete
Enter tld commands ( returns help information)
s d
drive 1 (addr 1) access = 1 Contains Cartridge = yes
Source address = 1043 (slot 20)
Barcode = E01020L4
drive 2 (addr 2) access = 1 Contains Cartridge = no
drive 3 (addr 3) access = 1 Contains Cartridge = no
drive 4 (addr 4) access = 1 Contains Cartridge = no
READ_ELEMENT_STATUS complete
s s
slot 1 (addr 1024) contains Cartridge = yes
Source address = 34976
Barcode = E01001L4
slot 2 (addr 1025) contains Cartridge = yes
Source address = 8320
Barcode = E01002L4
slot 3 (addr 1026) contains Cartridge = yes
Barcode = E01003L4
slot 4 (addr 1027) contains Cartridge = yes
Barcode = E01004L4
slot 5 (addr 1028) contains Cartridge = yes
Barcode = E01005L4
slot 6 (addr 1029) contains Cartridge = yes
Barcode = E01006L4
slot 7 (addr 1030) contains Cartridge = yes
Barcode = E01007L4
slot 8 (addr 1031) contains Cartridge = yes
Barcode = E01008L4
slot 9 (addr 1032) contains Cartridge = yes
Barcode = E01009L4
slot 10 (addr 1033) contains Cartridge = yes
Barcode = E01010L4
<< Press return to continue, or q and return to stop >>
q
READ_ELEMENT_STATUS complete
m s4 d2
Initiating MOVE_MEDIUM from address 1027 to 2
MOVE_MEDIUM complete
s s
slot 1 (addr 1024) contains Cartridge = yes
Source address = 34976
Barcode = E01001L4
slot 2 (addr 1025) contains Cartridge = yes
Source address = 8320
Barcode = E01002L4
slot 3 (addr 1026) contains Cartridge = yes
Barcode = E01003L4
slot 4 (addr 1027) contains CartrOracleоidge = no
slot 5 (addr 1028) contains Cartridge = yes
Barcode = E01005L4
slot 6 (addr 1029) contains Cartridge = yes
Barcode = E01006L4
slot 7 (addr 1030) contains Cartridge = yes
Barcode = E01007L4
slot 8 (addr 1031) contains Cartridge = yes
Barcode = E01008L4
slot 9 (addr 1032) contains Cartridge = yes
Barcode = E01009L4
slot 10 (addr 1033) contains Cartridge = yes
Barcode = E01010L4
<< Press return to continue, or q and return to stop >>
q
READ_ELEMENT_STATUS complete
s d
drive 1 (addr 1) access = 1 Contains Cartridge = yes
Source address = 1043 (slot 20)
Barcode = E01020L4
drive 2 (addr 2) access = 1 Contains Cartridge = yes
Source address = 1027 (slot 4)
Barcode = E01004L4
drive 3 (addr 3) access = 1 Contains Cartridge = no
drive 4 (addr 4) access = 1 Contains Cartridge = no
READ_ELEMENT_STATUS complete
quit

Robot Selection
—————
1) TLD 0
2) TLD 1
3) none/quit
Enter choice:

[root@nbu71 ~]# mtx -f /dev/sg4 status
Storage Changer /dev/sg4:4 Drives, 43 Slots ( 4 Import/Export )
Data Transfer Element 0:Full (Storage Element 20 Loaded):VolumeTag = E01020L4
Data Transfer Element 1:Full (Storage Element 4 Loaded):VolumeTag = E01004L4
Data Transfer Element 2:Empty
Data Transfer Element 3:Empty
Storage Element 1:Full :VolumeTag=E01001L4
Storage Element 2:Full :VolumeTag=E01002L4
Storage Element 3:Full :VolumeTag=E01003L4
Storage Element 4:Empty
Storage Element 5:Full :VolumeTag=E01005L4
Storage Element 6:Full :VolumeTag=E01006L4
Storage Element 7:Full :VolumeTag=E01007L4
Storage Element 8:Full :VolumeTag=E01008L4
Storage Element 9:Full :VolumeTag=E01009L4
Storage Element 10:Full :VolumeTag=E01010L4
Storage Element 11:Full :VolumeTag=E01011L4
Storage Element 12:Full :VolumeTag=E01012L4
Storage Element 13:Full :VolumeTag=E01013L4
Storage Element 14:Full :VolumeTag=E01014L4

[root@nbu71 ~]# lsscsi -g
[0:0:0:0] disk ATA VBOX HARDDISK 1.0 /dev/sda /dev/sg0
[1:0:0:0] disk ATA VBOX HARDDISK 1.0 /dev/sdb /dev/sg1
[2:0:0:0] mediumx STK L700 550V – /dev/sg4
[2:0:1:0] tape IBM ULT3580-TD5 550V /dev/st0 /dev/sg2
[2:0:2:0] tape IBM ULT3580-TD5 550V /dev/st1 /dev/sg3
[2:0:3:0] tape IBM ULT3580-TD4 550V /dev/st2 /dev/sg5
[2:0:4:0] tape IBM ULT3580-TD4 550V /dev/st3 /dev/sg6
[2:0:8:0] mediumx SPECTRA PYTHON 550V – /dev/sg11
[2:0:9:0] tape IBM ULT3580-TD4 550V /dev/st4 /dev/sg7
[2:0:10:0] tape IBM ULT3580-TD4 550V /dev/st5 /dev/sg8
[2:0:11:0] tape IBM ULT3580-TD4 550V /dev/st6 /dev/sg9
[2:0:12:0] tape IBM ULT3580-TD4 550V /dev/st7 /dev/sg10

[root@nbu71 ~]# tar -cvf /dev/st1 /etc/hosts
tar: Removing leading `/’ from member names
/etc/hosts

[root@nbu71 ~]# tar -tvf /dev/st1
-rw-r–r– root/root 232 2012-10-13 14:19:05 etc/hosts

本文固定链接: http://www.htz.pw/2014/08/04/unixlinux-nbu%e7%8e%af%e5%a2%83%e6%b5%8b%e8%af%95tape%e5%8a%9f%e8%83%bd%e6%98%af%e5%90%a6%e6%ad%a3%e5%b8%b8.html | 认真就输

--------------------------------------ORACLE-DBA----------------------------------------

最权威、专业的Oracle案例资源汇总之【学习笔记】UNIX和LINUX NBU环境测试TAPE功能是否正常

本文由大师惜分飞原创分享,网址:http://www.oracleplus.net/arch/1107.html

Oracle研究中心

关键词:

NBU环境测试TAPE功能

linux NBU tape功能测试

unix nbu tape功能测试