Solved

Solaris 2.x Hard disk add.

Posted on 1997-12-19
3
375 Views
Last Modified: 2013-12-16
Have Sparcstation running Sol 2.5.1.  This system had 3 hard
drives.  Target 0 had the O/S.  Target 2 and 3 were general
program/data storage devices.  Of course, I had no backups. (i've since decided not to push my luck and bought a tapedrive).  Target 0, main drive, bit the dust.  Reloaded the O/S and rebuilt passwd/shadow /etc /opt /var (etc.etc.)
Now the question.  How do I get the other two drives back online, mounted.  Is this the vfstab or mnttab entries?  Do I have to run newfs on these (and how).  Basically just want the drives back up and the programs/data available.  This is a standalone system, but is used to dial up and get ppp connection.  The directory structure, I'm thinking may be duplicated on the new device.  I believe there was /opt or some such on the externals, and /opt was built on the new internal.  Thanks for your help.
0
Comment
Question by:dkingsf
[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
3 Comments
 
LVL 2

Accepted Solution

by:
gormenghast earned 100 total points
ID: 1812812
Hi
It is the vfstab file you need to add entries to. This contains information about all disk partitions to mount at boot.
To find out which partitions you wish to mount from your external drives you may have to use format -- just to see what partitions you have.
# format
specify disk.....
format> partition
partition> print
This will show which partitions you have. Then quit from format (^D will quit straight out of format).
If you are unsure about the format command check out the man pages first.
Then you need to add entries in vfstab in the same fashion as the entries you will already see in there for your boot disk.
If your disks were partitioned as a single large partition you will only need to mount /dev/dsk/c0t2d0s2 and /dev/dsk/c0t3d0s2.

To check all this out before editing vfstab, just use the mount command to mount partitions of your externals temporarily.
# mount /dev/dsk/c0t2d0s2 /mnt

Your external disks should not need to have fsck run on them as losing the original boot disk should not have affected these.
Anyway when you try to mount them if there is anything wrong with them you will be informed.

As for /opt -- if you have room in your new directory on the boot disk then mount your external /opt somewhere (/mnt) and copy the contents to the new /opt. Or have the old /opt mounted somewhere permanently and create links to the necessary directories in /opt  on the boot disk.

Hope this helps..
0
 
LVL 3

Expert Comment

by:rickyr
ID: 1812813
Hi...
Just beat me to it gormenghast, I was typing when you added your answer, anyway.
Sounds good to me? just to add.
Did we checked the target nos. If the new internal is set to the default target for a startup drive in Solaris, it will be set to target 3, and will of course clash with the existing external device.
Have the target nos been changed by installing the new internal?

Did we do...
>probe-scsi
at the prom level, just to make sure.

Merry christmas all.

regards
0
 

Author Comment

by:dkingsf
ID: 1812814
Thanks...I figured it was some such.  Just pretty new to unix filesystems and they never spell it out in the books I have...
Wonderfull job, both of you!
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Unix process listing into CSV format 3 87
how to check for shares on aix 1 113
SSH to Solaris server (which uses NIS) 1 52
how to send mail in unix 2 50
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

752 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