Ufsrestore


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Ufsrestore
# 36  
Old 01-04-2018
Also, the '*' output by the NAS probably means that the share is not tied to a particular user, i.e., share can be accessed by all-comers.
This User Gave Thanks to hicksd8 For This Post:
# 37  
Old 01-04-2018
Cool..

So now?:
8. Change directory to the top of the hard disk (empty) root
Code:
# cd \

Code:
# ls -l


should see-
Code:
Lost+Found


9. 'ufsrestore' the backup from the NFS storage to the root hard disk
Code:
# ufsrestore rf /mnt/<dumpfile>


Last edited by Stellaman1977; 01-04-2018 at 03:13 PM..
# 38  
Old 01-04-2018
Yes, exactly. The only thing to check is the exact path of your dumpfile....

Code:
# ufsrestore rf /mnt/<dumpfile>

assumes your dumpfile is in the, now mounted, /mnt directory. Is it? Or are there other directories below the share?

e.g.

Code:
# ufsrestore rf /mnt/dir1/dir2/<dumpfile>

Checkout the exact path to your dumpfile, then change directory to your empty hard disk root filesystem, e.g.

Code:
# cd /a

and then restore your root filesystem from the dump.

Repeat, just check that you know the dumpfile path.
This User Gave Thanks to hicksd8 For This Post:
# 39  
Old 01-04-2018
And......when successfully restored, be careful when rebooting because this clone will come up with the same ip address as the production box unless you do something about it. Could cause network chaos.
This User Gave Thanks to hicksd8 For This Post:
# 40  
Old 01-05-2018
OK Thanks again!

so I did:
Code:
cd /a
 ufsrestore rf /mnt/dir1/dir2/<dumpfile.ufs>

and got many error messages such as:
Code:
Warning: /.home/<dir>/<dir>...... No such file or directory

So I interrupted it. Is this normal to see? Nothing was in
Code:
/a

# 41  
Old 01-05-2018
No, that ain't right!!!!!

The only error I would expect to see is a warning that Lost+Found already exists.

Ok, let's recap exactly what we're doing here. Unlike at the start of this thread, you know all of this stuff now so you can very quickly check.

1. This is a Disaster Recovery (DR) routine so we start with an empty machine. Boot from DVD into single user to get a # prompt.
2. Use 'format' to label, partition (VTOC) our slices, and 'newfs' at least the first slice to take our restored root filesystem.
3. We have two mountpoints available on the DVD; /a and /mnt. We are going to restore from a dumpfile mounted on /mnt to our new hard disk (empty) root filesystem mounted on /a. So first mount slice one of our new empty filesystem on /a. Looking in here now, all we see is Lost+Found.
4. Mount our remote NAS dumpfile on /mnt. Looking in /mnt now we see our NAS files.
5. Now change directory back to /a; check again that we only have Lost+Found in here. Issue 'ufsrestore' to tip the whole contents of our dumpfile into this directory. Only error should be a warning that Lost+Found already exists.

That's where we are up to right now so what are you doing wrong????

EDIT: I omitted to say that, at some point, you need to plumb, configure and up a network interface in order to reach the NAS over the LAN.

Last edited by hicksd8; 01-05-2018 at 02:29 PM..
This User Gave Thanks to hicksd8 For This Post:
# 42  
Old 01-09-2018
Without redoing steps 1 through 4 yet, I can say that in step 5, I do not see anything in
Code:
/a

, not even
Code:
Lost+Found

. I believe it went away when I was trying to find
Code:
mnt

and did
Code:
cd /

to see
Code:
mnt

.

Last edited by Stellaman1977; 01-09-2018 at 09:04 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Ufsrestore on Solaris 9

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

2. Solaris

ufsrestore T5240

Hi Friends we have sun T5240 server, we have taken ufsdump of this server remotely with scsi tapedrive, If we need to do ufsrestore means what we have to do, since T5240 has not having scsi port, any procedure is there? Regards Rajasekar (5 Replies)
Discussion started by: rajasekg
5 Replies

3. Solaris

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... (3 Replies)
Discussion started by: pinoy43v3r
3 Replies

4. Solaris

ufsrestore will not boot

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

5. Solaris

What is volume in ufsrestore

Hi Gurus, Can you guys please explain what is volume in ufsrestore? Thanks (2 Replies)
Discussion started by: kumarmani
2 Replies

6. Solaris

ufsrestore

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

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

8. Solaris

ufsrestore?

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

9. Solaris

ufsrestore

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

10. UNIX for Dummies Questions & Answers

ufsrestore -i

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
Login or Register to Ask a Question