Why is restore slower than backup?


 
Thread Tools Search this Thread
Operating Systems Solaris Why is restore slower than backup?
# 1  
Old 03-24-2005
Why is restore slower than backup?

After my big disaster, I'm restoring from tape on my Sun box. This is the second time I've used 'ufsrestore' with this DEC TZ88 SCSI DLT drive. The last time was for a migration from one box to another. Both the last time and this time, the restore has taken a hell of a lot longer than the backup does. The full nightly backup takes about 2-4 hours for 14 gigs of data. But when using 'ufsrestore -i' to restore 14 gigs it's taking more like 14-18 hours at a time. (I've had to do test restores so I have a few different cases with the data hovring between 12-14 gigs and the restore times between 14-18 hours) What I'm wondering is if there are any driver parameters or SCSI subsystem parameters I should be tuning for restores in order to get a faster restore time. Is it slow because I'm using 'ufsrestore'? Is it slow because I'm using 'ufsrestore' in interactive mode?
# 2  
Old 04-08-2005
Restores slower than backups - Part of the explaination I don't totally agree with (an assumption that there is a backup server
Quote:
Essentially, a backup is not much more that a read operation. Data is simply read from the backup client and sent to the backup server.
) Data is sometimes read and then written to the backup tape from the same server. And writing to tape could be a blockage but otherwise his points are good.
# 3  
Old 04-08-2005
Most local dump programs are implemented as multiple processes. There are several data readers feeding one tape writer process. You can usually write fast enough that the tape drive won't stop moving. (These multiple processes could be viewed as client/server Smilie Not what he meant I know...) He's right that file creation is slow. (Especially if you have directories) But it's enough that the tape drive will often stop and must be restarted. That contributes a lot to the slowness. For some reason, tape drives are much faster if you keep the tape moving. But I'm not a hardware guy so I don't know why this is.
# 4  
Old 04-14-2005
OK. That makes a good deal of sense. I have to assume then that the backup program doesn't actually store the attributes with the file, but in a separate store of some kind. Especially in the case of a raw dump type utility. This would explain why, when my restore completed, I am prompted with a question asking if I want to restore owner:group attributes. So, my files are probably written from the tape to the drive with the owner:group set to the user who is running the restore (in my case 'root'). Afterwards, the final process runs through the restored files and then does a chown on each of them. Hehehe... I think there is also the distinct possibility that the tape drive I'm dealing with just has crappy performance in Solaris too.
# 5  
Old 04-14-2005
Sounds like you did a sequential ufsdump - which is a lot faster than an interactive ufsrestore (Where the tape heads are jumping around more based on yor selection criteria (e.g add/extract)). During an Solaris interactive restore, you generally just select the file(s) you require restoring from the filesystem (e.g a config file like /etc/hosts), although you can just select (add) everything and carry on with the restore. (if you have selected a ufsrestore ivf, the verbose option will also slow things down)

For a simple clean backup, I usually take a complete UFS level 0 dump; something like this ...

to dump ...

mt -f /dev/rmt/0 rewind # rewind the tape
for i in `/ /var /opt /export/home /opt/{filesystem} /opt/{filesystem}`
do
ufsdump 0f /dev/rmt/0n $i
echo "Completed ufs dump level 0 of $i ... "
done
echo "backup completed ... "
mt -f /dev/rmt/0 rewind
mt -f /dev/rmt/0 offline # eject the tape

Then try restoring the whole filesystem as follows with a similar script/set of commands ...

use mt -f /dev/rmt/0 fsf or bsf to move to the markers on the tape and when your happy you have the correct filesystem, complete a ufsrestore 0f /dev/rmt/0n (no rewind) to your filesystem. Should be quicker?

If you want to be even more fancy (in terms of potentially dealing with less data to backup), you could take incremental backups, which means you will only have to backup data that has changed from the last ufsdump date. Restores can get a bit tricky and messy though.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Backup and restore using tar

This will be covered elsewhere im sure but i just cant seem to find my exact issue. I want to backup my systems using tar, command is: tar -cjpf /backup /bin /etc /home /opt /root /sbin /usr /var /bootWhen i include the / directory it also tar's the /lib /sys /proc /dev filesystems too (and... (8 Replies)
Discussion started by: Tommyk
8 Replies

2. Red Hat

Backup / Restore

Hi, I need to back up a RH file system (96G). The files are oracle .dbf format some of which are 5G in size. I know that tar has got a size restriction of 2G so I cannot use this. Can anyone recommend an alternative way of backuping up this FS? I have been looking at dump but this... (6 Replies)
Discussion started by: Duffs22
6 Replies

3. AIX

Backup and restore

Hi experts, i got a question. i have a production server with two Volume Group(VG) which are rootvg and datavg. Both of these VGs are 256 PP SIZE. On Disaster Recovery Server (DR server) contains two empty hardisks for restoring rootvg and datavg from production server. This two hardisks are... (7 Replies)
Discussion started by: polar
7 Replies

4. Emergency UNIX and Linux Support

DD command to backup and restore

Hi, Currently I have 2 servers. 1 is already installed with RHEL4(withmyapplications) and the other one is still brand new. My question is, is it possible to use DD command to backup the whole harddrive for the RHEL4 server and restore it to the new brand server so that I do not have to... (3 Replies)
Discussion started by: flekzout
3 Replies

5. AIX

AIX backup and restore

Hello, Some background so you can see what I'm trying to do on AIX: In Windows its possible to partition a single hard drive into 2 separate logical paritions which may appear as a C and a D drive. It is then possible to to use 3rd party software such as Power Quest Drive Image to create a... (3 Replies)
Discussion started by: quickfirststep
3 Replies

6. HP-UX

F-Backup restore

Hello! i have a blank harddrive and a complete tape backup of the workstation. the backup is made with F-Backup. Now my question is: how can i restore my workstation? thanks for every idea! paul tittel hup-si (3 Replies)
Discussion started by: paultittel
3 Replies

7. AIX

Backup and restore

I have several H80 machines, all with AIX 4.3.3. On these machines I have mksysb running for rootvg backups and savevg for non-rootvg backups. I'm trying to get a list of files on the tapes, but I can't seem to do it with tar for the mksysb images. I keep getting the directory checksum errors?... (3 Replies)
Discussion started by: uXion
3 Replies

8. Solaris

Backup / restore

Hi.... everyone could help me to understand how to do a backup of my servers .. operating systems is sun solaris 8 . I have some question about .... 1) Is better backup phisical disk or partition ??? i sow the command is ufsdump 0cfu /expbck/bcksunver/c0t0d0s5 dev/dsk/c0t0d0s5 to... (4 Replies)
Discussion started by: tt155
4 Replies

9. UNIX for Dummies Questions & Answers

Slower slower dead

I am running RH 7.1 and i am always remotely logged in working on a database. I got php and mysql running and then as the each week goes my rsh, or secure telnet, and any other remote session slows to become extremly choppy. If i am at teh box my i am fine the computer is not bogged down at all,... (5 Replies)
Discussion started by: macdonto
5 Replies

10. UNIX for Dummies Questions & Answers

Cannot restore a TAR backup

I backed up a unix database using "tar -cvf /dev/rmt1 -N 800 /*" Normally I would restore this using "tar -xvf /dev/rmt1 -N 800" This is reporting an error about "not enough memory" I have done a new test backup and restore using the same commands and they work. ANY IDEAS ? (2 Replies)
Discussion started by: Ross.Goodman
2 Replies
Login or Register to Ask a Question