Tsm queris

download Tsm queris

of 3

Transcript of Tsm queris

  • 7/30/2019 Tsm queris

    1/3

    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

  • 7/30/2019 Tsm queris

    2/3

    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

  • 7/30/2019 Tsm queris

    3/3

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