- 论坛徽章:
- 0
|
本帖最后由 xzc999 于 2010-07-23 23:29 编辑
一兄弟需要,自己正好做了,就给个大致方式
先介绍下平台信息:
Centos 5.4 x64 2.6.18-92.e15,使用的这个兄弟的安装包http://bbs.chinaunix.net/thread-1752845-1-1.html
自己下载
下载完成后解压安装,由于自己的NBU就安装在这个centos上,没有搞iscsi那么复杂,直接安装完毕后,就可以 cat /proc/scsi/scsi看到信息
呵呵,自己偷懒了,不过使用起来蛮方便的
步骤:
1、前提条件
useradd vtl
passwd vtl
mkdir /opt/mhvtl
mkdir /etc/mhvtl
chown -Rf vtl:vtl /opt/mhvtl
chown -Rf vtl:vtl /etc/mhvtl
2、安装
开始安装,进入mhvtl-0.18
make distclean
cd kernel
make
make install
cd ..
make
make install
这样就安装完成了
3、启动关闭服务
/etc/init.d/mhvtl start
/etc/init.d/mhvtl stop
最好这里编辑下/etc/mhvtl/device.conf里面的文件,编辑之前需要关闭mhvtl服务。
这里官方给的是一个
Vendor identification: SPECTRA
Product identification: PYTHON
NBU识别的时候有问题,所以需要改下
这个是我的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 sperated by one (or more) blank lines.
# Each 'record' starts at column 1
Library: 10 CHANNEL: 0 TARGET: 1 LUN: 0
Vendor identification: STK
Product identification: L700
Product revision level: 5500
Unit serial number: XYZZY_10
NAA: 10:22:33:44:ab:cd:ef:00
Drive: 11 CHANNEL: 0 TARGET: 1 LUN: 1
Library ID: 10 Slot: 1
Vendor identification: QUANTUM
Product identification: SDLT600
Product revision level: 5500
Unit serial number: XYZZY_11
NAA: 10:22:33:44:ab:cd:ef:01
VPD: b0 04 00 02 01 00
Drive: 12 CHANNEL: 0 TARGET: 1 LUN: 2
Library ID: 10 Slot: 2
Vendor identification: QUANTUM
Product identification: SDLT600
Product revision level: 5500
Unit serial number: XYZZY_12
NAA: 10:22:33:44:ab:cd:ef:02
VPD: b0 04 00 02 01 00
Drive: 13 CHANNEL: 0 TARGET: 1 LUN: 3
Library ID: 10 Slot: 3
Vendor identification: QUANTUM
Product identification: SDLT600
Product revision level: 5500
Unit serial number: XYZZY_13
NAA: 10:22:33:44:ab:cd:ef:03
VPD: b0 04 00 02 01 00
Drive: 14 CHANNEL: 0 TARGET: 1 LUN: 4
Library ID: 10 Slot: 4
Vendor identification: QUANTUM
Product identification: SDLT600
Product revision level: 5500
Unit serial number: XYZZY_14
NAA: 10:22:33:44:ab:cd:ef:04
VPD: b0 04 00 02 01 00
这个robot drive可以根据自己的需求编写
另外/etc/mhvtl里面有其他的配置信息,感兴趣,模板在安装包里面doc下面有,自己改下。
改完后,启动服务
/etc/init.d/mhvtl start
查看更改后的scsi信息
[root@as5 mhvtl]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: VMware, Model: VMware Virtual S Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 01 Lun: 00
Vendor: IBM Model: ULT3580-TD5 Rev: 550V
Type: Sequential-Access ANSI SCSI revision: 05
Host: scsi1 Channel: 00 Id: 02 Lun: 00
Vendor: IBM Model: ULT3580-TD5 Rev: 550V
Type: Sequential-Access ANSI SCSI revision: 05
Host: scsi1 Channel: 00 Id: 03 Lun: 00
Vendor: IBM Model: ULT3580-TD4 Rev: 550V
Type: Sequential-Access ANSI SCSI revision: 05
Host: scsi1 Channel: 00 Id: 04 Lun: 00
Vendor: IBM Model: ULT3580-TD4 Rev: 550V
Type: Sequential-Access ANSI SCSI revision: 05
Vendor: STK Model: L700 Rev: 550V
Type: Medium Changer ANSI SCSI revision: 05
也可以使用lsscsi查看 lsscsi -l
ok NBU 可以识别,开始测试了,呵呵。
![]() |
|