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:
booted from cdrom to single user mode boot cdrom -s
used 'format' to create my partitions
created my directories
mounted all of my partitions
cd to desired directory
ufsrestore -ivh /dev/rmt/0n
follow prompts
boot -ar
Seemed to work fine with my first server. 2nd one, not so much.
booted from cdrom to single user mode boot cdrom -s
used 'format' to create my partitions
2a. newfs newly created partitions
created my directories
mounted all of my partitions
cd to desired directory
ufsrestore -ivh /dev/rmt/0n
follow prompts <-- your errors must be in here
boot -ar
You were missing a step (2a) but you must have done it if you mounted the new partitions. The only other part that you could have gone wrong on, as far as I can see, is in 7. Maybe you only added directories by mistake to the restore process. If you had added everything, then even if you were in the wrong slice, it should have restored everything in the wrong place. Check your backups would be the first thing (even if the same tape worked on the other server - maybe someone overwrote them). Post the OS version of both servers and hardware models.
RTM, during the ufsrestore process, I did these steps
ufsrestore -ivh /dev/rmt/0n
ufsrestore> add *
ufsrestore> del lost+found
ufsrestore> extract
Then I get the following message:
You have not read any volumes yet.
Unless you know which volume your file(s) are on you should start
with the last volume and work towards the first.
Specify next volume #: 1
set owner/mode for '.'? [yn] y
ufsrestore> exit
Tape is solaris 9, sun OS 5.9. Both servers are blade 150s.
I'll check the tape. I may have another one laying around.