1823255 Members
3145 Online
109648 Solutions
New Discussion юеВ

diskinfo

 
SOLVED
Go to solution
Rich Rossini_1
Occasional Contributor

diskinfo

Hi, could someone please provide me with proper command syntax for "diskinfo"? The disk is c0t5d0s0. Thanks in advance.
4 REPLIES 4
Robert-Jan Goossens
Honored Contributor
Solution

Re: diskinfo

Hi,

Try,

# diskinfo -v /dev/rdsk/c5t0d0

Regards,
Robert-Jan
RAC_1
Honored Contributor

Re: diskinfo

man diskinfo

diskinfo -v /dev/rdsk/cxtxdx

Anil
There is no substitute to HARDWORK
TwoProc
Honored Contributor

Re: diskinfo

I'm guessing that what you're probably tripping up on is the fact that diskinfo wants the character device interface.

So, if you're looking to get information from /dev/dsk/c9t1d1, you need to run the command "diskinfo /dev/rdsk/c9t1d1" .

Notice that it's "rdsk" and not "dsk" - the "r" refers to "raw" or the "character" device for the same disk that dsk refers to.

To clear this up...
/dev/dsk/c9t1d1 and
/dev/rdsk/c9t1d1 are the same exact device, the first is a block interface, adn the latter is the raw (character) device.

To see that this is true, do the following
"ls -al /dev/dsk/c9t1d1 /dev/rdsk/c9t1d1"

You'll see that they are almost exactly the same except for the first character is a "b" for block device on the "dsk" interface, and the first character is a "c" for character (term used interchangeably for raw) device. Also notice that while the minor numbers are exactly the same, the major numbers are different.

It all means that there are two different interfaces to each disk on HPUX - some commands want the raw(character) device and some want the block device interface. Which ones want which? The man pages will almost always tell you - if not, the commands themselves will generally tell you if they want the other type when given the wrong types.
We are the people our parents warned us about --Jimmy Buffett
Stephen Keane
Honored Contributor

Re: diskinfo

diskinfo -v /dev/rdsk/c0t5d0s0 in your case.