您好,欢迎访问三七文档
当前位置:首页 > 行业资料 > 其它行业文档 > centos6.5+mhvtl+gui+iscsi-tgt虚拟磁带库的安装与应用
信息等级:仅供内部使用一.Mhvtl+mhvtlgui+iscsi1.安装:yuminstalllsscsimt-stmtxzlib-develsg3_utilszliblzo-develkernel-develkernel-headersgcc接着创建vtl用户:#useraddvtl#passwdvtl#mkdir/opt/mhvtl#mkdir/etc/mhvtl#chown-Rfvtl:vtl/opt/mhvtl#chown-Rfvtl:vtl/etc/mhvtl(/etc/mhvtl为配置文件路径/opt/mhvtl为虚拟带库存储路径)2.编译安装MHVLT#tar-zxvfmhvtl-2013-03-22.tgz[root@centos001tool]#cdmhvtl-1.4[root@centos001mhvtl-1.4]#cdkernel[root@centos001kernel]#make;makeinstall[root@centos001mhvtl-1.4]#make;makeinstall如果未安装lzo和lzo-devel开发环境将收到如下报错:Note:Sincemhvtl-1.3,bothlzoandzlibarerequiredtobuildvtltapeTypicalerror(missinglzodevelpackage)lookslike: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.cvtltape.c:92:25:error:lzo/lzoconf.h:Nosuchfileordirectoryvtltape.c:93:23:error:lzo/lzo1x.h:Nosuchfileordirectoryvtltape.c:Infunction'uncompress_lzo_block'[root@centos001mhvtl-1.4]#servicemhvtlstatusCouldnotlocatelibraryconfigfile:/etc/mhvtl/library_contents.10CreatingadefaultonePleasestopmhvtl&edit/etc/mhvtl/library_contents.10tosuityourrequirementsCouldnotlocatelibraryconfigfile:/etc/mhvtl/library_contents.30CreatingadefaultonePleasestopmhvtl&edit/etc/mhvtl/library_contents.30tosuityourrequirementsUsage:/etc/init.d/mhvtl{start|stop|shutdown}[root@centos001mhvtl-1.4]#servicemhvtlstartvtllibraryprocessPIDis1729vtllibraryprocessPIDis1733查看虚拟带库状态信息[root@centos001mhvtl-1.4]#lsscsi-g信息等级:仅供内部使用[1:0:0:0]cd/dvdNECVMWarVMwareIDECDR101.00/dev/sr0/dev/sg0[2:0:0:0]diskVMware,VMwareVirtualS1.0/dev/sda/dev/sg1[3:0:0:0]mediumxSTKL7000104/dev/sch0/dev/sg10[3:0:1:0]tapeIBMULT3580-TD50104/dev/st0/dev/sg2[3:0:2:0]tapeIBMULT3580-TD50104/dev/st1/dev/sg3[3:0:3:0]tapeIBMULT3580-TD40104/dev/st2/dev/sg4[3:0:4:0]tapeIBMULT3580-TD40104/dev/st3/dev/sg5[3:0:8:0]mediumxSTKL800104/dev/sch1/dev/sg11[3:0:9:0]tapeSTKT10000B0104/dev/st4/dev/sg6[3:0:10:0]tapeSTKT10000B0104/dev/st5/dev/sg7[3:0:11:0]tapeSTKT10000B0104/dev/st6/dev/sg8[3:0:12:0]tapeSTKT10000B0104/dev/st7/dev/sg9[root@centos001mhvtl-1.4]#lsscsi-l[1:0:0:0]cd/dvdNECVMWarVMwareIDECDR101.00/dev/sr0state=runningqueue_depth=1scsi_level=6type=5device_blocked=0timeout=30[2:0:0:0]diskVMware,VMwareVirtualS1.0/dev/sdastate=runningqueue_depth=32scsi_level=3type=0device_blocked=0timeout=30[3:0:0:0]mediumxSTKL7000104/dev/sch0state=runningqueue_depth=32scsi_level=6type=8device_blocked=0timeout=0[3:0:1:0]tapeIBMULT3580-TD50104/dev/st0state=runningqueue_depth=32scsi_level=6type=1device_blocked=0timeout=900[3:0:2:0]tapeIBMULT3580-TD50104/dev/st1state=runningqueue_depth=32scsi_level=6type=1device_blocked=0timeout=900[3:0:3:0]tapeIBMULT3580-TD40104/dev/st2state=runningqueue_depth=32scsi_level=6type=1device_blocked=0timeout=900[3:0:4:0]tapeIBMULT3580-TD40104/dev/st3state=runningqueue_depth=32scsi_level=6type=1device_blocked=0timeout=900[3:0:8:0]mediumxSTKL800104/dev/sch1state=runningqueue_depth=32scsi_level=6type=8device_blocked=0timeout=0[3:0:9:0]tapeSTKT10000B0104/dev/st4state=runningqueue_depth=32scsi_level=0type=1device_blocked=0timeout=900[3:0:10:0]tapeSTKT10000B0104/dev/st5state=runningqueue_depth=32scsi_level=0type=1device_blocked=0timeout=900[3:0:11:0]tapeSTKT10000B0104/dev/st6state=runningqueue_depth=32scsi_level=0type=1device_blocked=0timeout=900[3:0:12:0]tapeSTKT10000B0104/dev/st7state=runningqueue_depth=32scsi_level=0type=1device_blocked=0timeout=900这里的/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=0capacity=500就是指默认容量为500MB。3.简单应用:查看机械手状态:[root@centos001mhvtl-1.4]#mtx-f/dev/sg10statusStorageChanger/dev/sg10:4Drives,43Slots(4Import/Export)DataTransferElement0:EmptyDataTransferElement1:EmptyDataTransferElement2:EmptyDataTransferElement3:EmptyStorageElement1:Full:VolumeTag=E01001L4StorageElement2:Full:VolumeTag=E01002L4StorageElement3:Full:VolumeTag=E01003L4StorageElement4:Full:VolumeTag=E01004L4StorageElement5:Full:VolumeTag=E01005L4StorageElement6:Full:VolumeTag=E01006L4StorageElement7:Full:VolumeTag=E01007L4StorageElement8:Full:VolumeTag=E01008L4StorageElement9:Full:VolumeTag=E01009L4StorageElement10:Full:VolumeTag=E01010L4StorageElement11:Full:VolumeTag=E01011L4StorageElement12:Full:VolumeTag=E01012L4StorageElement13:Full:VolumeTag=E01013L4StorageElement14:Full:VolumeTag=E01014L4StorageElement15:Full:VolumeTag=E01015L4StorageElement16:Full:VolumeTag=E01016L4StorageElement17:Full:VolumeTag=E01017L4StorageElement18:Full:VolumeTag=E01018L4StorageElement19:Full:VolumeTag=E01019L4StorageElement20:Full:VolumeTag=E01020L4StorageElement21:EmptyStorageElement22:Full:VolumeTag=CLN101L4StorageElement23:Full:VolumeTag=CLN102L5StorageElement24:EmptyStorageElement25:EmptyStorageElement26:EmptyStorageElement27:EmptyStorageElement28:EmptyStorageElement29:EmptyStorageElement30:Full:VolumeT
本文标题:centos6.5+mhvtl+gui+iscsi-tgt虚拟磁带库的安装与应用
链接地址:https://www.777doc.com/doc-4863410 .html