## how many disks do I have?

how many disks do I have?
# 1
10-31-2001
how many disks do I have?

Hi

How do I check how many disks do I have in Solaris & HP-UX?

Also what does this mean

c9t1d5 in /dev/dsk

what is c, t, d etc

cheers
 g-e-n-o View Public Profile for g-e-n-o Find all posts by g-e-n-o
# 2
10-31-2001
g-e-n-o,

In Solaris type the command format , that will show you a list of drives connected to your system.

You can then select the drive # you want to look at and then type p for the partition table, then type another p to print the table. Type q to quit.

As for the c, t, d:

c = controller number, starting at 0

t = target number on that controller, starting at 0

d = disk number at target location

s = slice number on target disk (I know you didn't ask, but...)

(SCSI assumed, although I believe IDE is basically the same)

So, you have:

c9 = Controller 9 on your system board

t1 = #1 target on Controller 9

d5 = 5th disk on Target 1

I hope this makes sense, and if I'm incorrect, someone let me know.

peace

Last edited by pmetal; 10-31-2001 at 10:36 AM..
 pmetal View Public Profile for pmetal Find all posts by pmetal
# 3
10-31-2001
Hi

I dont understand what is target of a controller, can you explain a bit?
Also from /dev/dsk we cannot determine the number of disks?

cheers
 g-e-n-o View Public Profile for g-e-n-o Find all posts by g-e-n-o
# 4
10-31-2001
It is a little confusing, and I get confused trying to explain it. I believe I may have mis-spoke about the target in my earlier post. It would be easier if I could draw a diagram for ya, but...

Think of the target as a disk/tape/cdrom connected to a controller card. Here's a definition from a Solaris book I have:

Target Number - Target numbers, such as t0, t1, t2 and t3, correspond to a unique address switch setting that is selected for each disk, tape, or CD-ROM. An external disk drive has an address switch located on the rear panel. An internal disk has address pins that are jumpered to assign its target number. Usually t0 - t3 refer to disks, t4 - t5 is tape, and t6 is CD-ROM.

Whereas the Disk Number is the Logical Unit Number (LUN), which reflects the number of disks at the target location. The disk number is always set to d0 with embedded SCSI disks. Which is what we have on our systems, so I'm not sure how you get d5 on yours.

So, lets say you have 2 controllers with 3 disks on each controller, and you want to talk about the 2nd disk on the 2nd controller. That would be:

c1t1d0 (controller and target numbering starts at 0)

I hope I haven't confused you more! I'm not too good at explaining things....maybe someone else can put a different spin on it. If I think of another way to explain it, I'll let you know.

As far as /dev/dsk....you should be able to cd to that directory and do an ls command and using the naming conventions I showed you, be able to figure out how many disks are there. Remember, all instances of c0t0 is one disk, all instances of c0t1 is another disk, and so on...

Did you try the format command? That will list all drives on your system.

peace
 pmetal View Public Profile for pmetal Find all posts by pmetal
# 5
10-31-2001
I have those definition from solaris books too but I dont get it!
So t is the number of disks or d...?
I got t5 from HP-UX
 g-e-n-o View Public Profile for g-e-n-o Find all posts by g-e-n-o
# 6
10-31-2001
Note to pmetal

HTML is allowed in posts, so if you want to make a diagram, just create a little graphic (jpg, gif) and add the link using standard HTML IMG tags. Notice that there is an IMG tag when you post to make it a tiny-bit less typing.
 Neo View Public Profile for Neo Visit Neo's homepage! Find all posts by Neo
# 7
11-01-2001
You can also try

<pre>

df -k

</pre>

this will show you the disks and their partitions.
Do a little bit of a research
 guest100 View Public Profile for guest100 Find all posts by guest100

Test Your Knowledge in Computers #698
Difficulty: Medium
"Homesteading the Noosphere" (abbreviated HtN) is an essay written by Eric S. Raymond about the social workings of proprietary, corporate software development.
True or False?

## How to tell what disks are used for a zpool?

Hello, Does anyone know how I can tell what disk are being not being used by a zpool? For example in Veritas Volume manager, I can run a "vxdisk list" and disks that are marked as "online invalid" are disk that are not used. I'm looking for a similar command in ZFS which will easily show...

## FC related disks

Dear Friends, I would like know what are FC related disks and how it will be viewed by generic OSes (Unix, Unix like, Windows & etc.) AFAIK it is viewed by generic OS as SCSI. Can we have FC related disks as internal storage(physically) of general purpose machine (Server / PC /...

## host cannot see FC disks

Have a V440 server which we need to connect up to a SE6140. Did the zoning on the 3900 brocade silkworm and did mapping from the array to the host manually host initiator did not autodetect the wwn and had to key in manually. probe-scsi-all cannot show the fc disks. What is the problem here?

## Re-using disks

I would like to know if I can move the disks from a V240 chassis into a V440 chassis to use the increased resources (CPU & Memory) to boost performance. I know you can move disks between V210/240 chassis's, but I'm not sure if this would work between 240s & 440s. Any help would be much appreciated.

## disks in solaris

whats the command to find name of all disks. Is it iostat -En ?

## disks broke?

hay I'm new in the AIX-environment. Right now i'm testing some stuff out. But i can't test the LVM-part which is (to me) very important. I have 2 disks in my testmachine but it seems only 1 is working wel. I'll show you the output below of the disks... hdisk0 = in good condition hdisk2 =...

## What do you use to wipe your disks?

What are y'all using to wipe your solaris disks? I am being question by IT Security, what I am using to wipe disk. Is anyone using a 3rd party utility? I have used the format utility in solaris previously. But they are looking for something commercial that I can use. Anyone have...

## New Array of disks

I was just curious if anyone has a good tutorial or some info about how I can create and add an array of disks to solaris 8

## SCSI Disks

Hi Is it possible to install in p5 and pSeries SCSI Disks from SUN on DELL? Will they work? Regards, Pit

## Disks on AIX

Hello I've been working on AIX 5.3 ML3 on IBM pSeries520. That server has 6 HDD drives in 3 volume groups (1+mirror in each group). I must check which phisical disk is which disk in the system. For ex. I want to know that disk in 4th slot in the machine is marked as hdisk5 on AIX. Does anybody...