How to optimize our tape backups ?


 
Thread Tools Search this Thread
Operating Systems AIX How to optimize our tape backups ?
# 1  
Old 02-26-2009
Power How to optimize our tape backups ?

Hi, I am currently looking at how we can optimize and speed up our backups here. I am just a beginner operator and our system admin hardly knows anything (long term interim).

There is this particular TAR backup of DB backups that for a 10.5Gb amount of files, it takes 5 hours to do the backup on 5Gb tapes. For all our DB to be backed up and verified on tapes, it takes over a normal day shift (10 DB where 2 DB per servers and one tape drive per server).

I checked the drive and compression is ON. Sine we are on a 4.2 AIX, our TAR does not have compression options. I did a test where using compress, I managed to compress a 1.9Gb file that took 25min on disk.

What would you suggest checking to see what can be optimized/speeded up ?

I will be going on to work in 1.5hr (currently 17:30). So from there I could reply back with whatever infos you guys need (you may have to indicate how to get it first).
# 2  
Old 02-26-2009
If you have a multiprocessor machine (which is most likely when you have a database server) you could do the following: pipe the output of tar to a gzip process, like the following command:

Code:
tar -cvf - <file-list> | gzip -9 > /some/file

The problem is the following: gzip is a single-threaded process (naturally). If you only issue the command as shown above you would use one single processor and the rest of the processing power would be idle.

Therefore you will have to determine the file sizes of the files to be backed up before and create as many instances of this process as you have processors, where you distribute the files as equally as possible and run these processes in parallel. This would utilize all the processors in your system and probably (since compressing is the most work-intensive task) drastically reduce the backup time. The following is a sketch of such a script:

Code:
no_of_procs=5
files[1]="file1 file2 file3"
files[2]="file4 file5 file6"
files[3]="file7 file8 file9"
files[4]="file10 file11 file12"
files[5]="file13 file14 file15"

(( i = 1 ))
while [ $i -le $no_of_procs ] ; do
     tar -cvf - ${files[$i]} | gzip -9 > backup.part${i} &
     (( i += 1 ))
done

If you have enough free file space write the backups to disk first (this is faster) and only write these files to tape. Your backup will in fact be done when the files are written to disk and it will not matter how long it takes to shuffle them off to tape.

I hope this helps.

bakunin

Last edited by bakunin; 02-26-2009 at 09:23 PM..
# 3  
Old 02-27-2009
Thank you for the info.

Unfortunetly, we have gzip (v1.2.4) on 1 of the DB servers. I am not aware of the license related ot its usage. So I cannot copy it over to the other DB servers.

The only compress tool we have across all servers is 'compress'.

However, if compress is a one single-threaded process, then the same method could be applied. So instead of taking 2hrs to compress all files of one DB backup, it would in theory take 20-30 min in total.

One other question, in using 'compress', which temporary storage does it use while compressing the file ? The current or some other assigned system folder ?

The folder where the backups are is pretty full and since I am not the system admin, I cannot increase its space.
# 4  
Old 02-27-2009
gzip is short for GNU-zip und released under the GNU public license. Copy, distribute or reprogram it as much as you like (in principle - see the GPL for details).

I do know know the intrinsics of compress, but i suppose it will work similar to gzip. The Lempel-Ziv-Welch algorithm uses a relatively small codebook which is stored in memory therefore no intermediate files are necessary. The wiki-article about the LZW-algorithm is a good start if you are interested.

In principle you are correct, you could use compress instead of gzip with about the same result.

I hope this helps.

bakunin
# 5  
Old 03-17-2009
How do I find out how many processors it has ?

The only physical docs we have here is about the company's applications, not the system.
# 6  
Old 03-17-2009
Some ways:
Code:
lsdev -C| grep proc| grep -c available
lsconf| grep "Number of Processors"
prtconf| grep "Number of Processors"
lparstat -i
# or also check your hmc if it is a LPAR

# 7  
Old 03-17-2009
Crap !

When checking this, it says it only has ONE processor !!!!

That sort of crashes what I wanted to do : using one compress command in background per processor to gain time

I will have to find another way.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Best method to encrypt AIX LTO6 tape backups?

Hello, I need to be able to encrypt LTO tapes that our AIX writes to for backups. We have a tape library (IBM TS3100) that our AIX host uses to write to LTO6 tapes. We then take those tapes off-site and restore to another AIX system using a 3580-H6S LTO6 tape drive - this is a very simple... (3 Replies)
Discussion started by: c3rb3rus
3 Replies

2. SCO

SCO tape backups won't restore in Ubuntu Linux environment

Hello folks. I have the following problem: I'm trying to create a tape backup of a list of files on a 10 year old server, running SCO Openserver 5.0.5 (the tape drive is a Seagate STD224000N, connected as a SCSI drive). I then want to restore the contents of this tape onto a new server... (6 Replies)
Discussion started by: klabelkholosh
6 Replies

3. UNIX for Dummies Questions & Answers

Question about a tape write error doing backups

Hello all. UNIX dummy here :p Anyway I was trying to do a full backup of my work server SUN SPARC SERVER 1000 machine (yes we are actually using this dinosaur). I did the ufsdump comand and everything was fine until I got to the dumping of regular files. During the run I got the following... (7 Replies)
Discussion started by: hammerva
7 Replies

4. AIX

Tape backups: do you always verify them after doing them ?

It may seam a bit odd that I ask this question. After you have done your backups to tapes, do you verify the content of the tapes ? - never - sometimes - always The reason I am asking is that here in the office, all the backup procedures include verifying the content of the tapes (no... (5 Replies)
Discussion started by: Browser_ice
5 Replies

5. Solaris

Remote Backups to a Tape

My tape library is broken but backups still need to go on .I have 2 boxes running Solaris 10 Got SCSI tape drive attached to the DEV box ( my PROD Box has only fibre) I want to take the prod backup from the DEV box using ufsdump. ie /usr/sbin/ufsdump 0uvf DEV:/dev/rmt/1n... (2 Replies)
Discussion started by: Msororaji
2 Replies

6. Filesystems, Disks and Memory

Tape drives used for taking backups

Hi, I am a abit new in AIX system administration field. I want to gather knowledge about backup techniques. As per my knowledge we use Tape archives for taking backups. Can anyone pls explain me in detail abt tape archive? Whether these tape archives come along with the systems or we have to... (1 Reply)
Discussion started by: forumsrahul
1 Replies

7. SCO

Tape Status shows 2 Hard errors and 5 Underruns on new tape

when I do a tape status /dev/rStp0 I get the following on a new tape and I have tried several: Status : ready beginning-of-tape soft errors : 0 hard errors: 2 underruns: 5 My BackupEdge has stopped backing up my system because it asks for a new volume yet my total system data is under 20... (5 Replies)
Discussion started by: psytropic
5 Replies

8. UNIX for Dummies Questions & Answers

verifying tape backups

Hello all, how would i go about verifying that a tape is backing up data correctly other than restoring the backup. for example, what command would i use to check the tape for errors? Any and all help is appreciated -Coffee (0 Replies)
Discussion started by: coffeebrown
0 Replies

9. AIX

backups getting it so the tape doesn't rew.

Currently am running the backup command for AIX 5L and see that the tape is rewinding after the completion of the back. backup -0 -u -f /dev/rmt0 / >> $file 2>&1 What can I do to stop allow the backup to rew after the completion of this job? Any thoughts? Thanks again. (2 Replies)
Discussion started by: justinburbridge
2 Replies

10. UNIX for Dummies Questions & Answers

Multiple backups on one tape

For those with backup tapes (and I just bought and installed a Seagate one for my FreeBSD box) I want to know how to get the most out of each tape by placing multiple backups on each tape (potentially 20GB). Please correct me if I'm wrong: First, retension the tape: # mt retension next, turn... (3 Replies)
Discussion started by: WIntellect
3 Replies
Login or Register to Ask a Question