useful tsm commands

2
variables used in examples below: server_name=server1 lib_name=3583 drive_name=rmtx where x=1-4[/i] [b]View a node's backed up files[/b] select * from backups where node_name='nodename' [b]Find volumes marked as unavailable[/b] q vol * acc=unav [b]Update volumes to read/write status[/b] upd vol vol_name acc=readw [b]Label new volumes and checkin with scratch status[/b] labe libv lib_name vol_name checki=scr [i]or for bulk labeling[/i] labe libv 3583 search=bulk labels=barcode checkin=scr [b]Checkin previously labeled volumes in bulk as scratch (TSM will not allow volumes to be checked in as scratch if they contain valid data)[/b] checki libv lib_name search=bulk checkl=barcode stat=scr [b]Query DRMedia volumes[/b] q drmedia [b]Query volumes physically in library[/b] q libv [i] * Note: using the two commands above you can locate volumes that have been "lost" by comparing output[/i] [b]Audit all volumes in library quickly [/b] audit libr lib_name checkl=barcode [b]Query storage pools[/b] q stgpool [b]Query occupancy, lists how much space each node is using[/b] q occ [b]Take drive paths offline[/b] upd path server_name drive_name srct=srv dest=dr libr=lib_name devi=/dev/drive_name onl=n [b]Take drive paths online[/b] upd path server_name drive_name srct=srv dest=dr libr=lib_name devi=/dev/drive_name onl=y [b]Take library path offline[/b]

Upload: kiran-kumar-peteru

Post on 25-Sep-2015

216 views

Category:

Documents


1 download

DESCRIPTION

HGFCGCGHCGH

TRANSCRIPT

variables used in examples below:server_name=server1lib_name=3583drive_name=rmtx where x=1-4[/i]

[b]View a node's backed up files[/b]select * from backups where node_name='nodename'

[b]Find volumes marked as unavailable[/b]q vol * acc=unav

[b]Update volumes to read/write status[/b]upd vol vol_name acc=readw

[b]Label new volumes and checkin with scratch status[/b]labe libv lib_name vol_name checki=scr[i]or for bulk labeling[/i]labe libv 3583 search=bulk labels=barcode checkin=scr

[b]Checkin previously labeled volumes in bulk as scratch (TSM will not allow volumes to be checked in as scratch if they contain valid data)[/b]checki libv lib_name search=bulk checkl=barcode stat=scr

[b]Query DRMedia volumes[/b]q drmedia

[b]Query volumes physically in library[/b]q libv[i] * Note: using the two commands above you can locate volumes that have been "lost" by comparing output[/i]

[b]Audit all volumes in library quickly [/b]audit libr lib_name checkl=barcode

[b]Query storage pools[/b]q stgpool

[b]Query occupancy, lists how much space each node is using[/b]q occ

[b]Take drive paths offline[/b]upd path server_name drive_name srct=srv dest=dr libr=lib_name devi=/dev/drive_name onl=n

[b]Take drive paths online[/b]upd path server_name drive_name srct=srv dest=dr libr=lib_name devi=/dev/drive_name onl=y

[b]Take library path offline[/b]upd path server_name lib_name srct=serv dest=libr devi=/dev/smc0 onl=n

[b]Take library path online[/b]upd path server_name lib_name srct=serv dest=libr devi=/dev/smc0 onl=y

[b]Query scripts stored on tsm server[/b]q script

[b]Run scripts stored on tsm server[/b]run script_name

[b]Display Gb used in storage pool[/b]select sum(physical_mb)/1024 from occupancy where stgpool_name='storage_pool'

[b]Display Gb used by a single node[/b]select sum(physical_mb)/1024 from occupancy where node_name='nodename'

Some of these commands may vary depending on the type of library that you are dealing with, in my case it is a IBM 3583 with a barcode reader...