TSM在LAN-free備份過程當中的流程控制.html
圖-1 TSM LAN-free 備份拓撲示意圖 node
圖-1給出了TSM LAN-free 備份拓撲示意圖 ,圖-2 給出了一個典型的詳細的client備份流程圖. 這些任務中使用 LAN-free 方式的完成的,用粗的紅箭頭標出;其它的使用LAN方式完成的,則使用黑箭頭標出。你能夠發現, 在整個備份流程中,只有一個任務使用了LAN-free 方式,就是實際傳輸備份數據的時候。全部其餘的任務, 都是和元數據( metadata)相關的, 使用 LAN 方式傳輸. 所以,服務器
根據備份特色的不一樣,在LAN 和SAN 上傳輸數據花費的時間比例也會不一樣。網絡
圖-2 Steps for a LAN-free backup併發
什麼狀況下使用 LAN-free tcp
爲了取得最好的性能, 採用LAN-free備份方式時,應該具有下列幾個因素:性能
1.一個阻塞的LAN 網絡加密
這包括整個網絡阻塞以及在client 和 server之間的任何網絡限制。lua
2. 繁忙的 serverspa
Tivoli Storage Manager server 系統資源是一個因素. 也許已經有許多clients 都在向這個server 作備份操做。
3. 可得到的 SAN 存儲資源
經過SAN直接向tape寫數據比經過LAN要速度快,提供client 系統訪問SAN 存儲資源的可能。
4. 備份數據的類型
由於 LAN-free 路徑是用來傳送真實數據,而不是元數據,一個client 的工做負荷, 當它傳送的元數據時間比例超過傳送真實數據的時間比例,使用LAN-free將會看不到效果。 相反,一個 client工做負荷,當它的大部分時間都是在傳送真實數據,使用LAN-free將會有很好的效果。從這一點來講, 大尺寸的文件更適合使用 LAN-free備份。
5. 支持的操做系統
要實現TSM LAN-free 備份,須要在購買TSM server 和backup-archive client 軟件的基礎上,再購買The Tivoli Storage Manager for SAN(Storage Agent) 模塊,TSM server 和backup-archive client 支持通用的多種平臺,詳細信息能夠查看下列地址:
http://www.ibm.com/software/sysmgmt/products/support/IBMTivoliStorageManager.html
Storage Agent 在 LAN-free 備份中扮演着重要角色. 它是一個精簡版的 Tivoli Storage Manager server(沒有TSM database和recovery log), Storage Agent 目前支持下列操做系統:
_ AIX 5.1, 5.2 and 5.3 (both 32 and 64 bit)
_ HP-UX 11iv1, 11iv2 (both 32 and 64 bit)
_ Solaris 8, 9 (64 bit)
_ Windows 2000, Server 2003
_ Linux IA32: Red Hat Enterprise Linux 3, update 2 or later, SLES 8 sp3 or later, SLES 9
_ Linux on pSeries: SuSE Enterprise Server 8 sp3 or later, SLES 9, Red Hat Enterprise
Linux 3 update 2 or later
_ Linux Power5 iSeries™ and pSeries: Red Hat Enterprise Linux 3 update 2 or later, SLES
9
_ Linux on zSeries®: SuSE Linux Enterprise Server 8 sp3 or later, SLES 9, Red hat
Enterprise Linux 3 update 2 or later
_ Linux 390 (31 bit) Read Hat 3 update 2 or later, SLES 8, sp3 or later, SLES 9
TSM FOR SAN的主要做用有:
1.避免佔用LAN網絡的帶寬(影響其它業務系統的正常使用).
2.減小TSM服務器的負載(備份數據流由Storageagent端處理),以支持更多併發客戶端的鏈接.
操做過程:
1.TSM服務器向client發送策略信息(預先定義的計劃任務),從dsm.opt中確認數據是否走LAN
2.當是LANFREE方式時,由存儲代理程序接收信息,再向庫管理器發送卷安裝的請求.
3.庫管理器將介質安裝位置告知存儲代理程序
4.客戶機上經過存儲代理程序將數據直接寫入目標卷或介質
5.最後存儲代理程序將元數據信息(備份信息)告知TSM服務器,TSM服務器將數據寫入TSM DB中
備註:從TSM 5.3開始,再也不須要在每一客戶端節點上都安裝Storage agent,而能夠經過某一安裝Storage agent的客戶端做爲代理.(但控制信息和備份數據流仍是經過LAN從備份客戶端到達storage agent端)
在客戶端上的配置:1.編輯dsm.sys和dsm.opt文件,添加如下內容: enablelanfree yes LANFREECommmethod TCPip LANFREETCPServeraddress 10.133.129.30 LANFREEtcpport 1500備註:LANFREECommmethod有TCPIP和SHAREDMEM兩個選項,後者用於備份客戶端與Storage agent位於同一主機時(可取得更好的性能),另外LANFREEtcpport和LANFREEshmport分別於TCPIP和SHAREDMEM配套使用.2.編輯dsmsta.opt文件,添加如下內容:DEVCONFIG devconfig.outCOMMmethod TCPIPSERVERNAME TSM_SERVER1備註:其中TSM_SERVER1爲TSM備份服務器的節點名3.用dsmsta setstorageagent配置存儲代理服務器(與服務器端define server配置的名稱對應)dsmsta serstorageserver myname=qbypdb1agent mypassword=abc123 myhladdress=10.133.129.25 servername=TSM_SERVER1 serverpassword=admin hladdress=10.133.129.41 lladdress=1500備註:配置完成後,配置信息將自動寫入devconfig.out,其中password內容已經加密.4.編輯/etc/inittab添加如下內容,以設置自動啓動存儲代理autostgagnt:2:once:/usr/tivoli/tsm/StorageAgent/bin/rc.tsmstgagnt >/dev/console 2>&1 #Start the Tivoli Storage Manager storage agent在服務器端的配置:1.用reg node註冊客戶端節點2.用define server註冊存儲代理服務器,並確認信息define server qbypdb1agent serverpassword=abc123 hladdress=10.133.129.25 lladdress=1500tsm: TSM_SERVER1>q server qbypdb1agentServer Comm. High-level Low-level Days Server Virtual Allow Name Method Address Address Since Password Volume Replacement Last Set Password Access Set -------- ------ ------------- --------- ------ -------- -------- -----------QBYPDB1- TCPIP 10.133.129.25 1500 <1 Yes No No AGENT 3.用define path爲存儲代理服務器定義可用的驅動器設備define path qzzhaj1agent drv1 srct=server destt=dr library=TS3200 autod=yes device=/dev/rmt1define path qzzhaj1agent drv2 srct=server destt=dr library=TS3200 autod=yes device=/dev/rmt0tsm: TSM_SERVER1>q path qbypdb1agentSession established with server TSM_SERVER1: Windows Server Version 5, Release 4, Level 1.2 Server date/time: 04/10/08 10:36:49 Last access: 04/10/08 09:15:53Source Name Source Type Destination Destination On-Line Name Type ----------- ----------- ----------- ----------- -------QBYPDB1AGE- SERVER DRV1 DRIVE Yes NT QBYPDB1AGE- SERVER DRV2 DRIVE Yes NT 驗證LANFREE狀態:1.經過validate lanfree <節點名> <存儲代理服務器名>tsm: TSM_SERVER1>validate lanfree qbypdb qbypdb1agentANR0387I Evaluating node QBYPDB using storage agent QBYPDB1AGENT for LAN-free data movement.Node Storage Operation Mgmt Class Destination LAN-Free Explanation Name Agent Name Name capable? ----- -------- --------- ---------- ------------ --------- --------------------QBYP- QBYPDB1- BACKUP STANDARD ORA_POOL Yes DB AGENT QBYP- QBYPDB1- ARCHIVE STANDARD ORA_POOL Yes DB AGENT ANR1706I Ping for server 'QBYPDB1AGENT' was able to establish a connection.ANR0388I Node QBYPDB using storage agent QBYPDB1AGENT has 2 storage pools capable of LAN-free datamovement and 0 storage pools not capable of LAN-free data movement.2.確認備份數據是否經過LANFREE的方法有:a.在備份過程當中用topas觀察網卡的狀態b.使用TSM備份客戶端發起備份,而後經過彙總信息窗口查看"不依賴LAN的數據字節數"