Symantec Backup Exec配置Tape Library Simulator虛擬磁帶庫

備份軟件大多數會用到磁帶庫介質,Symantec Backup Exec備份軟件提供一個名爲Tape Library Simulator的實用程序將磁盤虛擬爲磁帶庫。另外在Linux下也有其他虛擬帶庫的解決辦法,參考:[Redhat Linux下安裝mhvtl虛擬磁帶庫]

Tape Library Simulator 簡介

Tape Library Simulator (磁帶庫模擬器),一個實用工具,使您可以在裝有 Backup Exec Remote Media Agent for Linux Servers 的計算機上的硬盤或任何掛載捲上創建虛擬設備。所創建的虛擬設備稱爲模擬磁帶庫。

Tape Library Simulator 安裝條件

使用 Tape Library Simulator 實用程序,可以在硬盤上或 Linux 服務器的任何已裝入捲上創建虛擬設備。此虛擬設備模擬 SCSI 磁帶庫。必須在服務器上安裝 Remote Media Agent for Linux Servers。

安裝 Tape Library Simulator

首先在Linux客戶端上安裝“Symantec Backup Exec Remote Agent for Linux/Unix Servers”,安裝方法參考[Redhat Linux上安裝Symantec Backup Exec Remote Agent For Linux Server(VRTSralus)]

[root@rhel5-a tmp]# ./installralus

 安裝“Symantec Backup Exec Remote Media Agent for Linux Servers”,將linux配置爲介質服務器。

[root@rhel5-a tmp]# ./installrmal

創建一個目錄用來保存虛擬帶庫的磁帶文件

[root@rhel5-a ~]# mkdir /vtl
[root@rhel5-a ~]# chmod 777 /vtl

啓動Tape Library Simulator服務,如果VRTSralus已經在運行則需要先將該服務停止。

在VRTSralus服務開啓的情況下啓動Tape Library Simulator服務會有如下報錯:

[root@rhel5-a tmp]# /opt/VRTSralus/bin/mktls

ERROR: Backup Exec is running.  You must unload Backup Exec before using mktls.  Please run "VRTSralus.init stop" at a terminal, and then run the mktls utility.

停止VRTSralus服務

[root@rhel5-a tmp]# /opt/VRTSralus/bin/VRTSralus.init stop
Stopping Symantec Backup Exec Remote Agent ...
Stopping Symantec Backup Exec Remote Agent:                              [  OK  ]

重新啓動Tape Library Simulator服務

[root@rhel5-a tmp]# /opt/VRTSralus/bin/mktls

選擇新建一個虛擬帶庫

                  Symantec Tape Library Simulator Utility
        +-----------------------------------------------------------+
        |                                                           |
        |                                                           |
        | 1. Create a new simulated tape library.                   |
        |                                                           |
        |                                                           |
        |                                                           |
        +-----------------------------------------------------------+

 輸入虛擬磁帶所在目錄及要分配給此庫的插槽數量。

 +----------------------------------------------------------------------------+
 |                                                                            |
 |    Enter the following information to create a simulated tape library:     |
 |                                                                            |
 | Directory path:                                                            |
 | Number of slots:    20       ( 1  - 50 )                                   |
 | Tape capacity:      100      ( gigabytes )                                 |
 |                                                                            |
 |                                                                            |
 +----------------------------------------------------------------------------+

 

完成虛擬帶庫的配置

 +----------------------------------------------------------------------------+
 |                                                                            |
 |                                                                            |
 |            The simulated tape library was successfully created.            |
 |            Please wait while the device drivers are initialized.           |
 |                                                                            |
 |                                                                            |
 |                                                                            |
 |                                            < Press any key to continue >   |
 +----------------------------------------------------------------------------+

 

重新啓動介質服務器

 [root@rhel5-a tmp]# /opt/VRTSralus/bin/VRTSralus.init start
Starting Symantec Backup Exec Remote Agent .....
Starting Symantec Backup Exec Remote Agent:                              [  OK  ]

查看介質目錄

[root@rhel5-a tmp]# ls -l /vtl/
總計 324
-rw-r--r-- 1 root root  4096 01-09 12:07 SMap
-rw-r--r-- 1 root root 32748 01-09 12:06 VL000001.b2d
-rw-r--r-- 1 root root 32748 01-09 12:06 VL000002.b2d
-rw-r--r-- 1 root root 32748 01-09 12:07 VL000003.b2d
-rw-r--r-- 1 root root 32748 01-09 12:07 VL000004.b2d
-rw-r--r-- 1 root root 32748 01-09 12:07 VL000005.b2d
-rw-r--r-- 1 root root 32748 01-09 12:07 VL000006.b2d
-rw-r--r-- 1 root root 32748 01-09 12:07 VL000007.b2d
-rw-r--r-- 1 root root 32748 01-09 12:07 VL000008.b2d
-rw-r--r-- 1 root root 32748 01-09 12:07 VL000009.b2d
-rw-r--r-- 1 root root 32748 01-09 12:07 VL00000a.b2d   

在管理服務器上配置虛擬帶庫

 選擇“添加遠程介質代理存儲”

輸入介質服務器的ip地址及使用的登錄賬戶

重啓BE服務

添加的虛擬磁帶庫在設備池中可以使用了。

Tape Library Simulator注意事項

爲了確保每個介質都有一個唯一名稱,Tape Library Simulator 實用程序爲每個介質都創建一個條形碼標籤。您不能重命名這些條形碼標籤。但是,可以添加唯一介質描述。

模擬磁帶庫可模擬高級智能磁帶 (AIT) 介質類型。此介質類型極少使用,因此有助於區分物理自動化介質庫和模擬磁帶庫。模擬介質還具有 AIT 介質類型標籤。

虛擬介質的大小爲100G,不能更改。

寫入模擬磁帶庫的文件的格式類似於“備份至磁盤”文件的文件格式。但是,不能在模擬磁帶庫和“備份至磁盤”文件夾之間複製或移動文件。

Backup Exec 在“全部設備”設備池中不包括模擬磁帶庫。無法將模擬磁帶庫添加到“全部設備”設備池。可以將模擬磁帶庫添加到其他設備池。

若要使用 Tape Library Simulator 實用程序,Linux 服務器上至少必須有 500 MB 的可用空間。可用空間包括硬盤空間、閃存驅動器和 USB 驅動器。如果沒有足夠的空間,作業將失敗,併發生介質結束錯誤。必須創建可用磁盤空間,或者將作業定向到其他卷,然後再次啓動作業。

模擬磁帶庫並不支持爲物理自動化介質庫提供的所有任務。

在安裝Symantec Backup Exec Remote Agent for Linux or UNIX Servers如果出現如下錯誤是因爲需要libstdc++.so.5 的庫文件

Prerequisite Warning: C++ Compatibility Pack

The installer was unable to determine if the C++ compatibility package for applications using GNU Compiler Collection (GCC) 3.3 is installed on the computer. This package is required for this version of the Symantec Backup Exec Remote Agent for Linux or UNIX Servers. 
Install the latest version of the C++ compatibility pack.

解決辦法

yum install libstdc++.so.5        #RHEL

apt-get install libstdc++5        #Ubantu

本文轉自:http://www.liusuping.com/storage/Symantec-Tape-Library-Simulator.html轉載請註明:

發佈了40 篇原創文章 · 獲贊 29 · 訪問量 22萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章