Sponsored Content
Full Discussion: how many disks do I have?
Top Forums UNIX for Dummies Questions & Answers how many disks do I have? Post 9714 by Perderabo on Thursday 1st of November 2001 02:20:36 PM
Old 11-01-2001
"format" will show all physical disks with sun. "prtconf" is also useful on suns. And "ioscan" or "sam" will do it on hp.

I'm gonna take a crack at describing controllers and targets...

Every disk and tape that you have will be connected to the computer by a cable. Data will go back and forth through that cable. The cable connects to a card in the computer. That card is the controller. Each card gets a number. So that is the controller number that people are talking about.

If you trace the cable from the card to the disk drive, you may find another cable the goes to a 2nd disk drive. Each disk drive will have two places to plug in a cable. The last disk drive should have a terminator instead of a cable on the 2nd connector. The i/o card in the computer and all the drives attached to it until that terminator is a "chain". Each drive on a chain will have an address set in some switches or a dial. And each drive on the chain better have a unique address. This address is that target number. So the disk with the target set to 2 on the first i/o card (controller 0) will be c0t2d0.

That last number will be 0 unless you have a disk array rather than a disk drive.

You can't just count the special files in /dev/dsk. If you unhook a disk drive and throw it away, the special files won't go away with most versions of unix. You can always use mknod to create a new special file. But if you do, a disk drive will not magically appear.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

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... (2 Replies)
Discussion started by: piooooter
2 Replies

2. AIX

SCSI Disks

Hi Is it possible to install in p5 and pSeries SCSI Disks from SUN on DELL? Will they work? Regards, Pit (0 Replies)
Discussion started by: piooooter
0 Replies

3. Solaris

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 (11 Replies)
Discussion started by: BRaider
11 Replies

4. Solaris

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... (4 Replies)
Discussion started by: BG_JrAdmin
4 Replies

5. AIX

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 =... (8 Replies)
Discussion started by: kvanelshocht
8 Replies

6. Solaris

disks in solaris

whats the command to find name of all disks. Is it iostat -En ? (1 Reply)
Discussion started by: vikashtulsiyan
1 Replies

7. Solaris

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. (4 Replies)
Discussion started by: Chains
4 Replies

8. Solaris

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? (7 Replies)
Discussion started by: incredible
7 Replies

9. Filesystems, Disks and Memory

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 /... (1 Reply)
Discussion started by: Tlogine
1 Replies

10. Solaris

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... (5 Replies)
Discussion started by: robertinoau
5 Replies
fddisk(8)						      System Manager's Manual							 fddisk(8)

NAME
fddisk - FDI disk maintenance utility SYNOPSIS
/sbin/fddisk options special OPTIONS
Unless this option is specified, an attempt to format or to install a file system fails in two cases. The first failure occurs when the device has been opened since the media was inserted. The second failure occurs if the device is currently opened by another process. For- mats the media to the density appropriate for that media. Copies a hex dump of sector number PSN to stdout. Uses the interleave factor nnn for formatting. If specified, ccc indicates an additional intercylinder interleave. Copies a packed-C hex dump of the entire disk to stdout. Specifies silent mode. This option blocks informational messages from appearing on stderr. Reads the entire media. The command fails if the utility finds a bad sector. Waits for media to be inserted into the drive if none is present. Waits for new media to be inserted into the drive if none is present or if the current media has been opened since it was last inserted. Reads the disk and reports on the format of the disk. OPERANDS
Specifies an unmounted, raw device pathname. This device must be an FDI interface (fd). DESCRIPTION
The fddisk utility, an FDI (integrated Floppy Disk Interface) disk maintenance program, can format a floppy disk, scan a floppy disk for bad blocks, and read and write selected blocks. It can be used in shell scripts for checking the status of floppy disks. Such status checks include checking for or waiting for the presence of media, and checking for or waiting for the user to change the media. RESTRICTIONS
The fddisk utility has the following restrictions: You must have read/write access to the device. The device must not be mounted. The program can only be used with a 3.5-inch floppy disk in the RX26 drive. In some cases, it might not be possible to format a floppy disk at a higher density than it is already formatted. If this situation occurs, the floppy disk must be bulk erased before it can be reformatted at a higher density. EXAMPLES
This example formats a floppy disk in drive zero: # /sbin/fddisk -fmt /dev/rdisk/floppy0a This example formats a floppy disk in drive zero when the disk has been read or written since it was inserted into the drive: # /sbin/fddisk -fmt -f /dev/rdisk/floppy0a SEE ALSO
Commands: mount(8), restore(8), uerf(8) Files: fd(7) fddisk(8)
All times are GMT -4. The time now is 10:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy