天天看點

虛拟帶庫 Vistor + TSM 安裝 (在家折騰了一個周末)

從星期六的下午開始搞,搞到半夜12:00,還沒有搞定,第二天一爬起來,又搞,搞到下午終于有點眉目了餓,寫下以做紀念:

Step1:

先去cofio 的網站:http://www.cofio.com 點選products, 選擇:vistor virtual Tape library 下載下傳:

要先注冊,在注冊的郵箱有生成的密碼,login 就可以了。

login ---> I agree ---> 選擇左邊導航欄的vistor Downloads --->選擇 vistor (8.5 M) 下載下傳。

下載下傳好了就可以安裝了,記住,每一個download 後的軟體,對方都有一個号碼

是以要記住以下的号碼:機器号。

Step2:

安裝

[[email protected] soft_2011]# ./vs-install

ViStor Virtual Tape Library Installation. Copyright Cofio Software Inc. 2006

Checking for correct installation platform and packages ...

Checking target platform Linux localhost.localdomain 2.6.18-128.el5 #1 SMP Wed Dec 17 11:42:39 EST 2008 i686 i686 i386 GNU/Linux

ViStor is supported on this platform, checking installed packages ...

Packages required for installation were found

This product contains copyright and patented material licensed by

 Bridgeworks Ltd (UK)

Enter library name [Library1]:

TAPE LIBRARIES:

 1.EXABYTE     110

 2.EXABYTE     221

 3.EXABYTE     X80

 4.EXABYTE     X200

 5.STK         9710

 6.STK         9714

 7.STK         9730

 8.STK         9740

 9.OVERLAND    PowerLoader

10.OVERLAND    LoaderXpress

11.OVERLAND    NEO SERIES 2000

12.OVERLAND    NEO SERIES 4100

13.OVERLAND    NEO SERIES 4200

14.SPECTRA     PYTHON SERIES T50

15.SPECTRA     PYTHON SERIES T120

16.QUANTUM     PX502

17.QUANTUM     PX720

18.QUANTUM     Scalar i500

Select tape Library [1-18]: 18 

選擇庫的類型,我選的是昆騰i1500, 大家其他的也可以試試。

Enter number of slots [1-2000]: 32

選擇有多少個錄音帶插槽,我選32

TAPE DRIVES:

 1.IBM               ULT3580-TD2, 3580 LTO 2

 2.IBM               ULT3580-TD3, 3580 LTO 3

 3.IBM               ULTRIUM-TD1, LTO Ultrium 1

 4.IBM               ULTRIUM-TD2, LTO Ultrium 2

 5.IBM               ULTRIUM-TD3, LTO Ultrium 3

 6.CERTANCE          ULTRIUM06242-XXX, Ultrium 1

 7.CERTANCE          ULTRIUM 2, CL 400 - Ultrium 2

 8.CERTANCE          ULTRIUM 3, CL 800 - Ultrium 3

 9.HP                Ultrium 1-SCSI, Ultrium 215e LTO

10.HP                Ultrium 2-SCSI, Ultrium 215e LTO

11.STK               9840

Select tape drive type [1-11]: 10

選擇錄音帶機的類型,我選是hp,有點麻煩,我選ibm的時候,tsm配的時候,認不到。

Enter number of tape drives [1-15]: 4

錄音帶庫中有多少個錄音帶機,我選4

Enter number of media cartridges [1-32]: 4  

提示你,準備放多少個錄音帶到這個庫裡面,我選4

Enter media size [1-10000 GB]: 1GB

提示你準備給每個錄音帶配置設定多少個容量,我選1G,

Barcode prefix format is [0 - 2] characters

Enter media barcode prefix : ad

提示你準備給錄音帶上的條碼取什麼字首名,我寫ad

Enter media location [/usr/cofio/vistor/media]:

LANGUAGES

1.English

2.Korean

3.Chinese

Select GUI language : 1

(注意,這裡一定要選1: english,否則虛拟的機器臂linux 認不到,我就被害苦了,後來多看其他人的文檔才知道的。)

CONNECTION METHOD

1. Direct SCSI Device

2. iSCSI

3. Fibre Channel

Select connection method : 1

LIBRARY:       QUANTUM Scalar i500

TAPE DRIVE:    HP Ultrium 2-SCSI, Ultrium 215e LTO

DRIVE Count:   4

SLOT Count:    32

MEDIA Count:   4

MEDIA Size:    1 GB

MEDIA Home:    /usr/cofio/vistor/media

Gui language:  english

Connection:    DIRECT

Is this information correct ? [y or n]: y

running script /usr/cofio/vistor/src/MakeScript

Installing SCSI driver module ...

Installing ViStor Virtual Tape Library module ...

Created group 'cofio'

Created user 'cofio'

ViStor Software installation has completed successfully

The ViStor web server has been started and to run the

ViStor user interface, direct a web browser to <this machine ip address>:5050

Step3:

更新liecen 的步驟:去網站上下序列号:

---------------------

[[email protected] soft_2011]# cd /usr/cofio/

[[email protected] cofio]# cd vistor/

[[email protected] vistor]# ./vs-license -i

FO-NJNLII-QNM97F-U7744Q-LEX2S9

(注意:以上的這個号碼就是機器碼,下面要用這個網站去哪 更新licence 的序列号)

----------------------

還是去網站的----看到最下面有:product Trial Licenses ----> trial license

點選:Request Trial License

中間頁面有: AIMstor Licenses, 點選它,注意這個東西多點了,會看到有好幾個,

取時間最新的一個,點其他的,取得的号碼,在機器上update liecense ,是過期的。

好了,到production License 頁面,在machine ID 輸入上面得到的機器号,點選:active lience

得到激活碼:ABOBEAF7HLXJVNSK2KXE7L7K94BJG4U8

step4: 去激活license:

------------------------

[[email protected] soft_2011]# cd /usr/cofio/

[[email protected] cofio]# cd vistor/

[[email protected] vistor]# ./vs-license -s 'ABOBEAF7HLXJVNSK2KXE7L7K94BJG4U8'

License updated

[[email protected] vistor]# ./vs-license -d

License type    : Evaluation

Time remaining  : 42 days

Storage capacity: 500GB

[[email protected] vistor]# ./vistor start

Vistor services started successfully

[[email protected] vistor]# ./vistor status

Vistor is running

[[email protected] vistor]#

啟動虛拟帶庫:

# pwd

/usr/cofio/vistor

# ./vs-library --setstate online --libid 1

Library id '1' started successfully

-------------------------------

很重要的一點,就是有很多包要裝上:

否則在安裝的過程中會報錯,相關的網頁:

一下的包在CD光牒了都有:

compat-libstdc++-33-3.2.3-61.i386.rpm 是為了解決libstdc++.so.5 那個安裝問題的包

-rw-r--r-- 1 root  root   612603 May 21 17:27 glibc-headers-2.5-34.i386.rpm

-rw-r--r-- 1 root  root  2088434 May 21 17:27 glibc-devel-2.5-34.i386.rpm

-rw-r--r-- 1 root  root   933554 May 21 17:28 kernel-headers-2.6.18-128.el5.i386.rpm

-rw-r--r-- 1 root  root  5121468 May 21 17:28 kernel-devel-2.6.18-128.el5.i686.rpm

-rw-r--r-- 1 root  root 15655375 May 21 17:28 kernel-2.6.18-128.el5.i686.rpm

-rw-r--r-- 1 root  root   371781 May 21 17:28 libstdc++-4.1.2-44.el5.i386.rpm

-rw-r--r-- 1 root  root  5478116 May 21 17:29 gcc-4.1.2-44.el5.i386.rpm

-rw-r--r-- 1 root  root    68447 May 21 17:29 libgomp-4.3.2-7.el5.i386.rpm

-rw-r--r-- 1 root  root   879640 May 21 17:29 libgnome-2.16.0-6.el5.i386.rpm

-rw-r--r-- 1 root  root   237109 May 21 17:29 compat-libstdc++-33-3.2.3-61.i386.rpm

安裝好以後,檢查一下系統發現了虛拟帶庫,有機械手和驅動器:

[[email protected] ~]# 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: 00 Lun: 00

  Vendor: QUANTUM  Model: Scalar i500      Rev: 1.00

  Type:   Medium Changer                   ANSI SCSI revision: 03

Host: scsi1 Channel: 00 Id: 01 Lun: 00

  Vendor: HP       Model: Ultrium 2-SCSI   Rev: 1.00

  Type:   Sequential-Access                ANSI SCSI revision: 03

Host: scsi1 Channel: 00 Id: 02 Lun: 00

  Vendor: HP       Model: Ultrium 2-SCSI   Rev: 1.00

  Type:   Sequential-Access                ANSI SCSI revision: 03

Host: scsi1 Channel: 00 Id: 03 Lun: 00

  Vendor: HP       Model: Ultrium 2-SCSI   Rev: 1.00

  Type:   Sequential-Access                ANSI SCSI revision: 03

Host: scsi1 Channel: 00 Id: 04 Lun: 00

  Vendor: HP       Model: Ultrium 2-SCSI   Rev: 1.00

  Type:   Sequential-Access                ANSI SCSI revision: 03

step5:

安裝tsm:

軟體包下載下傳:

ftp://ftp.software.ibm.com/storage/tivoli-storage-management/maintenance/

下載下傳的包:

-rw-r--r-- 1 root  root 95929449 May 21 18:00 5.5.1.0-TIV-TSMSRV-LinuxX86.tar.bz2

-rw-r--r-- 1 root  root 67112960 May 21 19:19 5.5.1.0-TIV-TSMBAC-LinuxX86.tar

tar xjf 5.5.1.0-TIV-TSMSRV-LinuxX86.tar.bz2

cd i686

rpm -ivh TIVsm-server-5.5.1-0.i386.rpm

rpm -ivh TIVsm-tsmscsi-5.5.1-0.i386.rpm

安裝用戶端:

tar -xvf 5.5.1.0-TIV-TSMBAC-LinuxX86.tar

rpm -ivh TIVsm-API.i386.rpm

rpm -ivh TIVsm-BA.i386.rpm

Step 6:

配置 tsm 伺服器,

cd /opt/tivoli/tsm/devices/bin

./autoconf

[[email protected] soft_2011]# ls -l /dev/tsmscsi

total 8

lrwxrwxrwx 1 root root   8 May 21 18:39 lb0 -> /dev/sg1

-rw-r--r-- 1 root root 175 May 21 18:39 lbinfo

lrwxrwxrwx 1 root root   8 May 21 18:39 mt0 -> /dev/sg2

lrwxrwxrwx 1 root root   8 May 21 18:39 mt1 -> /dev/sg3

lrwxrwxrwx 1 root root   8 May 21 18:39 mt2 -> /dev/sg4

lrwxrwxrwx 1 root root   8 May 21 18:39 mt3 -> /dev/sg5

-rw-r--r-- 1 root root 436 May 21 18:39 mtinfo

TSM 安裝驗證;

tsm: server> q status

tsm: server> q stgpool

tsm: server> q db

tsm: server> q log

tsm: server> q option

...

對着文檔做了一篇,發現沒有備份成功:

TSM:TSM_SVR1>

q libv

ANR2017I Administrator SERVER_CONSOLE issued command: QUERY LIBVOLUME

Library Name     Volume Name     Status               Owner          Last Use      Home        Device

                                                                                   Element     Type 

------------     -----------     ----------------     ----------     ---------     -------     ------

VTL01            AD0001          Private                                           1                

VTL01            AD0002          Private                                           2                

VTL01            AD0003          Private                                           3                

VTL01            AD0004          Private                                           4                

TSM:TSM_SVR1>

看了原來我的錄音帶的status ,還有 voume name 和文檔定義不一樣,馬上重新做一遍。

我重新檢入錄音帶:

TSM:TSM_SVR1> label libvolume vtl01 search=yes labels=barcode checkin=scratch overwrite=yes

可是錄音帶的status 還是:private

怎麼才能變成 scratch 呢?思考中...

還有一個問題:

想看看錄音帶的狀态:

顯示錄音帶庫中的所有錄音帶:

TSM:TSM_SVR1>

q libv

ANR2017I Administrator SERVER_CONSOLE issued command: QUERY LIBVOLUME

Library Name     Volume Name     Status               Owner          Last Use      Home        Device

                                                                                   Element     Type 

------------     -----------     ----------------     ----------     ---------     -------     ------

VTL01            AD0001          Private                                           1                

VTL01            AD0002          Private                                           2                

VTL01            AD0003          Private                                           3                

VTL01            AD0004          Private                                           4  

顯示目前已被使用的錄音帶:

TSM:TSM_SVR1>

q v

ANR2017I Administrator SERVER_CONSOLE issued command: QUERY VOLUME

Volume Name                  Storage         Device         Estimated       Pct      Volume

                             Pool Name       Class Name      Capacity      Util      Status

------------------------     -----------     ----------     ---------     -----     --------

/opt/tivoli/tsm/server/-     ARCHIVEPOOL     DISK               5.0 M       0.0     On-Line

 bin/archive.dsm                                                                           

/opt/tivoli/tsm/server/-     BACKUPPOOL      DISK              10.0 M       0.0     On-Line

 bin/backup.dsm                                                                            

TT0001                       BA_TAPE_PO-     LTO2               0.0 M       0.0      Empty 

                              OL                                                           

TT0002                       BA_TAPE_PO-     LTO2               0.0 M       0.0      Empty 

                              OL                                                           

TT0003                       AR_TAPE_PO-     LTO2               0.0 M       0.0      Empty 

                              OL                                                           

TT0004                       AR_TAPE_PO-     LTO2               0.0 M       0.0      Empty 

對不上啊,

下個blog 繼續研究。。。

繼續閱讀