Results 1 to 4 of 4
-
07-07-2008, 03:08 AM #1Member
- Join Date
- Mar 2005
- Location
- Canberra, Australia
- Posts
- 38
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Script for Fixing Read Only Volumes
Just thought I'd share the following script I wrote to fix read only volumes on my TSM Servers (this is a Windows command script). The only disadvantage is that I would like to run it through TSM as an Admin schedule - which I don't believe can be done with this kind of script?
Code:@echo off REM REM The following script reclaims readonly volumes REM set TSMID=adminid set TSMPASS=adminpassword set TSMSERVER=%COMPUTERNAME% set ROVOLS=C:\Temp\ReadOnlyVolumes.txt set LOG=C:\Temp\ReadOnlyVolumes.log cd C:\Progra~1\Tivoli\TSM\baclient C:\Progra~1\Tivoli\TSM\baclient\dsmadmc.exe -ID=%TSMID% -PASSWORD=%TSMPASS% -dataonly=yes -tcpserveraddress=%COMPUTERNAME% -outfile=%ROVOLS% "select volume_name, pct_utilized from volumes where access='READONLY' order by pct_utilized" for /f "tokens=1 " %%i in (%ROVOLS%) do (C:\Progra~1\Tivoli\TSM\baclient\dsmadmc.exe -ID=%TSMID% -PASSWORD=%TSMPASS% -tcpserveraddress=%COMPUTERNAME% "move data %%i wait=yes" >> %LOG%)
TSM Server 5.5.0.0
Windows 2003 x64 R2 SP2
HP DL580 G5
Quad Intel quad core 2.9GHz CPUs with 16GB RAM!
-
07-07-2008, 09:28 AM #2
-
07-07-2008, 11:38 AM #3
a schedule task in you windows env could do it.
-
07-08-2008, 05:54 AM #4Member
- Join Date
- Mar 2005
- Location
- Canberra, Australia
- Posts
- 38
- Thanks
- 0
- Thanked 0 Times in 0 Posts
I think the postschedule option would only work if I was to run this against my TSM server as a client node? In which case I could define a command schedule...
Anyway for the moment I'm running it as Windows scheduled task - that way it can exit after 8 hours of processing (I currently have a HEAP of read only volumes as we are transitioning our library from LTO2 to LTO4).TSM Server 5.5.0.0
Windows 2003 x64 R2 SP2
HP DL580 G5
Quad Intel quad core 2.9GHz CPUs with 16GB RAM!
Similar Threads
-
Excessive read errors on archive volumes.
By TSM_JE in forum Backup / Archive DiscussionReplies: 2Last Post: 05-01-2009, 04:00 PM -
volumes being marked as read only
By javajockey in forum Tape / Media LibraryReplies: 4Last Post: 03-12-2008, 12:28 AM -
Automating reclamation of read only 0% utilized volumes
By shanafin in forum ScriptingReplies: 6Last Post: 05-01-2007, 06:01 PM -
Read Only volumes on disk
By JOKOUS in forum Tape / Media LibraryReplies: 1Last Post: 02-28-2006, 12:40 PM -
After BOOT TSM can't write, just read volumes ...
By zanker in forum Tape / Media LibraryReplies: 0Last Post: 05-17-2005, 04:39 PM


Reply With Quote
