Restoring OS and applications to Sparc workstation
Restoring OS and applications to Sparc workstation
Author
Discussion

Blue32

Original Poster:

454 posts

200 months

Wednesday 11th April 2018
quotequote all
I have got the fun task of restoring the OS and application software on a Sun Sparc 20 workstation which runs a piece of test equipment. The system HDD failed with lots of corrupted sectors preventing the workstation from booting and couldn’t be recovered. I have got replacement HDD, but run in to a bunch of problems:

I don't understand Sun/Sloaris/UNIX it all a bitwobble to me

I’m not sure what version of Solaris was used, think it was possibly Solaris 1.x based on system age (have a cupboard full of various versions of Solaris from other systems which we no longer have so don’t know what belongs to what).

The application software, which was on quarter-inch cartridge tapes has been damaged by a tape drive where the rubber drive rollers turned in to a sticky gue and coated the tape making it useless.

The original system manufacturer doesn’t have anyone left who understand the Solaris environment or Sun hardware, so they can’t help.

On the plus side I have what looks like a complete system backup on a bunch of DDS3 backup tapes which someone made about 5-10 years ago using the TAR.GZ command according to the label on the tape, (no the system wasn't regularly backed up as no one new how to do it).

I have some basic documentation which shows how the backups were made and what commands to use to restore data. However, there isn’t any details on how to do a complete system recovery.

My limited understanding is each tape is a backup of a partition from the HDD, but I can’t figure out how to restore the data to the new HDD.

So far I have managed to boot the workstation from a Solaris CD which gave me the option to install Solaris or go to a single user command line. I tried the restore commands listed in the documentation at the command line, but just got an error message that the command was not recognised. (cant remember the exact commands at the moment)

The main questions are:

Do I need to format/partition the new disk first before restoring the data? Issue here is I’m not sure on size of partitions.

Do I need to install Solaris so I can access the tapes? I assumed booting using the CD to the command line would work a bit like the DOS prompt and give enough to do a restore.

If I have to install Solaris, will it run in to problems when the restore from tape overwrites the new install with the backup version?

Thanks

peterperkins

3,461 posts

273 months

Wednesday 11th April 2018
quotequote all
What is the piece of test equipment.

Is there a modern solution/replacement for it?

Your recovery problem sounds like as nightmare..

Perhaps pics of the equipment you have might help with ideas.

Blue32

Original Poster:

454 posts

200 months

Wednesday 11th April 2018
quotequote all
peterperkins said:
What is the piece of test equipment.

Is there a modern solution/replacement for it?

Your recovery problem sounds like as nightmare..

Perhaps pics of the equipment you have might help with ideas.
its a system for semiconductor testing unfortunately there is no modern replacement.

jesta1865

3,453 posts

240 months

Wednesday 11th April 2018
quotequote all
you could do a lot worse than get hold of a unit that allows you to copy from one drive to another without a pc involved.

they normally do sector by sector copies and will ignore the bad sectors.

this may get you into a position that you can boot up the drive and then look into proper backups and updating the software etc.

i can't promise it will work, but one of them once managed to recover data from a drive that failed with an sql dbase on that wasn't being backed up.

the 3rd party company who installed the software were meant to have set up backups, they didn't, the company hadn't been informed and my mate called me when they couldn't get in etc.

i just tried it as i had one and a drive knocking around. it worked for me, just a thought.

good luck.

if you are stuck with sparc / solaris support, try a company called the cutter project, they do remote access solutions, but they used to use sparc to supply the solution. they may be able to help, but it will cost. if they are still trading that is.


maffski

1,905 posts

190 months

Wednesday 11th April 2018
quotequote all
Does the test system manufacturer have non solaris versions of the old software available? If so getting it running again on DOS/Windows might be easier.

If your unfamiliar with Unix in general rather than Solaris specifically getting the tar file off the tapes and then transferring it to a Windows machine (say with FTP) may be easier, 7-zip will uncompress .tar.gz

I work with an electrical component manufacturer and they are a nightmare for things like this - equipment so old you can't find out anything about it, their main software system was custom written in 1984 and has just been patched and ported for decades - like anyone working now can support COBOL written for a Wang VS.

Might be worth just making it clear that something like this can end up taking dozens of hours and buying new might be a cheaper option.

George Smiley

5,048 posts

112 months

Thursday 12th April 2018
quotequote all
Blue32 said:
peterperkins said:
What is the piece of test equipment.

Is there a modern solution/replacement for it?

Your recovery problem sounds like as nightmare..

Perhaps pics of the equipment you have might help with ideas.
its a system for semiconductor testing unfortunately there is no modern replacement.
Work in Semiconductors and we have some old Sparc 20's we are about to recycle...

TooLateForAName

4,935 posts

215 months

Thursday 12th April 2018
quotequote all
First thing would be to make sure you cant damage the backups. Go through and make sure the write protect tabs are on - I've seen people who arent familiar with unix screw up their tapes.

Does this workstation control some other hardware?

If the tapes are tar then they don't depend on the partitions - it is a file archive - no strange formats, as said the files can be read on other machines quite easily.

I'd install solaris then go from there.

As an aside, I'd be taking this opportunity to do an audit of whatever other kit is floating about in a similar state. I did a recovery on a similar sounding system a few years ago and charged £5K for the weekend (I really didn't want to do it but felt obliged to quote, I didn't know that all the other people they approached declined).

I'd also take up the possible offer of another sparc box made above - having spares might be sensible.

o0ps

16 posts

246 months

Thursday 12th April 2018
quotequote all
Sounds like you have been given a fun job to do especially with no UNIX knowledge.

First off I would look at the backup tapes / instructions and see what has been backed - perhaps its only the application that needs recovering onto a base
install of Solaris.

Usually with Solaris the HD will be partitioned into /, /var and swap at a minimum and usually /opt /usr /home with older machines and smaller disks.

It should be possible to put the old disk in at the same as the new disk - it might be possible to recover some partitions from that. A fsck of the partitions will find out which are still usable. You will have to change the SCSI jumpers on one of disks to get them bot visable.

If there is a full backup of every partition you will need do a bare metal recovery which involves booting from the CD/DVD, partitioning the new hard disk as required and recovering each partition one at time onto the new disk , otherwise you run into problems of overwriting files that are currently in use.

If you are unable to get the partitions needed and sizes , you could get away with just creating fewer larger partitions instead - is the new hard disk much bigger than the original - sounds likely if the machine is very old (more like ancient if it really is 1.x).

Seeing the instructions you do have would help a lot.

Anyway to actually answer your specific questions.

Yes the hard disk needs partitioning if you aren't installing the OS onto it. If you install an OS it will create base partitions for you.
No you could do it from the command line after booting from the CD. There was a change from Solaris 1.x to 2.x (BSD to SVR4) which may cause issues - I don't think I ever used 1.x but I remember a lot of user whinging when they changed over.
Yes there will be problems recovering onto a running system but that depends on what partitions were backed up.

I think you will need a lot of hand holding with this - Im pretty much free this afternoon - maybe a Skype session with webcam pointing at console.

If its a vital bit of kit that you need back quickly the company might have to cough up and get someone in.



Blue32

Original Poster:

454 posts

200 months

Thursday 12th April 2018
quotequote all
maffski said:
Does the test system manufacturer have non solaris versions of the old software available? If so getting it running again on DOS/Windows might be easier.
Unfortunately not the hardware was specifically designed to work with Sparc and interfaces via the SCSI bus.

George Smiley said:
Work in Semiconductors and we have some old Sparc 20's we are about to recycle...
Thanks for the offer, fortunately we have some spares, have got couple of each Sparc 5, 10 & 20 we used to have other Sun based kit which has all gone, but fortunately we hung on to the workstations.

o0ps said:
Sounds like you have been given a fun job to do especially with no UNIX knowledge.

First off I would look at the backup tapes / instructions and see what has been backed - perhaps its only the application that needs recovering onto a base
install of Solaris.
Usually with Solaris the HD will be partitioned into /, /var and swap at a minimum and usually /opt /usr /home with older machines and smaller disks.
Now i have had a chance to have a proper look, the tapes had been made using the ufsdump command, the documentation says to use the ufsrestore /rvf/rst0 command.
The tapes are helpfully labelled with each partition so at least I know the order they have to go back in, have got partitions a-f there is also a tape labeled as full system backup using tar.gz

o0ps said:
If there is a full backup of every partition you will need do a bare metal recovery which involves booting from the CD/DVD, partitioning the new hard disk as required and recovering each partition one at time onto the new disk , otherwise you run into problems of overwriting files that are currently in use.

If you are unable to get the partitions needed and sizes , you could get away with just creating fewer larger partitions instead - is the new hard disk much bigger than the original - sounds likely if the machine is very old (more like ancient if it really is 1.x).

Seeing the instructions you do have would help a lot.

Anyway to actually answer your specific questions.

Yes the hard disk needs partitioning if you aren't installing the OS onto it. If you install an OS it will create base partitions for you.
No you could do it from the command line after booting from the CD. There was a change from Solaris 1.x to 2.x (BSD to SVR4) which may cause issues - I don't think I ever used 1.x but I remember a lot of user whinging when they changed over.
Yes there will be problems recovering onto a running system but that depends on what partitions were backed up.

I think you will need a lot of hand holding with this - Im pretty much free this afternoon - maybe a Skype session with webcam pointing at console.

If its a vital bit of kit that you need back quickly the company might have to cough up and get someone in.
Thanks for the offer, unfortunately in the environment it is located Skype/webcam isn’t an option.

I have got a guy from our IT support coming to see me next week, who seems to be looking forward to the challenge. When I tried them before for similar problems with other lab equipment they didn’t want to get involved, which is why I have ended up trying to do it myself.

I did make some progress, I managed to install MINIROOT from a CD which seemed to allow a few more commands to be used.
Although it doesn’t seem quite right as the system will boot to the # prompt after the install, but if I boot again it just goes to the ok prompt saying it can’t find the boot device and I have to re install MINIROOT again so i can get the # prompt.

Did have a bit of a panic at first when every tape I tried was getting I/O errors, via process of elimination I discovered even though they are DDS3 tapes they were made with a DDS2 drive apparently that makes a differenceconfused . Once I hooked up a DDS2 drive the system was able to read the tapes.

I managed to recover from the first tape and that seems to have setup some directories, USR1, 2, 3 ect which matches the tape labels. Although it did throw up some errors, something along the lines of directory being recovered to was full?


TooLateForAName

4,935 posts

215 months

Friday 13th April 2018
quotequote all
miniroot usually runs on a virtual disk in memory (ramfs). Thats why it doesnt persist through a reboot.

Are you sure that you are recovering files to the actual disk? If you're recovering to a ramfs then you're very likely to run out of space.

Blue32

Original Poster:

454 posts

200 months

Friday 13th April 2018
quotequote all
TooLateForAName said:
miniroot usually runs on a virtual disk in memory (ramfs). Thats why it doesnt persist through a reboot.

Are you sure that you are recovering files to the actual disk? If you're recovering to a ramfs then you're very likely to run out of space.
That makes sense, I wondered why what I recovered kept disappearing.

Been learning how to format and partition the replacement HDD, they don't make it easy do theywobble whats made it more difficult is that I don't have internet where the system is so have to keep going between lab and office to ask google. Thought about moving workstation to office, but don't really fancy carrying a 21" CRT monitor aroundhehe

xeny

5,561 posts

109 months

Friday 13th April 2018
quotequote all
You can do the whole install over a serial terminal if it comes down to it - SUN sold SS20s without a frame buffer, and you only ever set those up from a serial terminal

devnull

3,873 posts

188 months

Sunday 15th April 2018
quotequote all
I feel your pain - my dad works in a similar industry and would call me to help recover zomibifed old machines that were critical to the operation of manufacturing equipment. The support and repair costs were usually easily into 5 figures for this.

Anyway - there are a lot of videos on the sunspace 20 on youtube. Might be useful if you need to see how the machine 'should' act during startup.This one has some useful tidbits https://www.youtube.com/watch?v=wRVXdr3ESqc

Good luck!