The UNIX and Linux Forums  
Hello and Welcome from to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
AIX backup and restore quickfirststep AIX 3 09-07-2006 07:59 PM
F-Backup restore paultittel HP-UX 3 06-27-2006 10:46 AM
Backup and restore uXion AIX 3 06-25-2006 10:02 PM
Backup / restore tt155 SUN Solaris 4 01-22-2006 01:39 PM
Cannot restore a TAR backup Ross.Goodman UNIX for Dummies Questions & Answers 2 10-20-2000 05:52 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-24-2005
deckard's Avatar
deckard deckard is offline
Registered User
  
 

Join Date: Jul 2002
Location: Ohio
Posts: 135
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 (permalink)  
Old 04-08-2005
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
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 (permalink)  
Old 04-08-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,119
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 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 (permalink)  
Old 04-14-2005
deckard's Avatar
deckard deckard is offline
Registered User
  
 

Join Date: Jul 2002
Location: Ohio
Posts: 135
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 (permalink)  
Old 04-14-2005
drake drake is offline
Registered User
  
 

Join Date: Apr 2005
Posts: 3
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:30 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0