Operating System - HP-UX
1834146 Members
2340 Online
110064 Solutions
New Discussion

Re: diskinfo return a 0 bytes size

 
Thi Vu
Frequent Advisor

diskinfo return a 0 bytes size

Hello everyone,

I'd just added a new 18Gbytes disk drive and when I did the diskinfo command, I got this:

# diskinfo /dev/rdsk/c0t11d0
SCSI describe of /dev/rdsk/c0t11d0:
vendor: SEAGATE
product id: ST318436LC
type: direct access
size: 0 Kbytes
bytes per sector: 0

What can I do to fix this?

TIA
Thi
6 REPLIES 6
Patrick Wallek
Honored Contributor

Re: diskinfo return a 0 bytes size

Are you sure the disk is good? Apparently HP-UX saw the disk since it created the device file.

What happens if you do a:

# dd if=/dev/rdsk/c0t11d0 of=/dev/null bs=4m

Does it succeed or does it error out?

What type of machine is this on? What SCSI interface is it on? Is it the correct type of disk for the SCSI card it is attached to?
Sanjay_6
Honored Contributor

Re: diskinfo return a 0 bytes size

Hi,

If diskinfo reports the size as "0", the disk is bad.

Try to get a replacement and try.

Hope this helps.

Regds
Bill McNAMARA_1
Honored Contributor

Re: diskinfo return a 0 bytes size

The only time this wouldn't be a bad disk is when it was the 'phantom disk' or 'phantom lun'.

If you have a SCSI target, it t11, you will always have a d0 behind it, even if it exists or not.

what does
ioscan -fnk
return?

Later,
Bill
It works for me (tm)
Thi Vu
Frequent Advisor

Re: diskinfo return a 0 bytes size

Patrick and Bill

This is what I got from the command:

dd read error: Invalid argument
0+0 records in
0+0 records out

Also, the ioscan -fnk return:

target 5 8/4.11 tgt CLAIMED DEVICE
disk 2 8/4.11.0 sdisk CLAIMED DEVICE SEAGATE ST318436LC
/dev/dsk/c0t11d0 /dev/rdsk/c0t11d0

TIA
Thi
Sanjay_6
Honored Contributor

Re: diskinfo return a 0 bytes size

Hi,

Looks like you have a faulty disk.

Hope this helps.

Regds
Jeff Schussele
Honored Contributor

Re: diskinfo return a 0 bytes size

Hi This,

I agree with the others - sounds like a bad disk.
But if it had "lived" somewhere else - another array for ex - it's possible it has a strange low-level on it.
If its in an HP array you could try to do a format (not mediainit) by:

format /dev/rdsk/c0t11d0

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!