- 論壇徽章:
- 0
|
本帖最后由 xzc999 于 2010-07-23 23:29 編輯
一兄弟需要,自己正好做了,就給個大致方式
先介紹下平臺信息:
Centos 5.4 x64 2.6.18-92.e15,使用的這個兄弟的安裝包http://72891.cn/thread-1752845-1-1.html
自己下載
下載完成后解壓安裝,由于自己的NBU就安裝在這個centos上,沒有搞iscsi那么復(fù)雜,直接安裝完畢后,就可以 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、啟動關(guān)閉服務(wù)
/etc/init.d/mhvtl start
/etc/init.d/mhvtl stop
最好這里編輯下/etc/mhvtl/device.conf里面的文件,編輯之前需要關(guān)閉mhvtl服務(wù)。
這里官方給的是一個
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可以根據(jù)自己的需求編寫
另外/etc/mhvtl里面有其他的配置信息,感興趣,模板在安裝包里面doc下面有,自己改下。
改完后,啟動服務(wù)
/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 可以識別,開始測試了,呵呵。
![]() |
|