• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1209
  • Last Modified:

how to check all 6 hard drives from within Solaris 10

I am installing Solaris 10 for the first time and have no experience installing unix OSs. Only thing I am good at is following directions. I intend to install and reinstall until I am confident enough with its configuration that I can colocate the box. Thus, security is a major concern for me, including concerns regarding someone having physical access of the drives should the box ever get stolen (encryption of the data drives is of great interest to me).


This server has 6 18 gb drives. What command(s) do I use at the console (no gui) to have the system check the integrity of all 6 drives? I guess I am looking for the Sun Solaris 10 equivalent to 'scandisk' or 'chkdsk' -- some means to verify that all 6 drives are functional and error-free.
0
TJonLongIsland
Asked:
TJonLongIsland
1 Solution
 
NukfrorCommented:
In Solaris, the equivalent is "fsck".  *But* you generally don't run fsck while the system is running in a production state as could many times throw lots of false-positives. fsck is by best practice run in what's called single user mode.  The system could run fsck on its own during boot up if it sees a problem but there are cases where the system won't if the issues it sees in UFS look bad enough e.g. it makes *you* run fsck manually.

What I suggest you do is wait just a *little* bit longer this month and Solaris 10 Update 2 will be officially out.  In U2 is what's called ZFS - the last-best file system you'll ever need.  ZFS requires *NO* fsck'ing - ever.  Unfortunately, ZFS isn't coming out boot-ready so you're boot disks will still need to be UFS (w/ logging enabled - which it is by default in Solaris 10).

Solaris doesn't have any file system encryption capabilities that come with the system.  ZFS has been written that it will allow for modules to be added to it that would do this sort of thing - they just haven't been developed yet.

I suggest you take a look here:

http://docs.sun.com/app/docs/doc/817-2271/6mhupg6g0

Also since you are very concerned about security, you might seriously consider using Zones for your externally addressable applications and lock them down using RBAC - first thing I would do is setup a Primary Administrator login with the zone and turn "root" into a RBAC role.

Man, your questions this week basically are opening up many of the feature sets in Solaris 10: IPFilter, SSH, RBAC, Zones, ZFS, you'll probably have SMF questions, FMA, etc etc.
0
 
TJonLongIslandAuthor Commented:
Thanks!

This server is far from being in a 'production' state; I have just been installing Solaris 10 and reading up on everything. My only concern regarding the hard drives is that one began to vibrate really bad when it spun up, so I replaced it with a spare I had. Since the hardware sat unused for 2 years or so, I just want to verify the drives before I actually work on a final install and config.

I really appreciate your info, and must admit, I'm too much of a noob to know what some of the things you mention are without looking stuff up. Aw well, that's why I am here, and why I pay to be able to ask all kinds of questions on this site..

Thanks again!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now