问题提出:
2006年12月21日开始arch备份在inter database中提示一半对一半错:
Name:2006/12/21-38
status:Completed/Failures
Type:Backup
Specification:Oracle8 gd_rac_arch
Backup Type:full
Start Time:2006-12-21 22:00:05
End Time:2006-12-21 22:05:37
Owner:oracle.dba@gd_rac02
2006年12月26日还是如此,打电话给HP,要求将report发给其工程师
在cmd下,输入:omnidb -sess 2006/12/26-6 -report>gd_misc_db_arch.txt
[Normal] From: BSM@gd-bak02 “gd_rac_arch” Time: 2006-12-26 14:00:10
OB2BAR application on “gd_rac02” successfully started.
ob2rman.exe started with arguments:
-backup -full
Recovery Manager: Release 9.2.0.6.0 – 64bit Production
Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
RMAN>
connected to target database: GDMISC (DBID=2815584369)
RMAN>
connected to recovery catalog database
RMAN>
RMAN> run {
2> allocate channel ‘dev_0’ type ‘sbt_tape’
3> parms ‘ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=gdrac2,OB2BARLIST=gd_rac_arch,OB2BARHOSTNAME=gd_rac02)’;
4> allocate channel ‘dev_1’ type ‘sbt_tape’
5> parms ‘ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=gdrac2,OB2BARLIST=gd_rac_arch,OB2BARHOSTNAME=gd_rac02)’;
6> allocate channel ‘dev_2’ type ‘sbt_tape’
7> parms ‘ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=gdrac2,OB2BARLIST=gd_rac_arch,OB2BARHOSTNAME=gd_rac02)’;
8> allocate channel ‘dev_3’ type ‘sbt_tape’
9> parms ‘ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=gdrac2,OB2BARLIST=gd_rac_arch,OB2BARHOSTNAME=gd_rac02)’;
10> allocate channel ‘dev_4’ type ‘sbt_tape’
11> parms ‘ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=gdrac2,OB2BARLIST=gd_rac_arch,OB2BARHOSTNAME=gd_rac02)’;
12> allocate channel ‘dev_5’ type ‘sbt_tape’
13> parms ‘ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=gdrac2,OB2BARLIST=gd_rac_arch,OB2BARHOSTNAME=gd_rac02)’;
14> allocate channel ‘dev_6’ type ‘sbt_tape’
15> parms ‘ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=gdrac2,OB2BARLIST=gd_rac_arch,OB2BARHOSTNAME=gd_rac02)’;
16> allocate channel ‘dev_7’ type ‘sbt_tape’
17> parms ‘ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=gdrac2,OB2BARLIST=gd_rac_arch,OB2BARHOSTNAME=gd_rac02)’;
18> backup incremental level 0
19> filesperset 4
20> format ‘gd_rac_arch
21> archivelog all
22> delete input;
23> }
allocated channel: dev_0
channel dev_0: sid=178 devtype=SBT_TAPE
channel dev_0: Data Protector A.05.50/PHSS_35224/PHSS_35225/DPSOL_00241
allocated channel: dev_1
channel dev_1: sid=839 devtype=SBT_TAPE
channel dev_1: Data Protector A.05.50/PHSS_35224/PHSS_35225/DPSOL_00241
allocated channel: dev_2
channel dev_2: sid=679 devtype=SBT_TAPE
channel dev_2: Data Protector A.05.50/PHSS_35224/PHSS_35225/DPSOL_00241
allocated channel: dev_3
channel dev_3: sid=250 devtype=SBT_TAPE
channel dev_3: Data Protector A.05.50/PHSS_35224/PHSS_35225/DPSOL_00241
allocated channel: dev_4
channel dev_4: sid=467 devtype=SBT_TAPE
channel dev_4: Data Protector A.05.50/PHSS_35224/PHSS_35225/DPSOL_00241
allocated channel: dev_5
channel dev_5: sid=369 devtype=SBT_TAPE
channel dev_5: Data Protector A.05.50/PHSS_35224/PHSS_35225/DPSOL_00241
allocated channel: dev_6
channel dev_6: sid=279 devtype=SBT_TAPE
channel dev_6: Data Protector A.05.50/PHSS_35224/PHSS_35225/DPSOL_00241
allocated channel: dev_7
channel dev_7: sid=751 devtype=SBT_TAPE
channel dev_7: Data Protector A.05.50/PHSS_35224/PHSS_35225/DPSOL_00241
Starting backup at 12/26/2006 [14:00:20]
current log archived
channel dev_0: starting archive log backupset
channel dev_0: specifying archive log(s) in backup set
input archive log thread=1 sequence=1554 recid=2171 stamp=610193822
input archive log thread=1 sequence=1555 recid=2178 stamp=610195918
input archive log thread=1 sequence=1556 recid=2184 stamp=610200413
channel dev_0: starting piece 1 at 12/26/2006 [14:00:42]
channel dev_1: starting archive log backupset
channel dev_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=1557 recid=2189 stamp=610204344
input archive log thread=1 sequence=1558 recid=2193 stamp=610207239
input archive log thread=2 sequence=740 recid=2170 stamp=610193186
channel dev_1: starting piece 1 at 12/26/2006 [14:00:42]
channel dev_2: starting archive log backupset
channel dev_2: specifying archive log(s) in backup set
input archive log thread=2 sequence=741 recid=2173 stamp=610193826
input archive log thread=2 sequence=742 recid=2174 stamp=610194477
input archive log thread=2 sequence=743 recid=2175 stamp=610195206
channel dev_2: starting piece 1 at 12/26/2006 [14:00:42]
channel dev_3: starting archive log backupset
channel dev_3: specifying archive log(s) in backup set
input archive log thread=2 sequence=744 recid=2177 stamp=610195917
input archive log thread=2 sequence=745 recid=2179 stamp=610197253
input archive log thread=2 sequence=746 recid=2182 stamp=610200412
channel dev_3: starting piece 1 at 12/26/2006 [14:00:42]
channel dev_4: starting archive log backupset
channel dev_4: specifying archive log(s) in backup set
[Normal] From: BMA@gd_rac02 “HP:Ultrium 3-SCSI_3_gd_rac02” Time: 2006-12-26 14:00:53
STARTING Media Agent “HP:Ultrium 3-SCSI_3_gd_rac02”
input archive log thread=2 sequence=747 recid=2188 stamp=610204342
[Normal] From: BMA@gd_rac02 “HP:Ultrium 3-SCSI_1_gd_rac02” Time: 2006-12-26 14:00:48
STARTING Media Agent “HP:Ultrium 3-SCSI_1_gd_rac02”
input archive log thread=2 sequence=748 recid=2192 stamp=610207230
input archive log thread=3 sequence=661 recid=2172 stamp=610193823
[Normal] From: BMA@gd_rac02 “HP:Ultrium 3-SCSI_3_gd_rac02” Time: 2006-12-26 14:00:53
By: UMA@gd_rac02@/dev/rac/c8t0d0
Loading medium from slot 54 to device /dev/rmt/3mn
channel dev_4: starting piece 1 at 12/26/2006 [14:00:42]
[Normal] From: BMA@gd_rac02 “HP:Ultrium 3-SCSI_1_gd_rac02” Time: 2006-12-26 14:00:53
By: UMA@gd_rac02@/dev/rac/c8t0d0
Loading medium from slot 57 to device /dev/rmt/1mn
channel dev_5: starting archive log backupset
channel dev_5: specifying archive log(s) in backup set
input archive log thread=3 sequence=662 recid=2176 stamp=610195819
input archive log thread=3 sequence=663 recid=2180 stamp=610197955
input archive log thread=3 sequence=664 recid=2181 stamp=610199279
channel dev_5: starting piece 1 at 12/26/2006 [14:00:42]
channel dev_6: starting archive log backupset
channel dev_6: specifying archive log(s) in backup set
input archive log thread=3 sequence=665 recid=2183 stamp=610200412
input archive log thread=3 sequence=666 recid=2185 stamp=610200910
input archive log thread=3 sequence=667 recid=2186 stamp=610202489
channel dev_6: starting piece 1 at 12/26/2006 [14:00:42]
channel dev_7: starting archive log backupset
channel dev_7: specifying archive log(s) in backup set
input archive log thread=3 sequence=668 recid=2187 stamp=610204341
input archive log thread=3 sequence=669 recid=2190 stamp=610205956
input archive log thread=3 sequence=670 recid=2191 stamp=610207230
channel dev_7: starting piece 1 at 12/26/2006 [14:00:43]
[Critical] From: BMA@gd_rac02 “HP:Ultrium 3-SCSI_1_gd_rac02” Time: 2006-12-26 14:01:27
[90:63] By: UMA@gd_rac02@/dev/rac/c8t0d0
Cannot load exchanger medium (Target drive is busy.)
[Normal] From: BMA@gd_rac02 “HP:Ultrium 3-SCSI_1_gd_rac02” Time: 2006-12-26 14:01:27
ABORTED Media Agent “HP:Ultrium 3-SCSI_1_gd_rac02”
[Normal] From: OB2BAR_Oracle8@gd_rac02 “gdrac2” Time: 2006-12-26 14:02:03
Starting OB2BAR Backup: gd_rac02:gd_rac_arch
[Normal] From: OB2BAR_Oracle8@gd_rac02 “gdrac2” Time: 2006-12-26 14:02:03
Starting OB2BAR Backup: gd_rac02:gd_rac_arch
[Normal] From: OB2BAR_Oracle8@gd_rac02 “gdrac2” Time: 2006-12-26 14:02:03
Starting OB2BAR Backup: gd_rac02:gd_rac_arch
[Normal] From: OB2BAR_Oracle8@gd_rac02 “gdrac2” Time: 2006-12-26 14:02:03
Starting OB2BAR Backup: gd_rac02:gd_rac_arch
[Normal] From: OB2BAR_Oracle8@gd_rac02 “gdrac2” Time: 2006-12-26 14:04:33
Completed OB2BAR Backup: gd_rac02:gd_rac_arch
[Normal] From: OB2BAR_Oracle8@gd_rac02 “gdrac2” Time: 2006-12-26 14:04:33
Starting OB2BAR Backup: gd_rac02:gd_rac_arch
channel dev_4: finished piece 1 at 12/26/2006 [14:04:38]
piece handle=gd_rac_arch
channel dev_4: backup set complete, elapsed time: 00:03:57
channel dev_4: deleting archive log(s)
archive log filename=/arch/gdrac_2_747.arc recid=2188 stamp=610204342
archive log filename=/arch/gdrac_2_748.arc recid=2192 stamp=610207230
archive log filename=/arch/gdrac_3_661.arc recid=2172 stamp=610193823
[Normal] From: OB2BAR_Oracle8@gd_rac02 “gdrac2” Time: 2006-12-26 14:04:49
Completed OB2BAR Backup: gd_rac02:gd_rac_arch
[Normal] From: OB2BAR_Oracle8@gd_rac02 “gdrac2” Time: 2006-12-26 14:04:49
Starting OB2BAR Backup: gd_rac02:gd_rac_arch
channel dev_7: finished piece 1 at 12/26/2006 [14:04:53]
piece handle=gd_rac_arch
channel dev_7: backup set complete, elapsed time: 00:04:12
channel dev_7: deleting archive log(s)
archive log filename=/arch/gdrac_3_668.arc recid=2187 stamp=610204341
archive log filename=/arch/gdrac_3_669.arc recid=2190 stamp=610205956
archive log filename=/arch/gdrac_3_670.arc recid=2191 stamp=610207230
[Normal] From: OB2BAR_Oracle8@gd_rac02 “gdrac2” Time: 2006-12-26 14:04:57
Completed OB2BAR Backup: gd_rac02:gd_rac_arch
[Normal] From: OB2BAR_Oracle8@gd_rac02 “gdrac2” Time: 2006-12-26 14:04:57
Starting OB2BAR Backup: gd_rac02:gd_rac_arch
[Normal] From: OB2BAR_Oracle8@gd_rac02 “gdrac2” Time: 2006-12-26 14:04:57
Completed OB2BAR Backup: gd_rac02:gd_rac_arch
[Normal] From: OB2BAR_Oracle8@gd_rac02 “gdrac2” Time: 2006-12-26 14:04:57
Starting OB2BAR Backup: gd_rac02:gd_rac_arch
channel dev_5: finished piece 1 at 12/26/2006 [14:05:01]
piece handle=gd_rac_arch
channel dev_5: backup set complete, elapsed time: 00:04:20
channel dev_5: deleting archive log(s)
archive log filename=/arch/gdrac_3_662.arc recid=2176 stamp=610195819
archive log filename=/arch/gdrac_3_663.arc recid=2180 stamp=610197955
archive log filename=/arch/gdrac_3_664.arc recid=2181 stamp=610199279
channel dev_6: finished piece 1 at 12/26/2006 [14:05:01]
piece handle=gd_rac_arch
channel dev_6: backup set complete, elapsed time: 00:04:20
channel dev_6: deleting archive log(s)
archive log filename=/arch/gdrac_3_665.arc recid=2183 stamp=610200412
archive log filename=/arch/gdrac_3_666.arc recid=2185 stamp=610200910
archive log filename=/arch/gdrac_3_667.arc recid=2186 stamp=610202489
[Normal] From: OB2BAR_Oracle8@gd_rac02 “gdrac2” Time: 2006-12-26 14:05:43
Completed OB2BAR Backup: gd_rac02:gd_rac_arch
channel dev_3: finished piece 1 at 12/26/2006 [14:05:46]
piece handle=gd_rac_arch
channel dev_3: backup set complete, elapsed time: 00:05:05
channel dev_3: deleting archive log(s)
archive log filename=/arch/gdrac_2_744.arc recid=2177 stamp=610195917
[Normal] From: OB2BAR_Oracle8@gd_rac02 “gdrac2” Time: 2006-12-26 14:05:47
Completed OB2BAR Backup: gd_rac02:gd_rac_arch
archive log filename=/arch/gdrac_2_745.arc recid=2179 stamp=610197253
archive log filename=/arch/gdrac_2_746.arc recid=2182 stamp=610200412
channel dev_0: finished piece 1 at 12/26/2006 [14:05:48]
piece handle=gd_rac_arch
channel dev_0: backup set complete, elapsed time: 00:05:07
channel dev_0: deleting archive log(s)
archive log filename=/arch/gdrac_1_1554.arc recid=2171 stamp=610193822
archive log filename=/arch/gdrac_1_1555.arc recid=2178 stamp=610195918
archive log filename=/arch/gdrac_1_1556.arc recid=2184 stamp=610200413
[Normal] From: OB2BAR_Oracle8@gd_rac02 “gdrac2” Time: 2006-12-26 14:05:57
Completed OB2BAR Backup: gd_rac02:gd_rac_arch
[Normal] From: OB2BAR_Oracle8@gd_rac02 “gdrac2” Time: 2006-12-26 14:05:57
Completed OB2BAR Backup: gd_rac02:gd_rac_arch
channel dev_1: finished piece 1 at 12/26/2006 [14:06:03]
piece handle=gd_rac_arch
channel dev_1: backup set complete, elapsed time: 00:05:22
channel dev_1: deleting archive log(s)
archive log filename=/arch/gdrac_1_1557.arc recid=2189 stamp=610204344
archive log filename=/arch/gdrac_1_1558.arc recid=2193 stamp=610207239
archive log filename=/arch/gdrac_2_740.arc recid=2170 stamp=610193186
channel dev_2: finished piece 1 at 12/26/2006 [14:06:04]
piece handle=gd_rac_arch
channel dev_2: backup set complete, elapsed time: 00:05:23
channel dev_2: deleting archive log(s)
archive log filename=/arch/gdrac_2_741.arc recid=2173 stamp=610193826
archive log filename=/arch/gdrac_2_742.arc recid=2174 stamp=610194477
archive log filename=/arch/gdrac_2_743.arc recid=2175 stamp=610195206
Finished backup at 12/26/2006 [14:06:04]
released channel: dev_0
released channel: dev_1
released channel: dev_2
released channel: dev_3
released channel: dev_4
released channel: dev_5
released channel: dev_6
released channel: dev_7
RMAN> **end-of-file**
RMAN>
Recovery Manager complete.
[Normal] From: ob2rman.exe@gd_rac02 “gdrac2” Time: 12/26/06 14:06:06
Oracle RMAN successfully finished.
[Normal] From: ob2rman.exe@gd_rac02 “gdrac2” Time: 12/26/06 14:06:06
Issuing DP Managed Control File Backup …
[Normal] From: OB2BAR_Oracle8@gd_rac02 “gdrac2” Time: 2006-12-26 14:06:20
Starting OB2BAR Backup: gd_rac02:gdrac2 DP Managed Control File Backup “Oracle8”
[Normal] From: OB2BAR_Oracle8@gd_rac02 “gdrac2” Time: 2006-12-26 14:06:23
Completed OB2BAR Backup: gd_rac02:gdrac2 DP Managed Control File Backup “Oracle8”
[Normal] From: ob2rman.exe@gd_rac02 “gdrac2” Time: 12/26/06 14:06:23
Starting backup of the Oracle Recovery Catalog Database …
[Normal] From: ob2rman.exe@gd_rac02 “gdrac2” Time: 12/26/06 14:06:23
Getting NLS_LANG and setting it into the environment ….
AMERICAN_AMERICA.ZHS16GBK
Default exp binary /oracle/app/oracle/product/9.2.0/bin/exp is used for catalog export.
[Normal] From: ob2rman.exe@gd_rac02 “gdrac2” Time: 12/26/06 14:06:35
Export of the Recovery Catalog succeeded. Proceeding to backup.
[Normal] From: OB2BAR_Oracle8@gd_rac02 “gdrac2” Time: 2006-12-26 14:06:35
Starting OB2BAR Backup: gd_rac02:Oracle Recovery Backup Catalog “Oracle8”
[Normal] From: OB2BAR_Oracle8@gd_rac02 “gdrac2” Time: 2006-12-26 14:06:38
Completed OB2BAR Backup: gd_rac02:Oracle Recovery Backup Catalog “Oracle8”
[Normal] From: ob2rman.exe@gd_rac02 “gdrac2” Time: 12/26/06 14:06:38
Backup of the Oracle Catalog Database succeeded.
[Normal] From: BSM@gd-bak02 “gd_rac_arch” Time: 2006-12-26 14:06:35
OB2BAR application on “gd_rac02” disconnected.
[Normal] From: BMA@gd_rac02 “HP:Ultrium 3-SCSI_3_gd_rac02” Time: 2006-12-26 14:07:25
/dev/rmt/3mn
Medium header verification completed, 0 errors found
[Normal] From: BMA@gd_rac02 “HP:Ultrium 3-SCSI_3_gd_rac02” Time: 2006-12-26 14:07:42
By: UMA@gd_rac02@/dev/rac/c8t0d0
Unloading medium to slot 54 from device /dev/rmt/3mn
[Normal] From: BMA@gd_rac02 “HP:Ultrium 3-SCSI_3_gd_rac02” Time: 2006-12-26 14:07:54
COMPLETED Media Agent “HP:Ultrium 3-SCSI_3_gd_rac02”
[Normal] From: BSM@gd-bak02 “gd_rac_arch” Time: 2006-12-26 14:07:51
Backup Statistics:
Session Queuing Time (hours) 0.00
—————————————-
Completed Disk Agents …….. 10
Failed Disk Agents ……….. 0
Aborted Disk Agents ………. 0
—————————————-
Disk Agents Total ……….. 10
========================================
Completed Media Agents ……. 1
Failed Media Agents ………. 1
Aborted Media Agents ……… 0
—————————————-
Media Agents Total ………. 2
========================================
Mbytes Total …………….. 10813 MB
Used Media Total …………. 1
Disk Agent Errors Total …… 0
问题分析:
根据report中的:
[Critical] From: BMA@gd_rac02 “HP:Ultrium 3-SCSI_1_gd_rac02” Time: 2006-12-26 14:01:27
[90:63] By: UMA@gd_rac02@/dev/rac/c8t0d0
Cannot load exchanger medium (Target drive is busy.)
因此找到原因:用于备份arch的2个driver,其中一个被磁带卡住,而另一个能正常工作,于是就显示了一半成功一半失败的备份结果。
在上述情况下,arch还是能完整的正常备份(只用一个driver),但是备份有报错信息。
问题解决:
到gd-rac02上执行以下语句,检查是否真的卡带:
gd_rac02#[/]mc -p /dev/rac/c8t0d0 -r DS
DT_slot_1 FULL CS1257
DT_slot_2 EMPTY
DT_slot_3 EMPTY
DT_slot_4 EMPTY
ST_slot_1 EMPTY
ST_slot_2 FULL JT8140
ST_slot_3 FULL JT8141
ST_slot_4 FULL JT8129
ST_slot_5 FULL JT8143
ST_slot_6 FULL JT8144
ST_slot_7 FULL JT8155
ST_slot_8 FULL JT8146
ST_slot_9 EMPTY
ST_slot_10 FULL JT8148
ST_slot_11 FULL JT8149
ST_slot_12 FULL JT8170
ST_slot_13 FULL JT8171
ST_slot_14 FULL JT8172
ST_slot_15 FULL JT8154
ST_slot_16 EMPTY
ST_slot_17 EMPTY
ST_slot_18 EMPTY
ST_slot_19 EMPTY
ST_slot_20 EMPTY
ST_slot_21 EMPTY
ST_slot_22 EMPTY
ST_slot_23 FULL JT8132
ST_slot_24 FULL JT8133
ST_slot_25 FULL JT8134
ST_slot_26 EMPTY
ST_slot_27 FULL JT8136
ST_slot_28 EMPTY
ST_slot_29 EMPTY
ST_slot_30 FULL JT8120
ST_slot_31 FULL JT8121
ST_slot_32 FULL JT8122
ST_slot_33 FULL JT8123
ST_slot_34 FULL JT8124
ST_slot_35 FULL JT8125
ST_slot_36 FULL JT8126
ST_slot_37 FULL JT8127
ST_slot_38 FULL JT8128
ST_slot_39 EMPTY
ST_slot_40 FULL JT8150
ST_slot_41 FULL JT8145
ST_slot_42 EMPTY
ST_slot_43 FULL JT8153
ST_slot_44 FULL JT8173
ST_slot_45 FULL JT8174
ST_slot_46 FULL JT8175
ST_slot_47 FULL JT8176
ST_slot_48 FULL JT8177
ST_slot_49 FULL JT8178
ST_slot_50 FULL JT8179
ST_slot_51 FULL JT8160
ST_slot_52 FULL JT8151
ST_slot_53 FULL JT8152
ST_slot_54 FULL JT8163
ST_slot_55 FULL JT8164
ST_slot_56 FULL JT8165
ST_slot_57 FULL JT8166
ST_slot_58 FULL CLN000
gd_rac02#[/]
gd_rac02#[/]mc -p /dev/rac/c8t0d0 -s D1 -dS9
gd_rac02#[/]mc -p /dev/rac/c8t0d0 -r DS
DT_slot_1 EMPTY
DT_slot_2 EMPTY
DT_slot_3 EMPTY
DT_slot_4 EMPTY
ST_slot_1 EMPTY
ST_slot_2 FULL JT8140
ST_slot_3 FULL JT8141
ST_slot_4 FULL JT8129
ST_slot_5 FULL JT8143
ST_slot_6 FULL JT8144
ST_slot_7 FULL JT8155
ST_slot_8 FULL JT8146
ST_slot_9 FULL CS1257
ST_slot_10 FULL JT8148
ST_slot_11 FULL JT8149
ST_slot_12 FULL JT8170
ST_slot_13 FULL JT8171
ST_slot_14 FULL JT8172
ST_slot_15 FULL JT8154
ST_slot_16 EMPTY
ST_slot_17 EMPTY
ST_slot_18 EMPTY
ST_slot_19 EMPTY
ST_slot_20 EMPTY
ST_slot_21 EMPTY
ST_slot_22 EMPTY
ST_slot_23 FULL JT8132
ST_slot_24 FULL JT8133
ST_slot_25 FULL JT8134
ST_slot_26 EMPTY
ST_slot_27 FULL JT8136
ST_slot_28 EMPTY
ST_slot_29 EMPTY
ST_slot_30 FULL JT8120
ST_slot_31 FULL JT8121
ST_slot_32 FULL JT8122
ST_slot_33 FULL JT8123
ST_slot_34 FULL JT8124
ST_slot_35 FULL JT8125
ST_slot_36 FULL JT8126
ST_slot_37 FULL JT8127
ST_slot_38 FULL JT8128
ST_slot_39 EMPTY
ST_slot_40 FULL JT8150
ST_slot_41 FULL JT8145
ST_slot_42 EMPTY
ST_slot_43 FULL JT8153
ST_slot_44 FULL JT8173
ST_slot_45 FULL JT8174
ST_slot_46 FULL JT8175
ST_slot_47 FULL JT8176
ST_slot_48 FULL JT8177
ST_slot_49 FULL JT8178
ST_slot_50 FULL JT8179
ST_slot_51 FULL JT8160
ST_slot_52 FULL JT8151
ST_slot_53 FULL JT8152
ST_slot_54 FULL JT8163
ST_slot_55 FULL JT8164
ST_slot_56 FULL JT8165
ST_slot_57 FULL JT8166
ST_slot_58 FULL CLN000
gd_rac02#[/]
调整作业计划,在16点30分测试了一次arch备份,备份正常。
HP的文档中关于mc命令的解释:
mc(1M) mc(1M)
名称
mc – 介质装载器操作实用程序
概要
mc [-p device] [-a num] [-q] [-c
mc [-p device] [-b 0|1] [-l 0|1] [-e element_type]
mc [-p device] [-n drive_number] [-r element_type]
mc [-p device] -s
mc [-h |-?]
说明
mc 实用程序为用户提供了一个命令行接口,用于将介质操作命令发送到自动装载机或介质更换设备。它采用
“元素类型”作为大多数选项的参数。有效的介质类型(element_types) 包括:
D 指定数据传输(DT) 元素。
I 指定导入/导出(IE) 元素。
M 指定介质传输(MT) 元素。
S 指定存储(ST) 元素。
数据传输元素的示例是自动装载机的嵌入式磁带机。导入/导出元素的示例是可用于插入介质或者从自动装载机中
取出介质的插槽。介质传输元素的示例是自动装载机的机械拾取器组件。存储元素的示例是自动装载机的介质插
槽。
有关用法,请参阅下面的示例。
选项
mc 采用下列选项和参数:
-a num 输出num 指定的驱动器插槽的SCSI 总线地址。
-b 0|1 向设备发出保留(1) 或释放(0) SCSI 命令。
-c
确定从源到目标的移动是否有效。使用设备功能模式页,并将返回TRUE 或FALSE。源和目标
元素类型值中不应该使用空格。例如, -c DS 指定数据传输元素作为源,指定存储元素作为目
标。
-e element_type 输出元素类型的元素数。请参阅上面的元素类型。可以指定多个类型。例如, -e IDSM 指定所
有有效的元素类型。
-h|-? 输出用法说明。
HP-UX 11i Version 2: September 2004 −1− Hewlett-Packard Company Section 1M-527
mc(1M) mc(1M)
-l 0|1 允许(0) 或防止(1) 取出介质。
-n num 输出num 指定的插槽中的驱动器序列号(如果该信息可用)。
-p device 指定到库设备的通道设备文件。如果已设置LIBRARY 环境变量,则可以省略-p 选项。
-q 输出供应商ID、产品ID 和产品修订标准查询信息。
-r element_type 输出元素类型的元素插槽的状态(FULL/EMPTY/NONE)。请参阅上面的元素类型。如果设备支
持条码信息,该信息将追加到状态。可以指定多个类型。例如, -r IDSM 指定所有有效的元素
类型。
-s
指定移动介质源的元素类型和插槽号(
-sS1 指定插槽号1 中的存储元素。每次调用时,指定该选项的次数不能超过两次。
-d
指定移动介质目标的元素类型和插槽号。元素类型和插槽号之间不应使用空格。例如, -dD3 指
定插槽号3 中的数据传输元素。每次调用时,指定该选项的次数不能超过两次。
返回值
mc 在成功完成时返回0,在其他情况下返回-1。
诊断信息
ERROR: 0x5 Illegal Request: 0x3b0d Medium Destination element full
以上错误消息可能是用于将介质移动到已满的嵌入式驱动器的命令mc -s S2 -d D1 的结果。
ERROR: /dev/scsi/3: No such file or directory
如果不存在缺省的SCSI 通道设备文件,并且未指定其他任何设备文件,则将输出上面的错误消息。
举例
以包含六个盒式磁带的磁带盒的DDS-2 自动装载机为例:
查看自动装载机的数据传输和存储元素类型的状态:
mc -r DS
下面显示以上命令的输出示例。输出指示插槽2 (ST_slot_2) 中存在一个介质,嵌入式驱动器(DT_slot_1) 中存在
一个介质,其他所有插槽均为空。
DT_slot_1 FULL
ST_slot_1 EMPTY
ST_slot_2 FULL
ST_slot_3 EMPTY
Section 1M-528 Hewlett-Packard Company − 2 − HP-UX 11i Version 2: September 2004
mc(1M) mc(1M)
ST_slot_4 EMPTY
ST_slot_5 EMPTY
ST_slot_6 EMPTY
将介质从嵌入式驱动器移动到插槽5,然后将介质从插槽2 移动到嵌入式驱动器:
mc -s D1 -d S5 -s S2 -d D1
检查是否可以从数据传输元素移动到存储元素:
mc -c DS
下面显示以上命令的输出示例。该输出指示从数据传输元素类型到存储元素类型的移动是有效的。
DT->ST: TRUE
警告
请注意,对于所有HP DDS 自动装载机:首次使用mc 命令后,自动装载机将进入随机模式。一旦处于随机模
式,将禁用除Eject Button 之外的所有前面板按钮功能。要回到堆栈模式,必须弹出并重新插入磁带盒。
请注意,对于某些自动装载机或库:使用mc 命令之前,必须使用mt offline 命令卸载介质。
相关内容
mc 命令支持所有符合SCSI-2 介质更换器命令规范的HP 支持设备。
在使用该命令操作自动装载机之前,必须配置SCSI 通道驱动程序并创建设备文件。
对于连接到SCSI 接口卡(PCI) 的设备,必须配置sctl 通道驱动程序。请参阅scsi_ctl(7) 。
作者
mc 由HP 开发。
文件
/dev/scsi/3 缺省的通道设备文件。
5条评论
Hi,
gd_rac02#[/]mc -p /dev/rac/c8t0d0 -s D1 -dS9
gd_rac02#[/]mc -p /dev/rac/c8t0d0 -r DS
完成上面的两条命令后,成功地把D1中的带子移到S9了,那应该表示没有卡带吧?
[Critical] From: BMA@gd_rac02 “HP:Ultrium 3-SCSI_1_gd_rac02″ Time: 2006-12-26 14:01:27
[90:63] By: UMA@gd_rac02@/dev/rac/c8t0d0
Cannot load exchanger medium (Target drive is busy.)
是不是并不一定意味着卡带?
完成上面的两条命令后,成功地把D1中的带子移到S9了,那应该表示没有卡带吧?——不一定,要在mc -p xxxxx -r DS再看看。
是不是并不一定意味着卡带?——是的,也有可能是之前有一个备份还没完成,后一个任务发起了。对同一个的driver的争用
Hi,
谢谢回复!第二个问题明白了,第一个问题中:
Before “mc -p /dev/rac/c8t0d0 -s D1 -dS9”:
gd_rac02#[/]mc -p /dev/rac/c8t0d0 -r DS
DT_slot_1 FULL CS1257
DT_slot_2 EMPTY
DT_slot_3 EMPTY
DT_slot_4 EMPTY
ST_slot_1 EMPTY
ST_slot_2 FULL JT8140
ST_slot_3 FULL JT8141
ST_slot_4 FULL JT8129
ST_slot_5 FULL JT8143
ST_slot_6 FULL JT8144
ST_slot_7 FULL JT8155
ST_slot_8 FULL JT8146
ST_slot_9 EMPTY
。。。。
After “mc -p /dev/rac/c8t0d0 -s D1 -dS9”:
gd_rac02#[/]mc -p /dev/rac/c8t0d0 -s D1 -dS9
gd_rac02#[/]mc -p /dev/rac/c8t0d0 -r DS
DT_slot_1 EMPTY
DT_slot_2 EMPTY
DT_slot_3 EMPTY
DT_slot_4 EMPTY
ST_slot_1 EMPTY
ST_slot_2 FULL JT8140
ST_slot_3 FULL JT8141
ST_slot_4 FULL JT8129
ST_slot_5 FULL JT8143
ST_slot_6 FULL JT8144
ST_slot_7 FULL JT8155
ST_slot_8 FULL JT8146
ST_slot_9 FULL CS1257
。。。。
从上面可以看出:Tape CS1257成功从D1移到了S9中,这是不是意味着没有卡带?如果卡带是不是无法完成移动?谢谢!
是意味着没有卡带了。如果卡带,就无法完成移动。
谢谢答复!