HP-UX
1753329 회원
4973 온라인
108792 솔루션
새 메시지

mc (Media Changer) 사용법 부탁합니다.

 
조현용
비정기 기여자

mc (Media Changer) 사용법 부탁합니다.

백업 엔지니어입니다.
가끔 Library 자체 Drive Test를 하는데...쉽지가 않습니다. MC Command 사용법 알려주셨으면 합니다.
선배님들의 많은 조언 부탁드립니다.
고맙습니다.
3 응답 3
Joseph
초등학생

mc (Media Changer) 사용법 부탁합니다.

Hi,

I have found the following useful info from itrc.hp.com.

*********************************************

You need to tell it the address of the changer:
mc -r DS -p /dev/rac/c44t0d1
or for multiple commands set the environment variable LIBRARY before calling mc:

export LIBRARY=/dev/rac/c44t0d1

To move media from an embedded drive to slot 5 and then move media from slot 2 to an embedded drive.
mc -s D1 -d S5 -s S2 -d D1

To check if a move from a Data Transfer element to a Storage element is possible.
mc -c DS

****************************************

Cheers,
TK in Brisbane.
김병수
본과생

mc (Media Changer) 사용법 부탁합니다.


# ioscan -funC autoch
===================================================================
autoch 15 2/3/0.6.0 schgr CLAIMED DEVICE HP C5177-4000
/dev/rac/c4t5d0


# mc -p /dev/rac/c4t5d0 -r DS ===> Library 의 inventory 상태확인
DT_slot_1 FULL
ST_slot_1 FULL
ST_slot_2 EMPTY
ST_slot_3 FULL
ST_slot_4 FULL
ST_slot_5 FULL
ST_slot_6 FULL
ST_slot_7 FULL
ST_slot_8 FULL
# mc -p /dev/rac/c4t5d0 -s D1 -d S2

#
# mc -p /dev/rac/c4t5d0 -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
ST_slot_7 FULL
ST_slot_8 FULL

# mc -p /dev/rac/c4t5d0 -s S2 -d D1
# mc -p /dev/rac/c4t5d0 -r DS
DT_slot_1 FULL
ST_slot_1 FULL
ST_slot_2 EMPTY
ST_slot_3 FULL
ST_slot_4 FULL
ST_slot_5 FULL
ST_slot_6 FULL
ST_slot_7 FULL
ST_slot_8 FULL
#


<< uma tool 사용하기 >>

1.1 uma command로 Library 장비 제어

root:/opt/omni/lbin>./uma -ioctl /dev/rac/c12t6d0

*** PROGRAM: UMA VERSION: HP OpenView OmniBack II A.03.50

*** Copyright (C) 1996 Hewlett-Packard Company
*** License is restricted for use with licensed
*** HP OpenView OmniBack II products.

/dev/rac/c12t6d0>


/dev/rac/c12t6d0> help
Commands:
inq read SCSI inquiry data
res reserve ioctl device
rel release ioctl device
init init element status
addr read element addresses
offl put drive off-line
sense read sense data
modesense read mode sense data
pos position element
move move element
stat {} read element status
test test unit ready
doorlock locking or unlocking library door
bye, exit, quit terminate program execution


1.2 Library 현재 상태 보기

/dev/rac/c12t6d0> stat
Element Status (T=Transport, X=Im/Export, D=Drive, S=Storage):
0 T1 Empty "" ""

20 X1 Full "" ""

1 D1 Empty "" ""
2 D2 Empty "" ""
3 D3 Empty "" ""
4 D4 Empty "" ""

31 S1 Full "" ""
32 S2 Full "" ""
33 S3 Full "" ""
34 S4 Full "" ""
35 S5 Full "" ""
36 S6 Full "" ""
37 S7 Full "" ""
38 S8 Full "" ""
39 S9 Full "" ""

/dev/rac/c12t6d0>


5. Library안에 있는 drive에 Tape를 Slot 으로 이동하려면..

/dev/rac/c12t6d0 > move d1 s1

이상입니다..
조현용
비정기 기여자

mc (Media Changer) 사용법 부탁합니다.

큰 도움 고맙습니다.^^*