how many disks do I have? | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

how many disks do I have?

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 10-31-2001
g-e-n-o g-e-n-o is offline
Registered User
 
Join Date: Oct 2001
Last Activity: 8 April 2002, 11:58 AM EDT
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #2  
Old 10-31-2001
pmetal pmetal is offline
Registered User
 
Join Date: Oct 2001
Last Activity: 14 June 2004, 3:50 PM EDT
Location: Stafford, VA
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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..
Sponsored Links
    #3  
Old 10-31-2001
g-e-n-o g-e-n-o is offline
Registered User
 
Join Date: Oct 2001
Last Activity: 8 April 2002, 11:58 AM EDT
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
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
    #4  
Old 10-31-2001
pmetal pmetal is offline
Registered User
 
Join Date: Oct 2001
Last Activity: 14 June 2004, 3:50 PM EDT
Location: Stafford, VA
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #5  
Old 10-31-2001
g-e-n-o g-e-n-o is offline
Registered User
 
Join Date: Oct 2001
Last Activity: 8 April 2002, 11:58 AM EDT
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #6  
Old 10-31-2001
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
 
Join Date: Sep 2000
Last Activity: 22 December 2014, 1:00 AM EST
Location: Asia pacific region
Posts: 13,039
Thanks: 547
Thanked 914 Times in 412 Posts
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.
Sponsored Links
    #7  
Old 11-01-2001
guest100's Avatar
guest100 guest100 is offline
Banned
 
Join Date: Oct 2001
Last Activity: 9 May 2006, 9:51 AM EDT
Location: London, UK
Posts: 146
Thanks: 0
Thanked 0 Times in 0 Posts
You can also try

<pre>

df -k

</pre>

this will show you the disks and their partitions.
Do a little bit of a research
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help with finding WWN of SAN disks rkruck Filesystems, Disks and Memory 1 09-17-2009 06:42 PM
Add new disks and expandlv r4sutton AIX 7 09-04-2009 11:21 AM
Re-using disks Chains Solaris 4 09-16-2008 05:56 AM
Configurin EMC SAN disks on AIX ronellevan AIX 1 06-10-2008 11:26 AM
Disks on AIX piooooter UNIX for Dummies Questions & Answers 2 03-07-2006 05:20 AM



All times are GMT -4. The time now is 03:44 AM.