Quantcast

mhvtl simple usage

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

mhvtl simple usage

redliquid
install mhvtl
yum -y install gcc make kernel-devel rpm-build lzo lzo-devel lzo-minilzo perl sg_utils mt-st mtx libaio libXp libXt kernel lsscsi zlib

device.conf:

VERSION: 5

# VPD page format:
# <page #> <Length> <x> <x+1>... <x+n>
# NAA format is an 8 hex byte value seperated by ':'
# Note: NAA is part of inquiry VPD 0x83
#
# Each 'record' is separated by one (or more) blank lines.
# Each 'record' starts at column 1
# Serial num max len is 10.
# Compression: factor X enabled 0|1
#     Where X is zlib compression factor        1 = Fastest compression
#                                               9 = Best compression
#     enabled 0 == off, 1 == on
#
# fifo: /var/tmp/mhvtl
# If enabled, data must be read from fifo, otherwise daemon will block
# trying to write.
# e.g. cat /var/tmp/mhvtl (in another terminal)

Library: 180 CHANNEL: 11 TARGET: 00 LUN: 00
 Vendor identification: HP
 Product identification: EML E-Series
 Product revision level: 1068
 Unit serial number: 80000180
 NAA: 180:11:22:33:ab:11:00:00
 Home directory: /vtl_storage/180
 Backoff: 400

Drive: 181 CHANNEL: 11 TARGET: 00 LUN: 01
 Library ID: 180 Slot: 01
 Vendor identification: HP
 Product identification: Ultrium 4-SCSI
 Product revision level: N11G
 Unit serial number: 80000181
 NAA: 180:11:22:33:ab:11:00:01
 Compression: factor 1 enabled 1
 Compression type: lzo
 Backoff: 400

Drive: 182 CHANNEL: 11 TARGET: 00 LUN: 2
 Library ID: 180 Slot: 2
 Vendor identification: HP
 Product identification: Ultrium 4-SCSI
 Product revision level: N11G
 Unit serial number: 80000182
 NAA: 180:11:22:33:ab:11:00:2
 Compression: factor 1 enabled 1
 Compression type: lzo
 Backoff: 400

Drive: 183 CHANNEL: 11 TARGET: 00 LUN: 3
 Library ID: 180 Slot: 3
 Vendor identification: HP
 Product identification: Ultrium 4-SCSI
 Product revision level: N11G
 Unit serial number: 80000183
 NAA: 180:11:22:33:ab:11:00:3
 Compression: factor 1 enabled 1
 Compression type: lzo
 Backoff: 400

Drive: 184 CHANNEL: 11 TARGET: 00 LUN: 4
 Library ID: 180 Slot: 4
 Vendor identification: HP
 Product identification: Ultrium 4-SCSI
 Product revision level: N11G
 Unit serial number: 80000184
 NAA: 180:11:22:33:ab:11:00:4
 Compression: factor 1 enabled 1
 Compression type: lzo
 Backoff: 400

Drive: 185 CHANNEL: 11 TARGET: 00 LUN: 5
 Library ID: 180 Slot: 5
 Vendor identification: HP
 Product identification: Ultrium 4-SCSI
 Product revision level: N11G
 Unit serial number: 80000185
 NAA: 180:11:22:33:ab:11:00:5
 Compression: factor 1 enabled 1
 Compression type: lzo
 Backoff: 400

Drive: 186 CHANNEL: 11 TARGET: 00 LUN: 6
 Library ID: 180 Slot: 6
 Vendor identification: HP
 Product identification: Ultrium 4-SCSI
 Product revision level: N11G
 Unit serial number: 80000186
 NAA: 180:11:22:33:ab:11:00:6
 Compression: factor 1 enabled 1
 Compression type: lzo
 Backoff: 400

library_contents.180
 
Drive1:
Drive2:
Drive3:
Drive4:
Drive5:
Drive6:
 
Picker 1:
 
MAP 1:
MAP 2:
MAP 3:
MAP 4:
MAP 5:
MAP 6:
 
Slot 1: H00001L4
Slot 2: H00002L4
Slot 3: H00003L4
Slot 4: H00004L4
Slot 5: H00005L4
Slot 6: H00006L4
Slot 7: H00007L4
Slot 8: H00008L4
Slot 9: H00009L4
Slot 10: H00010L4
Slot 11: H00011L4
Slot 12: H00012L4
Slot 13: H00013L4
Slot 14: H00014L4
Slot 15: H00015L4
Slot 16: H00016L4
Slot 17: H00017L4
Slot 18: H00018L4
Slot 19: H00019L4
Slot 20: H00020L4
Slot 21: H00021L4
Slot 22: H00022L4
Slot 23: H00023L4
Slot 24: H00024L4
Slot 25: H00025L4
Slot 26: H00026L4
Slot 27: H00027L4
Slot 28: H00028L4
Slot 29: H00029L4
Slot 30: H00030L4
Slot 31: H00031L4
Slot 32: H00032L4
Slot 33: H00033L4
Slot 34: H00034L4
Slot 35: H00035L4
Slot 36: H00036L4
Slot 37: H00037L4
Slot 38: H00038L4
Slot 39: H00039L4
Slot 40: H00040L4
Slot 41: H00041L4
Slot 42: H00042L4
Slot 43: H00043L4
Slot 44: H00044L4
Slot 45: H00045L4
Slot 46: H00046L4
Slot 47: H00047L4
Slot 48: H00048L4
Slot 49: H00049L4
Slot 50: H00050L4
Slot 51: H00051L4
Slot 52: H00052L4
Slot 53: H00053L4
Slot 54: H00054L4
Slot 55: H00055L4
Slot 56: H00056L4
Slot 57: H00057L4
Slot 58: H00058L4
Slot 59: H00059L4
Slot 60: H00060L4
Slot 61: H00061L4
Slot 62: H00062L4
Slot 63: H00063L4
Slot 64: H00064L4
Slot 65: H00065L4
Slot 66: H00066L4
Slot 67: H00067L4
Slot 68: H00068L4
Slot 69: H00069L4
Slot 70: H00070L4
Slot 71: H00071L4
Slot 72: H00072L4
Slot 73: H00073L4
Slot 74: H00074L4
Slot 75: H00075L4
Slot 76: H00076L4
Slot 77: H00077L4
Slot 78: H00078L4
Slot 79: H00079L4
Slot 80: H00080L4
Slot 81: H00081L4
Slot 82: H00082L4
Slot 83: H00083L4
Slot 84: H00084L4
Slot 85: H00085L4
Slot 86: H00086L4
Slot 87: H00087L4
Slot 88: H00088L4
Slot 89: H00089L4
Slot 90: H00090L4
Slot 91: H00091L4
Slot 92: H00092L4
Slot 93: H00093L4
Slot 94: H00094L4
Slot 95: H00095L4
Slot 96: H00096L4
Slot 97: H00097L4
Slot 98: H00098L4
Slot 99: H00099L4

start mhvtl
service mhvtl start

stop mhvtl
service mhvtl stop

list tape device
lsscsi -g
the type mediumx is robotic,tape is drive

list cartridge
mtx -f /dev/sg9 status
/dev/sg9 is robotic device file

test VTL:
 load cartridge
 mtx -f /dev/sg9 load 94 0
 94 is cartridge slot,0 is drive 1 slot

 unload cartridge
 mtx -f /dev/sg9 unload 94 0

inventory VTL
mtx -f /dev/sg9 inventory  

export tape device like as NFS for simulater client LAN free backup

server:
install scsi-target-utils-1.0.24-10.el6.x86_64 package
service tgtd start
tgtadm --lld iscsi --mode target --op new --tid=1 -T E-Series (remember this name)
tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 --bstype=sg --device-type=pt -b /dev/sg9
tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 2 --bstype=sg --device-type=pt -b /dev/sg3
tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 3 --bstype=sg --device-type=pt -b /dev/sg4
tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 4 --bstype=sg --device-type=pt -b /dev/sg5
tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 5 --bstype=sg --device-type=pt -b /dev/sg6  
tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 6 --bstype=sg --device-type=pt -b /dev/sg7  
tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 7 --bstype=sg --device-type=pt -b /dev/sg8  

export to ALL client host
tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL        
export to specific host
tgtadm --lld iscsi --op bind --mode target --tid 1 -I xxx.xxx.xxx.xxx (IP address  )

client:
service iscsi start
service iscsid start

discovery server device
iscsiadm -m discovery -t st -p xxx.xxx.xxx.xxx (service IP)

login server device
iscsiadm -m node  -T E-Series -p xxx.xxx.xxx.xxx -l

logoff server device
iscsiadm -m node  -T E-Series -p xxx.xxx.xxx.xxx -u
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mhvtl simple usage

redliquid
i wish i can help rookie
Loading...