Backup services


Configure mksysb backup

/etc/exclude.rootvg lists filesystems not to be backed up, for example:
^./u/
^./nfs/
^./usr/lpp/LoadL/  # ATTENTION: remove this entry for the loadl host (currently biops5z)
^./slocal/
^./scratch/
^./data.local
^./scratch.local
^./datalxg0110
When using
smit[ty] - Backup the system
toggle the appropriate switch.
Note, however, that a tape "boot record" must be smaller than about 24k 512byte-blocks in order to allow booting from that tape. Prior to backup, boot records can be shrinked by removing unnecessary driver software (ATM adapters, unused GXTxxxx adapters, etc.).
Note further, that backups from mirrored rootvgs can only be restored (with reasonable effort) to target systems which are mirrored as well, i.e. have enough disks. At restore time, all target disks which are necessary to restore the mirrored rootvg must be selected.

Configure the ADSM/TSM backup client (GSI only)

  1. the machine name must be known to the TSM server (M.Feyerabend@gsi.de)
  2. /usr/tivoli/tsm/client/ba/bin/dsm.sys (/usr/lpp/adsm/bin/dsm.sys, respectively ) should look like:
    * until July-2009:
    Servername           ADSM
      TCPServeraddress   ADSM
      TCPPort            1500
    * since July-2009:
    Servername           AIXTSM2
      TCPServeraddress   AIXTSM2
      TCPPort            1530
      PasswordAccess     Generate
      COMPression        OFF
      Inclexcl           /usr/tivoli/tsm/client/ba/bin/archive.excl
      SCHEDLOGNAME       /var/adsm/dsmsched.log
      SCHEDMODE          prompted
      TCPBuffsize        32
      TCPWindowsize      24
    *  TXNByte            25600
      SLOWINCREMENTAL    OFF
    *
    * more than one server may be necessary to fetch back older archives:
    *  
    Servername           CLRI6B
      TCPServeraddress   slxtsm2.gsi.de
      TCPPort            1500
      nodename           clri6b
      PasswordAccess     Generate
      COMPression        OFF
      Inclexcl           /usr/tivoli/tsm/client/ba/bin/archive.excl
      SCHEDLOGNAME       /var/adsm/dsmsched.log
      SCHEDMODE          prompted
      TCPBuffsize        32
      TCPWindowsize      24
      SLOWINCREMENTAL    OFF
    
  3. The file /usr/tivoli/tsm/client/ba/bin/dsm.opt (/usr/lpp/adsm/bin/dsm.opt, respectively ) tells what to backup (example):
    * until July-2009:
    Servername           ADSM
    * since July-2009:
    Servername           AIXTSM2
     tapeprompt      no
     followsymbolic  no
    *uselargebuffers no
    *Errorlogretention 90,s
    *tracefile       trace.out
    *traceflags      incr
     domain         /
     domain         /var
     domain         /opt
     domain         /apps   # biori6y only
     domain         /local  # tkrrs6* only
     domain         /cavea  # tkrrs6y, tkrrs6z only
     domain         /xps    # tkrrs6* only
     domain         /userfs/userb01 # biops5z only  
     domain         /userfs/userb02 # biops5z only
     domain         /userfs/userb03 # biops5z only
     domain         /userfs/userb04 # biops5z only
     domain         /applfs/applb00 # biops5z only
    
  4. The file /usr/tivoli/tsm/client/ba/bin/archive.excl (/usr/lpp/adsm/bin/archive.excl, respectively ) tells what to exclude:
    exclude /.../core
    exclude /.../.netscape/cache/.../*
    exclude /.../.netscape-cache/*
    exclude /.../*.bak
    exclude /.../smit.*
    
  5. Logfile
    To enable a logging:
    mkdir /var/adsm 
    
    then a logfile /var/adsm/dsmsched.log will keep tsm messages. In order to save space in the /var filesystem a cron job should be scheduled e.g. at 3 a.m. to rename the log file by appending a version number running from 0 through 5. This way the last week's logs are kept.
       crontab -e
    
    should show something like
    # 0 3 * * * /local/bin/newdsmlog                      >/dev/null # obsolete
    5 3 * * * /opt/bin/logrotate.sh /var/adsm/dsmsched.log >/dev/null
    
  6. in /etc/rc.local:
    For TSM:
    # start Back-up client
    /usr/tivoli/tsm/client/ba/bin/dsmc sched -verbose > /dev/null 2>&1 &
    
    For ADSM (ancient):
    # start Back-up client
    /usr/lpp/adsm/bin/dsmc sched > /dev/null 2>&1 &
    
  7. To check if a backup was performed enter
    dsmc q file
    
    This is also needed once after a fresh installation to assign a password. Usually it's the nodename itself (w/o "gsi.de")
    In such a case stop the dsm process (via kill) and restart:
    nohup /usr/tivoli/tsm/client/ba/bin/dsmc sched -verbose > /dev/null 2>&1 &
    

Last update: 7-Sep-2009, M.Kraemer