Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Disk Configuration

Posted on 2003-02-19
1
Medium Priority
?
191 Views
Last Modified: 2013-12-27
Hello,
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?
Thanks
Diego
0
Comment
Question by:Diepafu
1 Comment
 
LVL 5

Accepted Solution

by:
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:

format

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
http://www.omnimodo.com

0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…
Suggested Courses
Course of the Month13 days, 3 hours left to enroll

578 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