05-20-2010
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?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there,
I have a problem at the moment trying to restore a directory from a Super DLT tape with about 3 weeks worth of backups on it. I need to be able to get the last backup performed on this tape but using ufsrestore -i it only restores the first backup which is no good to me. There is... (4 Replies)
Discussion started by: gerwhelan
4 Replies
2. Solaris
on sparc solaris 2.8 hosts, HOSTB, after changing to /dir1 need to:
connect to tape drive on HostA. change directory to /dir0/dir1 on tape and
restore everything under that path to /dir1 directory.
could i get help?. (1 Reply)
Discussion started by: S26+
1 Replies
3. Solaris
I'm trying to restore a server from a backup tape. I've partitioned my drive, and I've run into a problem; After extracting everything from the tape, It seems as if only the directory structure is intact. Here are my steps:
1. booted from cdrom to single user mode boot cdrom -s
2. used... (3 Replies)
Discussion started by: ECBROWN
3 Replies
4. Solaris
Hello Folks,
I have to restore from remote tape sun solaris 10. It has to have mirror raid.
I have to restore /,/usr, /var,/opt, /etc,/u01.
Could you please give me detailed steps to do the above?
I am new to solaris
Thanks
Ram (1 Reply)
Discussion started by: vr76413
1 Replies
5. Solaris
HI Gurus,
I have a sunfire V445 server running SAP ECC 6.0 with an Oracle database on Solaris 9 (SunOS 5.9). I recently completed a ufsdump to tape of the following files:-
/,
/usr,
/oracle,
/export,
/sapr3,
I want to restore these files from tape onto a different server of the same... (5 Replies)
Discussion started by: charleywasharo
5 Replies
6. Solaris
Hi , I accidentally deleted crontab entries and I need to restore back urgently ! we use a ufsdump with 0cfu option. I like to know how to restrore / retrieve to different location for crontab file only from the backup. Thanks. (4 Replies)
Discussion started by: skully
4 Replies
7. Solaris
Hi Gurus,
Can you guys please explain what is volume in ufsrestore?
Thanks (2 Replies)
Discussion started by: kumarmani
2 Replies
8. Solaris
hey all,
i did a ufsdump/restore from a mirrored system and i'm not able to get the new system to boot off of the dump.
system 1 is a v245 mirrored with disk suite. metadb's are in place
d3 -m d23 d13 d33 1
d23 1 1 c1t1d0s3
d13 1 1 c1t0d0s3
d33 1 1 c1t2d0s3
d0 -m d20 d10 d30 1
d20 1... (3 Replies)
Discussion started by: em23
3 Replies
9. Shell Programming and Scripting
Good Afternoon,
I'm going to attempt a ufsrestore of a Solaris 9 machine from a connected NAS containing the ufsdumps. The idea is to be able to take ufsdumps of a failed machine (machine 1), and use them to set up a backup machine (machine 2). (I'm testing for disaster recovery)
Note... (52 Replies)
Discussion started by: Stellaman1977
52 Replies
10. UNIX for Beginners Questions & Answers
Good Morning,
I'm running through a Solaris 9 ufsrestore process on a Sunblade 2500 that folks here helped me write a year ago. Here: https://www.unix.com/303011447-post11.html
Hicksd8 tells me to # rm restoresymtable. I see this file in the other slices as well. Do I remove it from... (8 Replies)
Discussion started by: Stellaman1977
8 Replies
LEARN ABOUT OPENSOLARIS
rmt
rmt(1M) System Administration Commands rmt(1M)
NAME
rmt - remote magtape protocol module
SYNOPSIS
/usr/sbin/rmt
DESCRIPTION
rmt is a program used by the remote dump and restore programs in manipulating a magnetic tape drive through an interprocess communication
connection. rmt is normally started up with an rexec(3SOCKET) or rcmd(3SOCKET) call.
The rmt program accepts requests that are specific to the manipulation of magnetic tapes, performs the commands, then responds with a sta-
tus indication. All responses are in ASCII and in one of two forms. Successful commands have responses of:
Anumber
where number is an ASCII representation of a decimal number.
Unsuccessful commands are responded to with:
Eerror-number
error-message
where error-number is one of the possible error numbers described in intro(3), and error-message is the corresponding error string as
printed from a call to perror(3C).
The protocol consists of the following commands:
S
Return the status of the open device, as obtained with a MTIOCGET ioctl call. If the operation was successful, an
"ack" is sent with the size of the status buffer, then the status buffer is sent (in binary).
Cdevice
Close the currently open device. The device specified is ignored.
Ioperation
count
Perform a MTIOCOP ioctl(2) command using the specified parameters. The parameters are interpreted as the ASCII
representations of the decimal values to place in the mt_op and mt_count fields of the structure used in the ioctl
call. When the operation is successful the return value is the count parameter.
Loffset
whence
Perform an lseek(2) operation using the specified parameters. The response value is returned from the lseek call.
Odevice
mode
Open the specified device using the indicated mode. device is a full pathname, and mode is an ASCII representation
of a decimal number suitable for passing to open(9E). If a device is already open, it is closed before a new open
is performed.
Rcount
Read count bytes of data from the open device. rmt performs the requested read(9E) and responds with Acount-read
if the read was successful; otherwise an error in standard format is returned. If the read was successful, the
data read is sent.
Wcount
Write data onto the open device. rmt reads count bytes from the connection, aborting if a premature EOF is encoun-
tered. The response value is returned from the write(9E) call.
Any other command causes rmt to exit.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWrcmdc |
+-----------------------------+-----------------------------+
SEE ALSO
ufsdump(1M), ufsrestore(1M), intro(3), ioctl(2), lseek(2), perror(3C), rcmd(3SOCKET), rexec(3SOCKET), attributes(5), mtio(7I), open(9E),
read(9E), write(9E)
DIAGNOSTICS
All responses are of the form described above.
BUGS
Do not use this for a remote file access protocol.
SunOS 5.11 6 Nov 2000 rmt(1M)