Disk Configuration

Posted on 2003-02-19
Medium Priority
Last Modified: 2013-12-27
I just received a Solaris box that is up and running. I'd like to know how can I know if all the disks are "up and running".
1- Could you tell me how to chek that?
2- How can I check the # of disks that I have on that box?
3- If there is one of those that is not mounted, how can I mounted?
Question by:Diepafu
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
1 Comment

Accepted Solution

Nisus091197 earned 200 total points
ID: 7984361
Hi Diego,

This is very straightforward stuff.  You will need to be 'root' on the server.

1&2. run the following from the command line:

df -k | grep '^/dev/'

This lists all locally mounted partitions/slices.

Keep this list handy.

As root, run:


This will give you a list of all the disks detected since last reconfigured reboot.  The disks are numbered from '0' so if the last disk is numbered '1' then you have two disks.

Within the format system, repeat as necessary the following steps:

enter 'p' (for partition)
enter 'p' (for print)

This will show you the way the disk is sliced.  Each slice should have an entry in your /etc/vfstab file if it is to be mounted at boot time.

enter 'q' to exit out of each menu.

Repeat for all disks.

3. If you find a partition that isn't mounted then add it to you /etc/vfstab file.  A typical example looks like:

/dev/dsk/c0t0d0s7       /dev/rdsk/c0t0d0s7      /app    ufs     2       yes     -

Make sure that you can mount it manually first.  run this:

mkdir /a
mount /dev/dsk/c0t0d0s7   /a
cd /a
ls -l

If you like you can paste in the results you get and I can explain things specific to your circumstances.

Regards, Nisus


Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…
Suggested Courses

764 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