Ufsrestore on Solaris 9


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Ufsrestore on Solaris 9
# 1  
Old 01-29-2019
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 all of them or just the root?


Quote:
1. Boot from DVD into single user and 'newfs' the root filesystem slice (c0t0d0s0).
2. Plumb, configure and up a network interface, and mount your NAS under /mnt
3. mount your now empty root filesystem under /a, cd into /a, check for Lost+Found as the sole contents.
4. Stay in /a and ufsrestore your root filesystem. When finished check the contents of /a looks like a root filesystem.
5. If this file exists immediately delete it:

Code:
# rm restoresymtable
Thanks!
# 2  
Old 01-29-2019
The restoresymtable is a temporary file for ufsrestore, and can be safely removed.
(Actually ufsrestore only needs it if the dump file is on tape and spans over more than one tape.)
By default ufsrestore puts it at the top of the to-be-restored filesystem.

Last edited by MadeInGermany; 01-29-2019 at 03:20 PM..
These 2 Users Gave Thanks to MadeInGermany For This Post:
# 3  
Old 01-30-2019
Thanks.. Does that mean I should remove it? Or can I just leave it on the root as well as the other slices?

Last edited by Stellaman1977; 01-30-2019 at 01:35 PM..
# 4  
Old 01-30-2019
Your decision.
Usually I removed them, in order to occupy less space on the file system (and on the backup medium).
Also saved me from "what's this?" questions Smilie
This User Gave Thanks to MadeInGermany For This Post:
# 5  
Old 02-07-2019
Thanks.. I've proceeded further along but have finally hit a snag.



I was unable to install boot blocks using this:
Code:
# installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/cwtxdys0 (uname = SUNW,Sun-Blade-2500)


I get syntax error: '(` unexpected


So, I skipped the step because my notes said I may have to install boot blocks, not definitely have to. I'm reusing an old drive and thought its probably already there.


But at this point, when I try to boot to the root volume in single user mode # boot -sw I get
Code:
Boot device: /pci@1d, 700000/scsi@4/disk@0,0  File and args: sw
The file just loaded dos not appear to be executable


Is this a boot block issue?

--- Post updated at 09:39 AM ---

I'm suspicious of uname and the device. (and the number for that matter)


Should it be something more like:
Code:
installboot /usr/platform/`SUNW,Sun-Blade-2500 -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s3

or:
Code:
installboot /usr/platform/`SUNW -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s3

0 is my root slice and 3 is my usr so I'm not sure which would be right
# 6  
Old 02-07-2019
Yes, this is a boot block issue.
Code:
# man installboot
...
     installboot bootblk raw-disk-device

So it is actually
Code:
# installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/cwtxdys0

/dev -> device
rdsk -> raw disk
You can look at the raw disk device and the bootblock file on the install medium
Code:
# ls -l /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/cwtxdys0

and even check their file type
Code:
# file /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/cwtxdys0

The installboot command copies the file to a certain area on the disk (that is not visible in the file system).

Between the backticks there is a sub command
Code:
# uname -i

The shell runs it and replaces the backticks portion with the result, like this:
Code:
# ls -l /usr/platform/SUNW,Sun-Blade-2500/lib/fs/ufs/bootblk /dev/rdsk/cwtxdys0

This User Gave Thanks to MadeInGermany For This Post:
# 7  
Old 02-07-2019
Thanks.. Yes I was reading the man after I replied and realized 'uname -i' was correct and 0 is the right slice. (Should have thought to check that sooner- sorry)
To be clear, I'm supposed to replace x,y, and z with numbers- correct?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Ufsrestore

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

2. 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

3. 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

4. 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

5. 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

6. Solaris

steps to ufsrestore

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

7. 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

8. Solaris

ufsrestore, revisited

I just installed solaris 9 on a sunblade 150(sparc), and have it partitioned. I've been using ufsrestore to restore bring the config from my old system, to the sunblade. I'm not having any luck. The root directory restore seems to work. When I try to restore /usr, I get an "/usr/sbin/fsck not... (4 Replies)
Discussion started by: ECBROWN
4 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