Visit Our UNIX and Linux User Community


ufsdump/ufsrestore problem


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers ufsdump/ufsrestore problem
# 1  
Old 10-23-2007
ufsdump/ufsrestore problem

I ran ufsdump as follows...............

# ufsdump 9ucf /dev/rmt/0n /dev/dsk/c1t9d0s3
DUMP: Writing 63 Kilobyte records
DUMP: Date of this level 9 dump: Tue 23 Oct 2007 02:19:40 PM PDT
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/rdsk/c1t9d0s3 (gambler:/apps) to /dev/rmt/0n.
DUMP: Mapping (Pass I) [regular files]
DUMP: Mapping (Pass II) [directories]
DUMP: Estimated 143656 blocks (70.14MB).
DUMP: Dumping (Pass III) [directories]
DUMP: Dumping (Pass IV) [regular files]
DUMP: 143638 blocks (70.14MB) on 1 volume at 993 KB/sec
DUMP: DUMP IS DONE
DUMP: Level 9 dump on Tue 23 Oct 2007 02:19:40 PM PDT
# ufsdump 9ucf /dev/rmt/0n /dev/dsk/c1t9d0s0
DUMP: Writing 63 Kilobyte records
DUMP: Date of this level 9 dump: Tue 23 Oct 2007 02:21:14 PM PDT
DUMP: Date of last level 8 dump: Tue 23 Oct 2007 01:46:45 PM PDT
DUMP: Dumping /dev/rdsk/c1t9d0s0 (gambler:/sc/odct) to /dev/rmt/0n.
DUMP: Mapping (Pass I) [regular files]
DUMP: Mapping (Pass II) [directories]
DUMP: Estimated 380 blocks (190KB).
DUMP: Dumping (Pass III) [directories]
DUMP: Dumping (Pass IV) [regular files]
DUMP: 250 blocks (125KB) on 1 volume at 2906 KB/sec
DUMP: DUMP IS DONE
DUMP: Level 9 dump on Tue 23 Oct 2007 02:21:14 PM PDT


This is for 2 filesystems but when I run ufsrestore........

# ufsrestore i /dev/rmt/0
ufsrestore > what
Dump date: Tue Oct 23 14:19:40 2007
Dumped from: the epoch
Level 9 dump of /apps on gambler:/dev/dsk/c1t9d0s3
Label: none
ufsrestore > quit


It only shows one filesystem. It should have two....

/dev/dsk/c1t9d0s3
/dev/dsk/c1t9d0s0

What am I doing wrong Smilie
# 2  
Old 10-23-2007
if you use /dev/rmt/0 it will rewind the tape, so you are back on the first dump... you will have to use the mt (man mt(1)) command to forward to the next dump....

# ufsrestore i /dev/rmt/0
...c1t9d0s3...

# mt fsf 1
# ufsrestore i /dev/rmt/0n <--- (where "n" is for No rewind]
...c1t9d0s0...

regards pressy
# 3  
Old 10-24-2007
This is what I did..............

#mt -f /dev/rmt/0 rewind
#ufsrestore i /dev/rmt/0
ufsrestore > what
Dump date: Tue Oct 23 14:19:40 2007
Dumped from: the epoch
Level 9 dump of /apps on gambler:/dev/dsk/c1t9d0s3
Label: none
ufsrestore > quit

#mt fsf 1
#ufsrestore i /dev/rmt/0n
open: No such file or directory
cannot open symbol table file ./restoresymtable

Smilie
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #623
Difficulty: Medium
The Python for loop is radically different from the C/C++ for loop.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem in test file operator on a ufsdump archive file mount nfs

Hi, I would like to ask if someone know how to test a files if exist the file is a nfs mount ufsdump archive file.. i used the test operator -f -a h almost all test operator but i failed file1=ufs_root_image.dump || echo "files doesn't exist && exit 1 the false file1 is working but... (0 Replies)
Discussion started by: jao_madn
0 Replies

2. Solaris

Using ufsrestore from a DAT tape of ufsdump backup

hi, was wondering if there is a problem with the patches, and if we wish to restore everything back to square one, how should we go about using ufsrestore from a DAT tape of ufsdump backup data ? (1 Reply)
Discussion started by: Exposure
1 Replies

3. Solaris

How to pipe ufsdump to ufsrestore?

Dear all, i want to copy the partition contents from a smaller disk to a larger disk but without modifying the target disk partition size. To this end, i tried to use piping ufsdump to ufsrestore as 'ufsdump 0f - /dev/dsk/c0t0d0s0 l ufsrestore -i - /dev/dsk/c0t1d0s0' but it was not successful. Can... (6 Replies)
Discussion started by: hadimotamedi
6 Replies

4. Solaris

How to pipe ufsdump to ufsrestore?

Dear all, i want to copy the partition contents from a smaller disk to a larger disk but without modifying the target disk partition size. To this end, i tried to use piping ufsdump to ufsrestore as 'ufsdump 0f - /dev/dsk/c0t0d0s0 l ufsrestore -i - /dev/dsk/c0t1d0s0' but it was not successful. Can... (0 Replies)
Discussion started by: hadimotamedi
0 Replies

5. Solaris

Problem with ufsdump

Hi All Please help I am trying to dump /var to other disk with below command # ufsdump 0uf /backup /var and i am getting below error DUMP: NEEDS ATTENTION: Cannot open 'sun1/dump' . Do you want to retry the open? ( "Yes" or "No" ) and it's not moving ahead. What am i am... (6 Replies)
Discussion started by: kumarmani
6 Replies

6. UNIX for Advanced & Expert Users

Building New server using ufsdump/ufsrestore

Hi Guys, Marry X-MAX in advance :) I would like to build a new server using ufsdump/ufsrestore. Both the servers are identical hardware and model. I am using Solaris 10 X86 O/S. I am having ufsdump "mydump.rootdump.gz" in a Central NFS server. What I did:- I took backup of root... (1 Reply)
Discussion started by: SanjayLinux
1 Replies

7. Filesystems, Disks and Memory

Building New server using Ufsdump/ufsrestore

Hi Guys, Marry X-MAX in advance :) I would like to build a new server using ufsdump/ufsrestore. Both the servers are identical hardware and model. I am using Solaris 10 X86 O/S. I am having ufsdump "mydump.rootdump.gz" in a Central NFS server. What I did:- I took backup of root... (1 Reply)
Discussion started by: SanjayLinux
1 Replies

8. Solaris

Using ufsdump and ufsrestore

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

9. Solaris

ufsrestore problem

I created a ufsdump of a directory (opt) to a file. The partition it was on had to be resized. I resized the partition. I did a newfs on it. I remounted the partition. I ran ufsrestore fs /tmp/opt.dmp in the /opt directory. It worked the first time. Then I found out I had to resize the partition. I... (5 Replies)
Discussion started by: dredarrow
5 Replies

10. UNIX for Advanced & Expert Users

UFSDUMP & UFSRESTORE problems

Hi, guys ! I need some expert help on following problem: When trying to restore content of a machine using another backup machine using Ufsdump/Ufsrestore, it worked on /local1, but when attemting to do the same on /local2,/local3 and /local4, I get permission problems. Running superuser does... (9 Replies)
Discussion started by: DGoubine
9 Replies

Featured Tech Videos