Anda di halaman 1dari 5

q auditocc (The query auditoccupancy command provides information about client data usage) q schedule * type=admin q event * type=admin

ent and query schedule commands.) q status begin eventlogging q dbspace q log or q log f=d (You can query the scheduled events using the query ev

q vol history q drive q vol q libvolume q stgpool q process q session q node f=d q mgmt * * f=d

Query Commands

q actlog search=abc q node f=d q libvol ###### Ex (q libvol abclib M50011) q vol ##### to check a tape #####Ex (q vol M50011) q drmedia q mount q proc q sess f=d q path q drive

q copy ntserver active * f=d q req ( checkin/checkout) q event * t=a ### to checker the status of scheduled events query library f=d query drive f=d query path f=d query libv f=d query occu q mgmt * * f=d

check what tape are assigned to stg group

>q vol * stg=stg_pool -or >select volume_name,stgpool_name from volumes

Check the Scratch Count

>select count(*) from libvolumes where status='Scratch'

Checking new tapes in lib

>checkin libv abclib search=yes volr=m50000, m59999 status=private checklabel=no devtype=3590

Update Path/Drive

>upd path <pathname> drive_12 srct=server destt=drive libr=abclib online=yes

>update drive <libname>abclib drive_7 online=yes

To find the reclaim of stgpools

>select stgpool_name, count(*) from volumes where pct_reclaim>69 group by stgpoo l_name

To run reclaim on tapes >update stg <storagePoolname> recl=69

to stop the reclaim set the storage pooll back. >update stg <storagePoolname> recl=100

To remove data from error tape

>move data <volname>

Register a new Node

>reg node <hostname> <password> do=<domain>

Misc Commands

>Cancel Pro process#

To media from one state to another.

move drmedia tapeNumber wherest=mount tostate=notmo move drmedia tapeNumber wherest=notmo tostate=vault move drmedia tapeNumber wherest=vault tostate=onsiter

To get a list of tapes going out to offsite.

>select volume_name, state, voltype, stgpool_name from drmedia where state='VAUL

T' and date(upd_date)>(current_date -2 day)

note

If you run

q drmedia

on each of these tapes, they show up as

VAULT RETRIEVE .

Here is what to do Review Then run >move drm VOLUME_NUMBER tostate=onsiter on each, then put them into library. Next time Operations runs checkin1.sh script, they become scratch tapes. checkin.sh script.

To see the log for a certain node.

Server command: > 'select domain_name, node_name, date(lastacc_time) as LASTACC_DATE, time(lasta cc_time) as LASTACC_TIME from nodes where lastacc_time < timestamp(current date - 7 day,'00:00:00') order by lastacc_date, domain_name, node_name`

Damaged file on a tape

You need to run the 'Audit Volume' command with fix=yes parameter. This will del ete the file that is damaged from the TSM database >audit volume <volumeName> fix=yes

To restore files from damaged volume(tape) run restore volume or restore STGpool command.

>restore volume <volumename>

>restore stg <storagePoolname>

. Private Tape taken out of library accidentally

>checkout libvol <library_name> <volume_name> checkl=no >checkin libvol <library_name> <volume_name> status=private owner=<tape owner>

To import data from another TSM server. register the node in TSM server, place the tape into the Library then run "check in" command on the tape.

checkin libv <library_name> <tape> status=private checklabel=yes Ex: >checkin libv MLIB01 P1049L3 status=private checklabel=yes

Then type >reply

Type >q req

search for request number (ex:002). ANR8352I Requests outstanding: ANR8323I 002: Insert ANY volume PM1000 R/W into entry/exit port of library MLIB01 within 60 minute(s); issue 'REPLY' along with the request ID when ready.

Type >reply 002

ANR8499I Command accepted.

>import node <nodename>_FULL devclass=TS3500 volumenames=M1000L3 filed=all

Anda mungkin juga menyukai