User Tools

Site Tools


tsm:tsm_replication

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tsm:tsm_replication [2021/01/01 21:25]
127.0.0.1 external edit
tsm:tsm_replication [2022/06/07 23:00] (current)
manu
Line 1: Line 1:
-====== ​TSM node replication ======+====== ​Spectrum Protect ​node replication ======
  
-===== TSM server config for replication =====+===== Spectrum Protect server config for replication v8.1.13+ ===== 
 + 
 +To replicate all nodes except node3: 
 +<cli prompt='>'>​ 
 +server1> q fscounts * 
 +server1> def stgrule repl-2-server2 server2 actiontype=replicate 
 +server1> def substgrule repl-2-server2 repl-2-server2-sub1 node3 actiontype=norepl 
 +server1> q substgrule repl-2-server2 f=d 
 +server1> q stgrule repl-2-server2 
 +server1> start stgrule repl-2-server2 
 +</​cli>​ 
 + 
 +To replicate only specific nodes, or filespaces 
 +<cli prompt='>'>​ 
 +server1> q fscounts * 
 +server1> def stgrule repl-2-server3 server3 actiontype=norepl 
 +server1> def substgrule repl-2-server3 repl-2-server3-sub1 node3 actiontype=repl 
 +server1> def substgrule repl-2-server3 repl-2-server3-sub2 node2 actiontype=repl filespace=/​data2 
 +server1> q substgrule repl-2-server3 f=d 
 +server1> q stgrule repl-2-server3 
 +server1> start stgrule repl-2-server3 
 +</​cli>​ 
 + 
 +===== Repair stgpool container with replication ===== 
 + 
 +<cli prompt='>'>​ 
 +server1> audit container stgpool=container1  
 +server1> q damage container1 
 +server1> repair stgpool container1 server2 
 +</​cli>​ 
 + 
 +Then check activity log for status 
 +<cli prompt='>'>​ 
 +server1> q act 
 +server1> q damage container1 
 +</​cli>​ 
 + 
 + 
 +===== TSM server config for replication ​(previous method) ​=====
  
 On the TSM server, your are able to replicate nodes between 2 TSM server (OS independant,​ use full to migrate another plateform), datas and definition. You can select the data type (archive, backup, active backup...) and also which filespace you want to replicate. It's an IP replication. On the TSM server, your are able to replicate nodes between 2 TSM server (OS independant,​ use full to migrate another plateform), datas and definition. You can select the data type (archive, backup, active backup...) and also which filespace you want to replicate. It's an IP replication.
Line 367: Line 405:
 </​cli>​ </​cli>​
  
 +===== Target bigger than source =====
 +
 +<cli prompt='>'>​
 +Protect: TSM01>q repln DWPR00
 +
 +Node Name           ​Type ​    ​Filespace Name      FSID      Files on      Replication ​         Files on
 +                                                              Server ​    ​Server (1)          Server (1)
 +--------------- ​    ​---- ​    ​--------------- ​    ​---- ​    ​---------- ​    ​--------------- ​    ​----------
 +DWPR00 ​             Bkup     /​adsmorc ​              ​1 ​         1,196     ​TSM02 ​                2,186
 +</​cli>​
 +
 +On source server
 +<cli prompt='>'>​
 +Protect: TSM01>​REPLICATE NODE DWPR00 FORCEREConcile=full
 +</​cli>​
 +
 +On target, wait until replication is finished, and expire
 +<cli prompt='>'>​
 +Protect: TSM01>​expire inv node=DWPR00
 +</​cli>​
 +
 +Now OK
 +<cli prompt='>'>​
 +Protect: TSM01>q repln DWPR00
 +
 +Node Name           ​Type ​    ​Filespace Name      FSID      Files on      Replication ​         Files on
 +                                                              Server ​    ​Server (1)          Server (1)
 +--------------- ​    ​---- ​    ​--------------- ​    ​---- ​    ​---------- ​    ​--------------- ​    ​----------
 +DWPR00 ​             Bkup     /​adsmorc ​              ​1 ​         1,196     ​TSM02 ​                1,196
 +</​cli>​
 +
 +You can also use the following query which should give an empty output
 +  select FSNAME,​TOTFILES_TO_REPLICATE,​TOTFILES_REPLICATED from replicationview where TOTFILES_TO_REPLICATE<>​TOTFILES_REPLATED
  
tsm/tsm_replication.1609532732.txt.gz · Last modified: 2021/01/01 21:25 by 127.0.0.1