mhvtl最新版下载地址(下载源码包):
http://sites.google.com/site/linuxvtl2/
国外的才有1.6,国内的最新为1.5.4
下载下来放在/app/setup/mhvtl目录下
//编译安装mhvtl
useradd vtl
mkdir /opt/mhvtl
mkdir /etc/mhvtl
chown -R vtl:vtl /opt/mhvtl/
chown -R vtl:vtl /etc/mhvtl/
cd /u01/app/mhvtl/mhvtl1.6/kernel/
make && make install
modprobe mhvtl
lsmod |grep mhvtl
cd ..
make && make install
3.验证是否成功
--//检查是否安装成功
ls /etc/mhvtl/
--//启动mhvtl
systemctl enable mhvtl.target
systemctl start mhvtl.target
--//停止mhvtl
systemctl stop mhvtl.target
--//检查磁带虚拟目录
ls /opt/mhvtl/
--//检查虚拟磁带库信息
root@dbserver mhvtl-1.6]# lsscsi -g
[1:0:0:0] cd/dvd NECVMWar VMware IDE CDR10 1.00 /dev/sr0 /dev/sg2
[2:0:0:0] disk VMware, VMware Virtual S 1.0 /dev/sda /dev/sg0
[2:0:1:0] disk VMware, VMware Virtual S 1.0 /dev/sdb /dev/sg1
[3:0:0:0] mediumx STK L700 0106 /dev/sch0 /dev/sg10
[3:0:1:0] tape IBM ULT3580-TD5 0106 /dev/st6 /dev/sg9
[3:0:2:0] tape IBM ULT3580-TD5 0106 /dev/st2 /dev/sg5
[3:0:3:0] tape IBM ULT3580-TD4 0106 /dev/st3 /dev/sg6
[3:0:4:0] tape IBM ULT3580-TD4 0106 /dev/st4 /dev/sg7
[3:0:8:0] mediumx STK L80 0106 /dev/sch1 /dev/sg11
[3:0:9:0] tape STK T10000B 0106 /dev/st0 /dev/sg3
[3:0:10:0] tape STK T10000B 0106 /dev/st7 /dev/sg12
[3:0:11:0] tape STK T10000B 0106 /dev/st1 /dev/sg4
[3:0:12:0] tape STK T10000B 0106 /dev/st5 /dev/sg8
lsscsi -l
mtx -f /dev/sg10 status