You are here: GSI Wiki>Linux Web>TsmBackup (revision 39)EditAttach

Restore my files with TSM

We run Tivoli Storage Manager (TSM) to backup our user home FileSystems to TapeStorage. The backup policy is summarized at https://www.gsi.de/en/work/organisation/geschaeftsbereiche/finanzen_einkauf_bit/bit/service/backup/policy.htm

Restore of files from the /u/ filesystem

TSM GUI

Attention: If GUI option is not running because of JAVA problems, please, use command line (further down) or open ticket at storage-service@gsi.de

  • Login to machine lxdv68: ssh -X lxdv68
  • Find which fileserver (lxfsu11 to lxfsu20) is serving your home directory: df | grep lxfsu
  • Start a GUI session on the specific fileserver by typing dsm -server=lxfsui (ifrom 11 to 20).
    • Choose the restore button (Restore files and directories to your system).
    • The Restore window will appear.
    • To retrieve deleted files or older versions of a file (inactive) you'll have to choose View -> Display active/inactive files from the menu first.
  • Check the files you want to restore and click Restore
    • You'll be asked for the restore destination
    • Restore to the original location will not work!
      Check Restore partial path instead and select the parent directory of the lost files/dirs (/i_j/your_account/[some_subdir]) as the destination directory ( Following location) to restore the files to their original location.
  • Click Restore and wait patiently wink

TSM Command Line Interface

Experienced users may also use the TSM command line interface dsmc:

  • login as user on lxdv68 (only on this machine !)

  • The basic syntax is dsmc restore -servername=lxfsuXX options file-specification _destinationfilespace__ (with _XX =11-20), e.g.:
    • Restoring a single file:
      dsmc restore -servername=lxfsu13 /srv/nfs/u13_1/dvheta/filename /u/dvheta/
    • Restoring a whole directory tree (including all files in all subdirs) to a different directory:
      dsmc restore -servername=lxfsu13 -subdir=yes "/srv/nfs/u13_1/dvheta/directory/*" /tmp/restore/
    • Restoring files which were deleted or restoring older versions of files:
      dsmc restore -servername=lxfsu13 -subdir=yes -inactive=yes -pick /srv/nfs/u03_1/dvheta/filename /u/dvheta/
      you get then the versions of your file, marked with A (Active) or I (Inactive) for older versions. You choose the version by typing the key number of the file and then typing "o" for ok.
TSM Scrollable PICK Window - Restore

     #    Backup Date/Time        File Size A/I  File
        --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
     1. | 17.03.2012 01:10:53      20,00 KB  A   /srv/nfs/u09_1/matthias
     2. | 17.03.2012 13:07:11         52  B  A   /srv/nfs/u09_1/matthias/adsm
     3. | 11.09.2012 14:06:33       5,78 KB  A   /srv/nfs/u09_1/matthias/emil.mac
     4. | 17.03.2012 13:07:14       5,78 KB  I   /srv/nfs/u09_1/matthias/emil.mac
     5. | 17.03.2012 13:07:28       8,00 KB  A   /srv/nfs/u09_1/matthias/adsm/macros
     6. | 17.03.2012 13:07:28       1,15 KB  A   /srv/nfs/u09_1/matthias/adsm/macros/emil.mac

<U>=Up  <D>=Down  <T>=Top  <B>=Bottom  <R#>=Right  <L#>=Left
<G#>=Goto Line #  <#>=Toggle Entry  <+>=Select All  <->=Deselect All
<#:#+>=Select A Range <#:#->=Deselect A Range  <O>=Ok  <C>=Cancel
pick> 4

TSM Scrollable PICK Window - Restore

     #    Backup Date/Time        File Size A/I  File
        --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
     1. | 17.03.2012 01:10:53      20,00 KB  A   /srv/nfs/u09_1/matthias
     2. | 17.03.2012 13:07:11         52  B  A   /srv/nfs/u09_1/matthias/adsm
     3. | 11.09.2012 14:06:33       5,78 KB  A   /srv/nfs/u09_1/matthias/emil.mac
x    4. | 17.03.2012 13:07:14       5,78 KB  I   /srv/nfs/u09_1/matthias/emil.mac
     5. | 17.03.2012 13:07:28       8,00 KB  A   /srv/nfs/u09_1/matthias/adsm/macros
     6. | 17.03.2012 13:07:28       1,15 KB  A   /srv/nfs/u09_1/matthias/adsm/macros/emil.mac

How to archive (and retrieve !) files on Linux

  • login as user on lxdv68 (only on this machine !)

  • Next check on which fileserver your home resides: df | grep lxfsu.
lxfsu19:/srv/nfs/u09_1/matthias
                     419225600 252320488 166905112  61% /u/matthias

  • Now enter TSM client on correct server:
dsmc -server=lxfsu19 

  • Archive example:
archive /tmp/matthias/*.JPG

Archive function invoked.

Directory-->               4.096 /tmp/matthias [Sent]      
Normal File-->         4.848.059 /tmp/matthias/CIMG0285.JPG [Sent]      
Normal File-->         3.340.857 /tmp/matthias/CIMG0286.JPG [Sent]      
Normal File-->         3.330.268 /tmp/matthias/CIMG0288.JPG [Sent]      
Normal File-->         5.130.990 /tmp/matthias/CIMG0289.JPG [Sent]      
Normal File-->         4.784.934 /tmp/matthias/CIMG0290.JPG [Sent]      
Normal File-->         4.558.647 /tmp/matthias/CIMG0291.JPG [Sent]      
Normal File-->         3.795.396 /tmp/matthias/CIMG0292.JPG [Sent]      
Normal File-->         4.546.286 /tmp/matthias/CIMG0293.JPG [Sent]      
Normal File-->         2.492.538 /tmp/matthias/CIMG0294.JPG [Sent]      
Normal File-->         3.298.909 /tmp/matthias/CIMG0295.JPG [Sent]      
Archive processing of '/tmp/matthias/*.JPG' finished without failure.

  • Example to get data back with retrieve command (after delete of original data):
tsm> retrieve /tmp/matthias/*
Retrieve function invoked.

Retrieving       4.848.059 /tmp/matthias/CIMG0285.JPG [Done]      
Retrieving       3.340.857 /tmp/matthias/CIMG0286.JPG [Done]      
Retrieving       3.330.268 /tmp/matthias/CIMG0288.JPG [Done]      
Retrieving       5.130.990 /tmp/matthias/CIMG0289.JPG [Done]      
Retrieving       4.784.934 /tmp/matthias/CIMG0290.JPG [Done]      
Retrieving       4.558.647 /tmp/matthias/CIMG0291.JPG [Done]      
Retrieving       3.795.396 /tmp/matthias/CIMG0292.JPG [Done]      
Retrieving       4.546.286 /tmp/matthias/CIMG0293.JPG [Done]      
Retrieving       2.492.538 /tmp/matthias/CIMG0294.JPG [Done]      
Retrieving       3.298.909 /tmp/matthias/CIMG0295.JPG [Done]      

Retrieve processing finished.

Special considerations for user initiated backups and archives

  • On linuxtsm1 a proxy configuration is installed:
q proxy

Target Node         Agent Node                                   
---------------     ---------------------------------------------
LXTSM               LXFSU02 LXFSU01 LXFSU03 LXFSU04 LXFSU05      
                     LXFSU06 LXFSU07 LXFSU08 LXFSU09 LXFSU10     
                     LXFSU

On lxi045 this feature is installed, i.e. backups and archives from this node are stored under the nodename LXTSM.

More special considerations for user initiated backups and archives

Old archive files (archive before 2010) are visible on LXI052, if you specify:
dsmc -server=linuxtsm2
     ...
tsm> q file
  #     Last Incr Date      Type    File Space Name
---     --------------      ----    ---------------
  1   00.00.0   00:00:00   NFS     /SAT/s      
  2   00.00.0   00:00:00   NFS     /d/fopi01   
  3   00.00.0   00:00:00   NFS     /d/fopi02   
  4   00.00.0   00:00:00   NFS     /d/fopi03   
  5   00.00.0   00:00:00   NFS     /d/fopi04   
  6   00.00.0   00:00:00   NFS     /d/fopi05   
  7   00.00.0   00:00:00   NFS     /d/fopi06   
  8   00.00.0   00:00:00   NFS     /d/fopi07   
  9   00.00.0   00:00:00   NFS     /d/fopi13   
 10   00.00.0   00:00:00   NFS     /d/fopi14   
 11   00.00.0   00:00:00   NFS     /d/kp1      
 12   00.00.0   00:00:00   NFS     /d/rz       
 13   00.00.0   00:00:00   NFS     /lynx/Lynx  
 14   00.00.0   00:00:00   NFS     /misc/christo
 15   00.00.0   00:00:00   NFS     /misc/fopi  
 16   00.00.0   00:00:00   NFS     /misc/hadaq 
 17   00.00.0   00:00:00   NFS     /misc/leifels
 18   00.00.0   00:00:00   NFS     /misc/nh    
 19   00.00.0   00:00:00   NFS     /net/home12 
 20   00.00.0   00:00:00   NFS     /net/home4  
 21   00.00.0   00:00:00   NFS     /u/edmar    
 22   00.00.0   00:00:00   NFS     /u/fopi     
 23   00.00.0   00:00:00   NFS     /u/fopiuser 
 24   00.00.0   00:00:00   NFS     /u/leifels  
 25   00.00.0   00:00:00   NFS     /u/merschm  
 26   00.00.0   00:00:00   NFS     /u/somervil

-- ChristopherHuhn, MatthiasFeyerabend -- 2005 - 2012
Edit | Attach | Print version |  PDF | History: r42 | r40 < r39 < r38 < r37 | Backlinks | View wiki text | Edit WikiText | More topic actions...
Topic revision: r39 - 2017-08-17, SergeiSedykh