Results 1 to 7 of 7
Thread: Script for automate backup
-
06-25-2012, 06:58 PM #1Newcomer
- Join Date
- May 2011
- Posts
- 4
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Script for automate backup
Hi,
I need script to backup 21 mount points. Here is my setup.
my tape library has 4 drives.
I have 21 mount points to backup.
one mount point's backup should send to one drive, that means at a time 4 mount points backup should go to 4drives separately. Then if one drive is empty(means, if one mount point's backup finished) next mount point should start to that drive. like wise all 21 mount points should backed up.
Expertise, please help me on the matter.
Thank you.
-
06-25-2012, 08:13 PM #2Moderator
- Join Date
- Aug 2005
- Location
- Somewhere in the US
- Posts
- 5,357
- Thanks
- 2
- Thanked 148 Times in 145 Posts
Don't you have any disk pool?
The way you want the backup to run will take a long time to finish.Ed
-
06-25-2012, 09:00 PM #3Newcomer
- Join Date
- May 2011
- Posts
- 4
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Thank you for your reply...
No...there is no disk pool. The requirement is to backup to tape (This is actually flashcopy backup).
You are absolutely right, this will take lone time. Previously there was a 2 drives, but we add another 2 drives to reduce backup time. Now we have 4 drives and backing up manually. Need to automate what i am doing manually.
If there is a better way to do this please let me know.
Thank you..
-
06-25-2012, 10:17 PM #4Moderator
- Join Date
- Aug 2005
- Location
- Somewhere in the US
- Posts
- 5,357
- Thanks
- 2
- Thanked 148 Times in 145 Posts
Adding disk pool would be nice and setting up device class as file.
The data goes to the devclass=file and later moved to tape. Faster and easy to administer.Ed
-
06-26-2012, 12:33 AM #5Newcomer
- Join Date
- May 2011
- Posts
- 4
- Thanks
- 0
- Thanked 0 Times in 0 Posts
The problem is providing storage for disk pool, because total size of this mount points is high.
As I told you, this is FlashCopy backup and this 21 mount points mounted to the TSM server and need to distribute to drives. We already use Resource Utilization option. Then backup distributes to all 4 drives. But it is accessing one mount point at a time and taking 2 1/2 hours to finish.
Now we dont use Resource Utilization option and initiating backup manually,
dsmc archive /01 -subdir=yes
dsmc archive /02 -subdir=yes
dsmc archive /03 -subdir=yes
dsmc archive /04 -subdir=yes
.
.
dsmc archive /21 -subdir=yes
please help me to automate this task.
-
07-31-2012, 11:36 AM #6Newcomer
- Join Date
- Mar 2006
- Location
- Austin, TX
- Posts
- 4
- Thanks
- 2
- Thanked 0 Times in 0 Posts
If I understand you correctly, you have a client with 21 different file systems which you'd like to backup efficiently to 4 tape drives in your TSM system. Perhaps this will help:
On the TSM server, do this:
upd node client_name maxnummp=4
This will let the node use 4 mount points during backup. In this case, each mount point is a tape drive.
On the client, you will need to add this line to the dsm.opt file:
RESOURCEUTILIZATION 4
This tells the BA client it is allowed to use 4 streams of data to the TSM server.
Now, if you run a straightforward incremental of the client, it will backup everything in the DOMAIN statement to four streams, going to 4 tape drives, as efficiently as it can, without you having to juggle them yourself.
Good luck!
TMan
-
07-31-2012, 12:25 PM #7
My understanding is that if you set resourceutilization to 4 you'll actually use 3 drive not 4. Check out the following IBM documentation:
http://publib.boulder.ibm.com/infoce...ilization.html
It appears that only when doing restores are RESOURCEUTILIZATION and MAXSESSIONS allowed a 1:1 ratio.
Also be aware that IBM recommend using filespace collocation when using multiple backup sessions on flat file backups.
Similar Threads
-
Automate daily (newly created database) full backups; script help
By microosoft in forum Microsoft SQL ServerReplies: 6Last Post: 03-29-2012, 01:08 PM -
How to Automate Yes answer for long TSM SQL in a shell script
By melvernon in forum ScriptingReplies: 2Last Post: 03-18-2010, 03:20 PM -
Looking for script to automate the flash copy backup of oracle
By KAPIL TYAGI in forum ScriptingReplies: 0Last Post: 06-26-2007, 03:05 AM -
Automate script from command line
By tommy13v in forum ScriptingReplies: 2Last Post: 02-04-2005, 12:07 PM -
Need script to automate backup/restore
By kim_mitchell in forum ScriptingReplies: 6Last Post: 12-01-2004, 02:14 PM


Reply With Quote