centos65+mhvtl+gui+iscsitgt虚拟磁带库的安装与应用剖析Word文件下载.docx
- 文档编号:16298643
- 上传时间:2022-11-22
- 格式:DOCX
- 页数:23
- 大小:151.15KB
centos65+mhvtl+gui+iscsitgt虚拟磁带库的安装与应用剖析Word文件下载.docx
《centos65+mhvtl+gui+iscsitgt虚拟磁带库的安装与应用剖析Word文件下载.docx》由会员分享,可在线阅读,更多相关《centos65+mhvtl+gui+iscsitgt虚拟磁带库的安装与应用剖析Word文件下载.docx(23页珍藏版)》请在冰豆网上搜索。
cc-Wall-Wshadow-g-O2-D_LARGEFILE64_SOURCE
-I../kernel-DMHVTL_VERSION=\"
1.4.0\"
-DMHVTL_DEBUG-DUSR=\"
vtl\"
-DMHVTL_HOME_PATH=\"
/opt/mhvtl\"
-DMHVTL_CONFIG_PATH=\"
/etc/mhvtl\"
-c-ovtltape.ovtltape.c
vtltape.c:
92:
25:
error:
lzo/lzoconf.h:
Nosuchfileordirectory
93:
23:
lzo/lzo1x.h:
Infunction'
uncompress_lzo_block'
[root@centos001mhvtl-1.4]#servicemhvtlstatus
Couldnotlocatelibraryconfigfile:
/etc/mhvtl/library_contents.10
Creatingadefaultone
Pleasestopmhvtl&
edit/etc/mhvtl/library_contents.10tosuityourrequirements
/etc/mhvtl/library_contents.30
edit/etc/mhvtl/library_contents.30tosuityourrequirements
Usage:
/etc/init.d/mhvtl{start|stop|shutdown}
[root@centos001mhvtl-1.4]#servicemhvtlstart
vtllibraryprocessPIDis1729
vtllibraryprocessPIDis1733
查看虚拟带库状态信息
[root@centos001mhvtl-1.4]#lsscsi-g
[1:
0:
0]cd/dvdNECVMWarVMwareIDECDR101.00/dev/sr0/dev/sg0
[2:
0]diskVMware,VMwareVirtualS1.0/dev/sda/dev/sg1
[3:
0]mediumxSTKL7000104/dev/sch0/dev/sg10
1:
0]tapeIBMULT3580-TD50104/dev/st0/dev/sg2
2:
0]tapeIBMULT3580-TD50104/dev/st1/dev/sg3
3:
0]tapeIBMULT3580-TD40104/dev/st2/dev/sg4
4:
0]tapeIBMULT3580-TD40104/dev/st3/dev/sg5
8:
0]mediumxSTKL800104/dev/sch1/dev/sg11
9:
0]tapeSTKT10000B0104/dev/st4/dev/sg6
10:
0]tapeSTKT10000B0104/dev/st5/dev/sg7
11:
0]tapeSTKT10000B0104/dev/st6/dev/sg8
12:
0]tapeSTKT10000B0104/dev/st7/dev/sg9
[root@centos001mhvtl-1.4]#lsscsi-l
0]cd/dvdNECVMWarVMwareIDECDR101.00/dev/sr0
state=runningqueue_depth=1scsi_level=6type=5device_blocked=0timeout=30
0]diskVMware,VMwareVirtualS1.0/dev/sda
state=runningqueue_depth=32scsi_level=3type=0device_blocked=0timeout=30
0]mediumxSTKL7000104/dev/sch0
state=runningqueue_depth=32scsi_level=6type=8device_blocked=0timeout=0
0]tapeIBMULT3580-TD50104/dev/st0
state=runningqueue_depth=32scsi_level=6type=1device_blocked=0timeout=900
0]tapeIBMULT3580-TD50104/dev/st1
0]tapeIBMULT3580-TD40104/dev/st2
0]tapeIBMULT3580-TD40104/dev/st3
0]mediumxSTKL800104/dev/sch1
0]tapeSTKT10000B0104/dev/st4
state=runningqueue_depth=32scsi_level=0type=1device_blocked=0timeout=900
0]tapeSTKT10000B0104/dev/st5
0]tapeSTKT10000B0104/dev/st6
0]tapeSTKT10000B0104/dev/st7
这里的/dev/sg10和/dev/sg11是机械手。
这个默认的容量是500MB,这个可以查看mhvtl的配置文件mhvtl.conf:
[root@centos001mhvtl-1.4]#cat/etc/mhvtl/mhvtl.conf
#Homedirectoryforconfigfile(s)
MHVTL_CONFIG_PATH=/etc/mhvtl
#Defaultmediacapacity(500M)
CAPACITY=500
#Setdefaultverbosity[0|1|2|3]
VERBOSE=1
#Setkernelmoduledebuging[0|1]
VTL_DEBUG=0
capacity=500就是指默认容量为500MB。
3.简单应用:
查看机械手状态:
[root@centos001mhvtl-1.4]#mtx-f/dev/sg10status
StorageChanger/dev/sg10:
4Drives,43Slots(4Import/Export)
DataTransferElement0:
Empty
DataTransferElement1:
DataTransferElement2:
DataTransferElement3:
StorageElement1:
Full:
VolumeTag=E01001L4
StorageElement2:
VolumeTag=E01002L4
StorageElement3:
VolumeTag=E01003L4
StorageElement4:
VolumeTag=E01004L4
StorageElement5:
VolumeTag=E01005L4
StorageElement6:
VolumeTag=E01006L4
StorageElement7:
VolumeTag=E01007L4
StorageElement8:
VolumeTag=E01008L4
StorageElement9:
VolumeTag=E01009L4
StorageElement10:
VolumeTag=E01010L4
StorageElement11:
VolumeTag=E01011L4
StorageElement12:
VolumeTag=E01012L4
StorageElement13:
VolumeTag=E01013L4
StorageElement14:
VolumeTag=E01014L4
StorageElement15:
VolumeTag=E01015L4
StorageElement16:
VolumeTag=E01016L4
StorageElement17:
VolumeTag=E01017L4
StorageElement18:
VolumeTag=E01018L4
StorageElement19:
VolumeTag=E01019L4
StorageElement20:
VolumeTag=E01020L4
StorageElement21:
StorageElement22:
VolumeTag=CLN101L4
StorageElement23:
VolumeTag=CLN102L5
StorageElement24:
StorageElement25:
StorageElement26:
StorageElement27:
StorageElement28:
StorageElement29:
StorageElement30:
VolumeTag=F01030L5
StorageElement31:
VolumeTag=F01031L5
StorageElement32:
VolumeTag=F01032L5
StorageElement33:
VolumeTag=F01033L5
StorageElement34:
VolumeTag=F01034L5
StorageElement35:
VolumeTag=F01035L5
StorageElement36:
VolumeTag=F01036L5
StorageElement37:
VolumeTag=F01037L5
StorageElement38:
VolumeTag=F01038L5
StorageElement39:
VolumeTag=F01039L5
StorageElement40IMPORT/EXPORT:
StorageElement41IMPORT/EXPORT:
StorageElement42IMPORT/EXPORT:
StorageElement43IMPORT/EXPORT:
[root@centos001mhvtl-1.4]#mtx-f/dev/sg11status
StorageChanger/dev/sg11:
4Drives,44Slots(4Import/Export)
VolumeTag=G03001TA
VolumeTag=G03002TA
VolumeTag=G03003TA
VolumeTag=G03004TA
VolumeTag=G03005TA
VolumeTag=G03006TA
VolumeTag=G03007TA
VolumeTag=G03008TA
VolumeTag=G03009TA
VolumeTag=G03010TA
VolumeTag=G03011TA
VolumeTag=G03012TA
VolumeTag=G03013TA
VolumeTag=G03014TA
VolumeTag=G03015TA
VolumeTag=G03016TA
VolumeTag=G03017TA
VolumeTag=G03018TA
VolumeTag=G03019TA
VolumeTag=G03020TA
VolumeTag=G03021TA
VolumeTag=G03022TA
VolumeTag=G03023TA
VolumeTag=G03024TA
VolumeTag=G03025TA
VolumeTag=G03026TA
VolumeTag=G03027TA
VolumeTag=G03028TA
VolumeTag=G03029TA
VolumeTag=G03030TA
VolumeTag=G03031TA
VolumeTag=G03032TA
VolumeTag=G03033TA
VolumeTag=G03034TA
VolumeTag=G03035TA
VolumeTag=G03036TA
VolumeTag=G03037TA
VolumeTag=G03038TA
VolumeTag=G03039TA
StorageElement40:
VolumeTag=CLN303TA
StorageElement44IMPORT/EXPORT:
将磁带从1号槽位装入driver0:
[root@centos001mhvtl-1.4]#mtx-f/dev/sg10load10
sLoadingmediafromStorageElement1intodrive0...done
Full(StorageElement1Loaded):
VolumeTag=E01001L4
查看磁带状态:
[root@centos001mhvtl-1.4]#mt-f/dev/st0status
SCSI2tapedrive:
Filenumber=0,blocknumber=0,partition=0.
Tapeblocksize0bytes.Densitycode0x46(LTO-4).
Softerrorcountsincelaststatus=0
Generalstatusbitson(41010000):
BOTONLINEIM_REP_EN
使用tar命令测试下,能否写入文件:
[root@centos001mhvtl-1.4]#tar-cvvf/dev/st1/boot
tar:
Removingleading`/'
frommembernames
dr-xr-xr-xroot/root02014-09-1116:
58/boot/
-rw-r--r--root/root25196092014-07-2517:
00/boot/System.map-2.6.32-431.20.5.el6.x86_64
drwxr-xr-xroot/root02013-11-1318:
04/boot/efi/
04/boot/efi/EFI/
drwxr-xr-xroot/root02014-07-3014:
55/boot/efi/EFI/redhat/
-rwxr-xr-xroot/root2529902014-07-2520:
08/boot/efi/EFI/redhat/grub.efi
-rw-r--r--root/root1052002014-09-1006:
02/boot/con
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- centos65 mhvtl gui iscsitgt 虚拟 磁带库 安装 应用 剖析
链接地址:https://www.bdocx.com/doc/16298643.html