Solaris 7 restore problem

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Solaris 7 restore problem
# 1  
Old 11-14-2001
Solaris 7 restore problem


I am trying to restore a full system, which I backup with the ufsdump command, in to a different unix box.
I partitioned that box(second one) exactly the same as the first one and install the same version of operation system(solaris 7).

I have backed up the first system with:


mt -f /dev/rmt/0cn rewind

ufsdump 0uf /dev/rmt/0cn /dev/dsk/c0t0d0s0
ufsdump 0uf /dev/rmt/0cn /dev/dsk/c0t0d0s3
ufsdump 0uf /dev/rmt/0cn /dev/dsk/c0t0d0s4
ufsdump 0uf /dev/rmt/0cn /dev/dsk/c0t0d0s5
ufsdump 0uf /dev/rmt/0cn /dev/dsk/c0t1d0s0
ufsdump 0uf /dev/rmt/0cn /dev/dsk/c0t1d0s1
ufsdump 0uf /dev/rmt/0cn /dev/dsk/c0t1d0s3

and put everything in to same tape.
Below you can see :


isgsi01(root)40: df -k

Filesystem kbytes used avail capacity Mounted on
/proc 0 0 0 0% /proc
/dev/dsk/c0t0d0s0 1987399 936298 991480 49% /
fd 0 0 0 0% /dev/fd
/dev/dsk/c0t0d0s3 962571 645814 259003 72% /var
/dev/dsk/c0t0d0s4 962571 766780 138037 85% /home
/dev/dsk/c0t0d0s5 3009327 2066073 883068 71% /u01
/dev/dsk/c0t1d0s0 3009327 2262543 686598 77% /u02
/dev/dsk/c0t1d0s1 3009327 2323693 625448 79% /u03
/dev/dsk/c0t1d0s3 3009327 2938899 10242 100% /u04
swap 2761080 6592 2754488 1% /tmp


The problem is that when I try to restore the (root) / and /var
directories the system core dumps and gives me a bus error.
I went through SUN and "ufsrestore procedure for restoring / and /usr" but it says somewhere that I have to unmount the
file system and create a new file system with newfs.
I can NOT do the umount for / or /var.
I get that the / or /var are busy or already mounted.
What can I do for this ?? I am in / directory when I do that.

I use 'ufsrestore srv 7' for example for the /u04 partition
and it works fine. It does the restore without problems.
The same with all the rest apart from /var and /.
Can anyone help please ??

Thank you.
# 2  
Old 11-14-2001

If you need any other information about the ufsdump or restore
please let me know. I need to provide a full restore of the system
by today. Please help if you can !

I hope the below info help a bit.

I ufsdump the filesystems one by one using the SAME TAPE.
when you ufsrestore you can always say:

ufsrestore si 4 and would mean the /u01 partition.

so the file systems in one tape are numbered

1 for /
2 for /var
3 for /home
4 for /u01


Filesystem kbytes used avail capacity Mounted on
dev/dsk/c0t0d0s0 1987399 937764 990014 49% /
/dev/dsk/c0t0d0s3 962571 654355 250462 73% /var
/dev/dsk/c0t0d0s4 962571 727526 177291 81% /home
/dev/dsk/c0t0d0s5 3009327 2066417 882724 71% /u01
/dev/dsk/c0t1d0s0 3009327 2263831 685310 77% /u02
/dev/dsk/c0t1d0s1 3009327 2323695 625446 79% /u03
/dev/dsk/c0t1d0s3 3009327 2939427 9714 100% /u04

/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd

swap 2806960 9336 2797624 1% /tmp


Thanks very much in advance.
# 3  
Old 11-14-2001

The reason you were getting those errors is probably because ufsrestore was trying to restore stuff to /proc or some other realtime OS specific directories which are constantly changing (like /dev/kmem and so on).

Not a good idea to overwrite system memory and process table entries while the system is up Smilie

You would have to either restore only what you need (use interactive ufsrestore) or just restore it to another filesystem other than root (e.g, another disk somewhere)
# 4  
Old 11-14-2001
Hello doeboy,

What I am trying to do is that I want the two systems to be exactly the same. Is this possible ??
Another quiestion: How do I set up te automounter is Solaris 7??

Thank you
# 5  
Old 11-14-2001
If you want the systems to be exactly the same, then boot the target machine from a CD or something like that... then mount the disk, and do the ufsrestore to it.

Checkout automount(1M) and automountd(1M) man pages for more info. You'll have to create an /etc/auto_master if one isn't already there.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Mksysb restore problem

Hello everybody, I have a little problem with my mksysb restore. My system: AIX 6100-09-11-1806. I make mksysb backup of my LPARs by NIM server. I am doing restore tests by NIM server on spare LPAR now. All LPARs were restored allright except for one. During restore it stops with this... (4 Replies)
Discussion started by: Necronomic
4 Replies

2. Solaris

Solaris 10 Restore from flar image

Hi! I want to migrate Sun Fire v240 server (sun4u) with Solaris 10 update 6 to LDOM virtual host (sun4v). I was mount NFS directory from another server in /mnt and did this steps on v240 1) I add to the /var/sadm/system/admin/.platform PLATFORM_GROUP=sun4v # cat... (1 Reply)
Discussion started by: pbubentsov
1 Replies

3. Solaris

Solaris 8 Flar Creation/Restore

I'm new to utilizing Solaris... especially the old 8 version, but I'm trying to find out if there is a way to create a Flash Archive of a disk that can be restored on a smaller size disk or disk of varying size? (2 Replies)
Discussion started by: scifi_vixen
2 Replies

4. Solaris

restore metastat configuration after solaris upgrade

Greetings How can i restore metastat db after a solaris upgrade (9 to 10)? will it work if i save and restore /etc/vfstab and /etc/lvm/ file? root@netad# metastat d35: Mirror Submirror 0: d38 State: Okay Submirror 1: d39 State: Okay Pass:... (2 Replies)
Discussion started by: kashif_islam
2 Replies

5. Solaris

Solaris 2.6 restore from tape

Hope someone can help me here... I've got to restore an E450 with 300MHz cpus which was running Solaris 2.6 from tape. Regrettably the boot drive has failed. I've access to the first release of Solaris 2.6 CD's and to a set of Solaris 9 CD's. I remember that different E450 CPUs needed different... (1 Reply)
Discussion started by: pamplemousse
1 Replies

6. Solaris

Solaris Restore Point

Hi, Is there a Restore Point on Solaris 8 like windows ? Today I restarted my machine and saw that one entire Directory is missing. Need to restore the lost data :(:( (6 Replies)
Discussion started by: angshuman_ag
6 Replies

7. Solaris

Restore a database on solaris..

hi All, Can anyone help me with the set of commands which are used to restore maybe a sybase database on solaris.. (1 Reply)
Discussion started by: sankasu
1 Replies

8. UNIX for Dummies Questions & Answers

Dump and restore problem

Hi all, having problem with dump & restore for cloning simple linux system. The command is : dump -0u -f /temp/var.dump /dev/sda5 But somehow the result displayed: ~~~~~~ dump: ACLs in inode #1250760 won't be dumped: Inappropriate ioctl for device dump: ACLs in inode #1250761 won't be... (1 Reply)
Discussion started by: mycoolwater
1 Replies

9. UNIX for Advanced & Expert Users

solaris 9 using jumpstart to restore

Hello All, I use flar to install servers. I am not sure why it does not restore my hostname.bge0, hostname.bge1, ... from the same server with quad NIC card. Right now, I use a shell script to copy my networking information. Am I doing anything wrong or is flar behaving the way it is suppose... (1 Reply)
Discussion started by: afadaghi
1 Replies

10. UNIX for Dummies Questions & Answers

Need help with restore sun solaris 9

I tried to restore my server with backup tape, but after the restoration complete, install bootblk and edit the vfstab file, i cant boot up my server with the error message can't find /packages. Anyone can help me pls? Thanks!! (1 Reply)
Discussion started by: cybh
1 Replies
Login or Register to Ask a Question