Solved

SUNOS 4.1.3 Tape Restore failed

Posted on 2004-10-06
4
1,063 Views
Last Modified: 2013-12-27
Hi,

I am trying to restore file systems on SparcStation 20 (SunOS 4.1.3) from a dump tape (made from another SPARCStation20 SunOS 4.1.3).

1) I booted from solaris 1.1.1 CDrom
2) Install Mini OS
3) Restart from the mini OS.
4) newfs /dev/rsd0a
5) mkdir /tmpa
8) mount /dev/sd0a /tmpa
9) cd /tmpa
10) restore -rf /dev/nrst0

It did restore the / file system to it. Then I started to restore /var

1) umount /tmpa
2) newfs /dev/rsd0d
3) mkdir /tmpd
3) mount /dev/sd0d /tmpd
4) cd /tmpd
5) restore -rf /dev/nrst0

It did restore the /var file system to it. Then I started to restore /usr
1) umount /tmpd
2) newfs /dev/rsd0g
3) mkdir /tmpg
3) mount /dev/sd0g /tmpg
4) cd /tmpg
5) restore -rf /dev/nrst0


Unfortunately, it didn't work. Instead, it displayed the following error
message,
/: write failed, file system is full
/: file system full
....
...
expected file nnnnnn, got mmmmmmm
expected file xxxxxx, got yyyyyyy
.......
.......

The /usr partition is using only 528MB on a working SPARCStation 20. I made a 1405MB /dev/sd0g partition in a new SPARC 20. I don't know, why it giving me error message that file system is full.
Also, / is 79MB and /var is 150 MB on working SPARC20 and I made / 150MB and /var 155MB on new SPARC 20.


First, I thought that the dump tape is bad, so I put a crossover Ethernet cable between working SPARC20 and new SPARC20.
Then, on new SPARC20
boot from cdrom
install mini root
newfs /dev/rsd0g
mount /dev/sd0g /tmpg
cd /tmpg
rsh -n hostname dump 0f - /dev/rsd0g | restore rf -

I  got same error messages.

I will be really appreciated if you can help me.

Thanks,
John
0
Comment
Question by:John22
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 40

Assisted Solution

by:jlevie
jlevie earned 100 total points
ID: 12245486
Have you tried making a /usr (sd0g) file system closed in size to what works on the "working SPARCStation 20"? Say something in the 600-800MB range?

I know there's not a problem with restoring to a larger file system, but there might be a problem restoring to a  file system of that size (1.4GB).
0
 
LVL 38

Accepted Solution

by:
yuzh earned 100 total points
ID: 12245562
Not sure why you want to keep Sun OS 4.1.3, consider upgrade to at least Solaris 8.

You can download Solaris Software CD from:

http://wwws.sun.com/software/solaris/binaries/get.html

Now, get back to your question. can you use format -> verify to make sure you have
allocate enough disk space for the partition, it might be the old dump/restore bug.

You can also try to boot up the box use Solaris 8 or newer CD, and then use ufsrestore
to restore the filesystem. (use format -> verify to make sure you get the correct device
name for the partition.)

You need to use your old CD to do "installboot" .
0
 

Author Comment

by:John22
ID: 12247954
Hi,

Yes, I tried /usr partition to 750MB; however, I got same result.

Yes, I can go to "format". My drives is 2 GB drives. I allocated enough disk space for the partition.

I was searching through internet yesterday, and some body has similar problem with restoring only /usr partition. He wrote solution which I don't understand:

"**************************************************
Their replies are quite helpful. All of them think that my / file system of the mini root is  full because 'restore' generate some temporary files.
Actually the two files are /tmp/rstdir*, /tmp/rstmode*.

The strange point is that these two files are not big, only about 1M(maybe 10M?). I am sure the file system is NOT full because I installed the mini root on a 500M partition, you know, the mini root won't take too many spaces. I did expand my swap space which is installed mini root, but it didn't help. Anyway, after I delete it, i am able to restore other file systems.

In the fact, I solved my problem in another way. I restore the file systems in another computer, share it, and then "tar" them to this host. This solutions has a strange point too. When I used 'tar' to copies files from the remote host, it displayed some warnings that,

./etc/restore: permission denied
./etc/in.uucpd: permission denied
.....          (some other files, permission denied too).

I checked the files permission, the permission mode is 400. So it is not readable from NFS. But after my system is recovered, i went to /usr/etc/ and the files ARE there anyway!

***************************************************************"

If you know this solution, please help me.

Thanks,
John
0
 
LVL 38

Expert Comment

by:yuzh
ID: 12248664
If you want to use NFS, you need to let the NFS client has root access to
the filesystem, you need to make sure both NFS server and client knows
each other, defined in /etc/hosts, or NIS/NIS+, or DNS etc, then
share it like:

 share -F nfs -o rw=clientbox,root=clientbox /share-dir

tar is not the tool for the job, it can't handle special files. you can use
cpio:

eg:
 cd /source-dir
 find . -print | cpio -oacv | (cd /target-dir ; cpio -icdmuv )

 man cpio
 to learn more

 Good luck!
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question