Saturday, April 25, 2009

To delete a node and its associated files from TSM server.

Follow these steps to delete a node from TSM server.

1)delete association domain_name schedule_name node_name1,node_name2,....

2)del filespaces node1 * (this removes all backup data for node1)

3)remove node node_name.

Wednesday, April 1, 2009

move nodes data to tape when Disk space is full

for an example, lets say we wanted to move something to tape.
1. q occ relofa1
Look for the /opt/app/....  filesystem that is using 735449.7

/opt/app/oraclefa64 seems to be the filesystem in this example.

2. Move the data to tape:
Move nodedata relofa1 from=nasoff to=lto-off fi=/opt/app/oraclefa64 maxpr=2

Wednesday, March 18, 2009

Monday, March 16, 2009

To update a volume from 'UNAVAILABLE' or 'READONLY' to 'READWRITE'

tsm: server>select volume_name,access from volumes where access='UNAVAILABLE' or 'READONLY'

VOLUME_NAME                  ACCESS
------------------          ------------------
        
S100L3               UNAVAILABLE       
S165L3               UNAVAILABLE       
S188L3               UNAVAILABLE       
S343L3               UNAVAILABLE       
S679L3               UNAVAILABLE       
S014L3               READONLY 

tsm: server>UPDATE VOLUME S100L3 Access=readwrite 
ANR2207I Volume S100L3 updated.

tsm: server>UPDATE VOLUME S165L3 Access=readwrite 
ANR2207I Volume S165L3 updated.

tsm: server>UPDATE VOLUME S188L3 Access=readwrite 
ANR2207I Volume S188L3 updated.

tsm: server>UPDATE VOLUME S343L3 Access=readwrite 
ANR2207I Volume S343L3 updated.

tsm: server>UPDATE VOLUME S679L3 Access=readwrite 
ANR2207I Volume S679L3 updated.

tsm: server>UPDATE VOLUME S014L3 Access=readwrite 
ANR2207I Volume S014L3 updated.

Saturday, March 14, 2009

If the disk storage is full, then move the node data to tape

If the disk storage is full, then move the node data to tape


q occpancy stgpool=nasoff2



Node Name Type Filespace FSID stgpoolname number-of-files Physical space(MB) Logical space(MB).

TSMRELSA Bkup /sas/data/cmi/rs 21 NASOFF2 18,821 1,234,065.65 1,234,065.65
tsm: TSMserver 1>move nodedata TSMRELSA from=nasoff2 to=lto-off fi=/sas/data/cmi/rs maxpr=2
ANR1649W MOVE NODEDATA:This command will move data for nodes stored in storage pool NASOFF2 to storage pool
LTO-OFF; the data will be inaccessible to users until the operation completes.

Do you wish to proceed? (Yes (Y)/No (N)) y
ANR2110I MOVE NODEDATA started as process 71.
ANR2110I MOVE NODEDATA started as process 72.

To Extend db of TSM

[dk055@reldal1]$ lsvg
rootvg
tsmvg
[dk055@reldal1]$ ls -la /opt/tsm01
total 32776216
drwxr-xr-x   3 root     system          256 May 20 2008  .
drwxr-xr-x  72 root     system         8192 Jan 03 22:05 ..
drwxr-xr-x   2 root     system          256 Oct 29 2004  lost+found
-rw-r--r--   1 root     system   4195352576 Jan 06 12:55 tsmdb01.dsm
-rw-r--r--   1 root     system   4195352576 Jan 06 12:55 tsmdb02.dsm
-rw-r--r--   1 root     system   4195352576 Jan 06 12:55 tsmdb03.dsm
-rw-------   1 root     system   4195352576 Jan 06 12:55 tsmdb04.dsm



To Extend DB of Reldalbk1
define dbvolume "/opt/tsm01/tsmdb05.dsm" formatsize=4096 (4 x 1024)

Extend dbvolume

To change Unavailable to Readonly or Readwrite.

From each server run this command to get the unavailable or readonly (tapes and disk volumes) 
i.e., Relbk1, Relbk2 and Relbk2-2: -
select volume_name,access from volumes where access='UNAVAILABLE' or access='READONLY'

then ckeck the each volume by quering and format=detail
q volume S0XXXXL3 F=D
///check if any readwrite errors or readonly errors.

tsm: RELBK1> 

SxxxxxL3               UNAVAILABLE       
SxxxxxL3               READONLY           
SxxxxxL3               UNAVAILABLE       
SxxxxxL3               UNAVAILABLE       
SxxxxxL3               UNAVAILABLE       
SxxxxxL3               UNAVAILABLE       

To update the volume from unavailable to readwrite.

UPDATE VOLUME SxxxxxL3 Access=readwrite whereaccess=UNAVAILABLE