取消
顯示結果 
搜尋替代 
您的意思是: 

搬動 tape 的 command

搬動 tape 的 command

HP rp5430 + HP ESL 712e, 我想要用 HP-UX 的 command 搬動 tape from slot to drive, 只知道用 mc -p ......, 但不知道確定用法, 是否可舉例說明
6 回覆

搬動 tape 的 command

Before moving a tape, check which device is loaded first,

# mc -p /dev/rmt/c0t3d1 -r DS

DT_slot_1 EMPTY

ST_slot_1 FULL

ST_slot_2 FULL

ST_slot_3 FULL

ST_slot_4 FULL

ST_slot_5 FULL

ST_slot_6 FULL



For example, move a tape from slot 5 to drive 1

# mc -p /dev/rmt/c0t3d1 -s S5 -d D1



check device again.

# mc -p /dev/rmt/c0t3d1 -r DS



DT_slot_1 FULL

ST_slot_1 FULL

ST_slot_2 FULL

ST_slot_3 FULL

ST_slot_4 FULL

ST_slot_5 EMPTY

ST_slot_6 FULL

搬動 tape 的 command

我是 HP-UX 11.11 的,磁帶機是 DLT 7000 (有兩個 drive),但是不知道 -p 參數指的是磁帶機的 device file 嗎?

# ioscan -nfC tape

Class I H/W Path Driver S/W State H/W Type Description

========================================================================

tape 0 0/0/3/0/0.3.0 stape CLAIMED DEVICE HP C1537A

/dev/rmt/0m /dev/rmt/c2t3d0BESTn

/dev/rmt/0mb /dev/rmt/c2t3d0BESTnb

/dev/rmt/0mn /dev/rmt/c2t3d0DDS

/dev/rmt/0mnb /dev/rmt/c2t3d0DDSb

/dev/rmt/c2t3d0BEST /dev/rmt/c2t3d0DDSn

/dev/rmt/c2t3d0BESTb /dev/rmt/c2t3d0DDSnb

tape 1 0/0/10/0/0.5.0 stape CLAIMED DEVICE QUANTUM DLT7000

/dev/rmt/1m /dev/rmt/c3t5d0BEST

/dev/rmt/1mb /dev/rmt/c3t5d0BESTb

/dev/rmt/1mn /dev/rmt/c3t5d0BESTn

/dev/rmt/1mnb /dev/rmt/c3t5d0BESTnb

tape 2 0/0/11/0/0.5.0 stape CLAIMED DEVICE QUANTUM DLT7000

/dev/rmt/2m /dev/rmt/c4t5d0BEST

/dev/rmt/2mb /dev/rmt/c4t5d0BESTb

/dev/rmt/2mn /dev/rmt/c4t5d0BESTn

/dev/rmt/2mnb /dev/rmt/c4t5d0BESTnb



# mc -p /dev/rmt/1m -r DS

ERROR: 0x5 Illegal Request : 0x2400 Invalid field in command descriptor block



試了其他的 device file 還是都出現上面的錯誤訊息。



這是什麼問題?

搬動 tape 的 command

try this...

#mc -r DS

搬動 tape 的 command

# mc -r DS

ERROR: No such file or directory



還是有錯誤。

搬動 tape 的 command

你的 tape library 有 robot 嗎?

#ioscan -funCautoch

搬動 tape 的 command

#ioscan -funCautoch

Class I H/W Path Driver S/W State H/W Type Description

========================================================================

autoch 0 0/0/10/0/0.6.0 schgr CLAIMED DEVICE HP C5177-7000

/dev/ac/c3t6d0_10a /dev/rac/c3t6d0_10a

/dev/ac/c3t6d0_10b /dev/rac/c3t6d0_10b

/dev/ac/c3t6d0_11a /dev/rac/c3t6d0_11a

/dev/ac/c3t6d0_11b /dev/rac/c3t6d0_11b

/dev/ac/c3t6d0_12a /dev/rac/c3t6d0_12a

/dev/ac/c3t6d0_12b /dev/rac/c3t6d0_12b

/dev/ac/c3t6d0_13a /dev/rac/c3t6d0_13a

/dev/ac/c3t6d0_13b /dev/rac/c3t6d0_13b

/dev/ac/c3t6d0_14a /dev/rac/c3t6d0_14a

/dev/ac/c3t6d0_14b /dev/rac/c3t6d0_14b

/dev/ac/c3t6d0_15a /dev/rac/c3t6d0_15a

/dev/ac/c3t6d0_15b /dev/rac/c3t6d0_15b

/dev/ac/c3t6d0_16a /dev/rac/c3t6d0_16a

/dev/ac/c3t6d0_16b /dev/rac/c3t6d0_16b

/dev/ac/c3t6d0_17a /dev/rac/c3t6d0_17a

/dev/ac/c3t6d0_17b /dev/rac/c3t6d0_17b

/dev/ac/c3t6d0_18a /dev/rac/c3t6d0_18a

/dev/ac/c3t6d0_18b /dev/rac/c3t6d0_18b

/dev/ac/c3t6d0_19a /dev/rac/c3t6d0_19a

/dev/ac/c3t6d0_19b /dev/rac/c3t6d0_19b

/dev/ac/c3t6d0_1a /dev/rac/c3t6d0_1a

/dev/ac/c3t6d0_1b /dev/rac/c3t6d0_1b

/dev/ac/c3t6d0_20a /dev/rac/c3t6d0_20a

/dev/ac/c3t6d0_20b /dev/rac/c3t6d0_20b

/dev/ac/c3t6d0_21a /dev/rac/c3t6d0_21a