Operating System - HP-UX
1753902 Members
9229 Online
108810 Solutions
New Discussion юеВ

Re: Possible disk failure

 
SOLVED
Go to solution
Sally  Devine
Frequent Advisor

Possible disk failure

Is there a command that I could run that would tell me if there is a problem with one of the hard drives? I am thinking 'diskinfo' or 'lvlnboot -v'? I don't have access to an HP system today so I cannot test various commands. Just wondering if someone knew off the top of their head.

Thanks
5 REPLIES 5
Mark Mitchell
Trusted Contributor
Solution

Re: Possible disk failure

I always start with a
pvdisplay -v /dev/dsk/c2t0d0
If there is a problem reading a disk it
will throw up on you here
harry d brown jr
Honored Contributor

Re: Possible disk failure

Sally,

The STM suite, like cstm, xstm, or stm...

live free or die
harry
Live Free or Die
Helen French
Honored Contributor

Re: Possible disk failure

Hi Sally,

A lot of options:

1) Check the hardware errors with Online Diag (STM). Commands - mstm, cstm, xstm

2) Check hardware status through ioscan -fnC disk.

3) Check disk with dd command

dd if=/dev/dsk/cxtydz of=/dev/null.

4) Check with diskinfo

5) Use fsck command for file system check.

Also lvlnboot -v command is for only root disk. This can be used to get information of root, boot, swap and dump LVs.

HTH,
Shiju
Life is a promise, fulfill it!
Jakes Louw_1
Frequent Advisor

Re: Possible disk failure

The system message buffer will show hardware errors, but as this is a rotating buffer, and has no date-timestamp, it sometimes is a little difficult to use to diagnose the start time of the problem. Call "dmesg" and have a look what it gives you. Syslogd should also report something to the system log.
A call to "vgdisplay -v" is also useful, as any disk that cannot be queried shows up very quickly.
Lastly: perform a dd to /dev/null as follows:
dd if=/dev/dsk/cxtxdx of=/dev/null bs=1024k
This will force a read of the suspect disk and show up any I/O problems.
Sanjay_6
Honored Contributor

Re: Possible disk failure

Hi Sally,

You can try "diskinfo -v /dev/rdsk/cxtydz". You can also try "pvdisplay -v /dev/dsk/cxtydz" if this disk is part of a vg.

hope this helps.

regds