TSM Server Commands

From Tecniq

Jump to: navigation, search

The TSM Command Line can be daunting, however the command structure is very simple and easy to use with a bit of familiarisation.

Below is a list of useful TSM commands to help with simple administrative tasks such as datasbe backup, querying storage pools, and so forth. Some of the commands below may vary depending on the type of library that you have. These are based on a IBM 3583 library with a barcode reader.

Queries

Note: Using the following two commands you can locate volumes that may be missing by comparing the output

Query the Disaster Recovery Media volumes

  • q drm

Query the volumes physically in library

  • q libv


Query storage pools

  • q stgpool

Query occupancy, lists how much space each node is using

  • q occ

Query the current sessions using TSM

  • q sess

Query volumes marked as unavailable

  • q vol * acc=unav

Update the volumes to read/write status

  • upd vol vol_name acc=readw


Query scripts stored on tsm server

  • q script

Run scripts stored on tsm server

  • run script_name


Query which media is currently mounted in the drives.

  • q mount

Checking in labeled volumes in bulk as scratch

NOTE:TSM will not allow volumes to be checked in as scratch if they contain valid data.

  • checkin libv lib_name search=bulk checkl=barcode status=scr

Audit all volumes in library quickly

  • audit library lib_name checkl=barcode


Labelling new volumes and checking in with a status of scratch

  • label libv lib_name vol_name checkin=scr

Or for bulk labeling

  • label libv lib_name search=bulk labels=barcode checkin=scr


View a node's backed up files

  • select * from backups where node_name='nodename'


Taking drives & library paths offline/online

Take drive paths offline

  • upd path server_name drive_name srct=srv dest=dr libr=lib_name devi=/dev/drive_name onl=n

Make drive paths online

  • upd path server_name drive_name srct=srv dest=dr libr=lib_name devi=/dev/drive_name onl=y


Take library path offline

  • upd path server_name lib_name srct=serv dest=libr devi=/dev/smc0 onl=n

Make library path online

  • upd path server_name lib_name srct=serv dest=libr devi=/dev/smc0 onl=y


Display Gb used in storage pool

  • select sum(physical_mb)/1024 from occupancy where stgpool_name='storage_pool'

Display Gb used by a single node

  • select sum(physical_mb)/1024 from occupancy where node_name='nodename'



Personal tools