Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

multiple Hard disk...

Posted on 1999-07-21
1
Medium Priority
?
265 Views
Last Modified: 2013-12-27
I have multiple hard disks in my Solaris 2.6 m/c. All the hard disks have the same file system. OS recognizes all the hard disks. Now the question is "Programmatically how do i find the number of hard disks. How is each hard disk identified so that i can select the hard disk at random and perform operations on it."
    QUICK Responses are expected....
0
Comment
Question by:jituj
[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
1 Comment
 
LVL 3

Accepted Solution

by:
brauner071697 earned 80 total points
ID: 2011607
I don't known what you mean exactly but each disk in solaris has the following name:
Under the /dev/dsk or /dev/rdsk you have for each disk and slice on it a device.
c0t0d0s0 for example is c0 -> controler 0 (the first controler)
                                    t0 -> target 0     (SCSI ID 0)
                                    d0 -> disk0       ( for multiple LUN support)
                                    s0 -> slice 0     (if you have more than one slice)
With the command df -k you find the mounted filesystems in your system with their capacity.
In the /dev directories you can find each disk in your system.

regards
GB

0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
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…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

721 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