torsdag 15. september 2011

All server sessions are currently in use

ANS1351E Session rejected: All server sessions are currently in use


Problem solving example:
tsm> setopt maxsession 750
tsm> set maxschedsession 100

This parameter specifies the maximum number of simultaneous client sessions that can connect with the TSM server

lørdag 10. september 2011

How long since the last time the tape cartridge have been used

A tape cartridge is a mechanical product requiring physical maintenance once in a while. All you need is run a query for how long since the last time the tape cartridge have been used.
select volume_name,date(last_write_date) as write_date,date(last_read_date) as read_date from volumes where stgpool_name='LTO4POOL' order by read_date asc

You can check the tape cartridge for inconsistencies.
audit volume volumename fix=no

tirsdag 6. september 2011

TSM for Linux - nightly routine full backup for CentOS

Script created in /etc/cron.daily/

[root@name cron.daily]# cat dsmc.sh
#!/bin/bash

cd /var/log

/opt/tivoli/tsm/client/ba/bin/dsmc incremental / -subdir=yes | mail -s "backup report " mail@mail.com

Examples - restore:
dsmc restore -filelist=/home/dir2/restorelist.txt /home/NewRestoreLocation/
dsmc restore /home/monnett/h1.doc -latest
dsmc restore "/user/project/*"-pick -inactive
dsmc restore /home/monnett/h1.doc /home/newdoc/h2.doc
dsmc restore -pitd=9/10/2011 -pitt=13:23:20 /home/mydir/
dsmc restore "/home/projectA/*.bak" /home/projectB/ 



Examples - backup:

dsmc incremental / -subdir=yes
dsmc incremental -domain="/fs1 /fs2"
dsmc selective /home/proj/ -subdir=yes
dsmc selective /usr/dir1/sub1/ -subdir=yes -snapshotroot=/snapshot/day1