hdds physically

Hi,

I've a HP-UX 10x running on HP9000 box and also I have 3 scsi hdd(9Gb),
one of them is working. I need to check the other 2 hdd physically.

Is there an utility to check them from unix or another way to do it?

Thanks....

Not sure what you want to check for. One idea is to use dd to read from the disk and write to /dev/null.

Hi,

I want to check if the hdd hasn't a physical damage (bad cluster or sectors).

Then use dd to read the whole thing and see if that works.

Here is Steps,

#ioscan -fnCdisk
the disk will displayed as /dev/dsk/c#t#d#
identify the disk which you need to check
use dd command to identify the disk as well as check for bad blocks
#dd if=/dev/dsk/c#t#d# of=/dev/null bs=512 (The disk will start blinking once i/o operations will start)

Regards,

Awadhesh

I would rather dd from the raw device and read bigger chunks
e.g.
dd if=/dev/rdsk/c?t?d? of=/dev/null bs=1024k

If your disk is defunct then the command would probably hang and could not be killed.
Therefore better start it as a batch job,
or if run from the console run tsm before
to have another virtual terminal to leave you a prompt.

You could also let the device try to identify

diskinfo -v /dev/rdsk/c?t?d?

If not all fields are populated there might be a problem with the disk.

Also see if ioscan reports loss of hardware

/usr/sbin/ioscan -fCdisk|grep NO_HW

If you have OnlineDiag installed (swlist OnlineDiag)
you could run stm and read info logs of disk.

If you have EMS running you should check its log for any
monitoring events
more /var/opt/resmon/logs/event.log
But if you had it should have warned you by some notification email.