LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 05-20-2010, 02:14 AM   #1
pinoy43v3r
LQ Newbie
 
Registered: May 2010
Posts: 2

Rep: Reputation: 0
How do you ufsrestore the fast way?


hi, on my sol9 box i create my backup using the below command:

/usr/sbin/ufsdump 0uf /dev/rmt/0n /u1
/usr/sbin/ufsdump 0uf /dev/rmt/0n /u2
/usr/sbin/ufsdump 0uf /dev/rmt/0n /u3
/usr/sbin/ufsdump 0uf /dev/rmt/0n /u4

now on the new sol10 box, to restore i use this commands:

cd /u1
/usr/sbin/ufsrestore rfsvy /dev/rmt/0 1
rm /u1/restoresymtable

cd /u2
/usr/sbin/ufsrestore rfsvy /dev/rmt/0 2
rm /u2/restoresymtable

cd /u3
/usr/sbin/ufsrestore rfsvy /dev/rmt/0 3
rm /u3/restoresymtable

cd /u4
/usr/sbin/ufsrestore rfsvy /dev/rmt/0 4
rm /u4/restoresymtable

the reason i do the above restore commands like that is because i don't have enough space plus ufsrestore only does a relative restore therefore i want it to change to the actual destination directory before restoring.

the directories have different sizes:

/u1 - 35GB
/u2 - 48GB
/u3 - 97GB
/u4 - 150GB

/u1 contains the Oracle binary executables (and maybe some other Oracle related files) while the other directories contain data.

my concern is, why is /u1 taking so long to restore? in fact, /u4 restored in less than 30 minutes while /u1 is taking far longer than that! am i using the wrong restore options that is causing this?
 
Old 05-23-2010, 12:26 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
There is no particular reason for /u1 to take much more time than the others according to the information you posted. You should investigate deeper (logs, truss, ...) to understand what ufsdump is precisely doing during this time.
 
Old 05-24-2010, 01:45 PM   #3
pinoy43v3r
LQ Newbie
 
Registered: May 2010
Posts: 2

Original Poster
Rep: Reputation: 0
hello,

i figured out the problem last Friday. it was due to a bad superblock (bad sector in doze speak). this causes the restore to slow down dramatically on the filesystem in question.

so i nuked "/u1" filesystem and did a newfs on it.

restore of 35GB took only an hour.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ufsdump and ufsrestore on solaris 10 agfa_109 Solaris / OpenSolaris 9 11-13-2007 11:29 AM
FAST (Mega fast Mirror) SUSE 10 beta 4 download 1kyle SUSE / openSUSE 2 09-07-2005 10:13 AM
Slamd64 is FAST FAST !!! SML Slackware 10 05-03-2005 05:36 AM
KDE 3.4 Beta 1 - Fast, Fast, very nice linchat SUSE / openSUSE 0 01-25-2005 11:42 PM
internet fast-slow-fast-slow big_and_fat_guy Mandriva 5 10-11-2003 05:44 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 02:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration