Operating System - HP-UX
1834814 Members
2367 Online
110070 Solutions
New Discussion

Commands for reviewing disk health

 
SOLVED
Go to solution
Manuales
Super Advisor

Commands for reviewing disk health

what commands could i use to verify if a disk is bad or not?
what kind of errors would appear?

thanks.
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor
Solution

Re: Commands for reviewing disk health

Hi Manuales:

I know from an earlier post that you have STM and EMS installed and they will often alert you to a failing device.

For mirrored logical volumes, look for any "stale" extents with 'lvdisplay'.

If you suspect a bad disk, you can test it thusly:

# dd if=/dev/rdsk/cXtYdZ of=/dev/null bs=1024k count=1000

Note the use of the RAW disk device to bypass the LVM layer. This command will read 1,000 blocks of 1024k bytes. If there are no errors, you will see an equal number of input and output record counts:

1000+0 records in
1000+0 records out

The above is a quick test. A more exhaustive one is to let 'dd' run until it gets an EOF condition.

Regards!

...JRF...
Manuales
Super Advisor

Re: Commands for reviewing disk health

Hi James ..
yeap, i remember you told me about STM and EMS , but also i want to learn commands on line ......

thanks for the command, i will verify it and also i will study about STM and EMS .. thanks a lot !!!!

Regrads, Dani.