1833967 Members
1793 Online
110063 Solutions
New Discussion

suspect disk

 
SOLVED
Go to solution
TMcB
Super Advisor

suspect disk

Hi folks

Does anyone know of a way I can check to see f one of my disks is faulty
eg by scanning it, etc.

It is mounted OK, but funny things have been hapenning to some files, and I would like to rule out a disk fault.

Thanks
7 REPLIES 7
Patrick Wallek
Honored Contributor

Re: suspect disk

A couple of things you can do:

1) Use STM (cstm,xstm) to look at the disk and look at its logs.

2) You can do a dd of the disk, and if the dd doesn't complete successfully then you probably have a problem.

# dd if=/dev/dsk/c?t?d0 of=/dev/null bs=512k
Sanjay_6
Honored Contributor

Re: suspect disk

Hi Terry,

you can do a dd on the disk and check if the disk is having any problem,

dd if=/dev/rdsk/cxtydz of=/dev/null bs=1024k

If this completes with the message so many records in and so many record out, it should be okay. Else you should see some errors.

Hope this helps.

Regds
Helen French
Honored Contributor

Re: suspect disk

Hi,

Several things to try:

1) Run STM and check the disk utilities. Check out the log files.

2) Run dd command:

# dd if=/dev/dsk/cxtxdx of=/dev/null

3) Run fsck - for file system checks, if LVM. Check it for all file systems with full option ( fsck -o full)

4) Check the output of 'diskinfo', 'pvdisplay' and 'ioscan -fnC disk'

5) Check disk through offline diag.

HTH,
Shiju
Life is a promise, fulfill it!
TMcB
Super Advisor

Re: suspect disk

Hi

What does dd do?
Patrick Wallek
Honored Contributor

Re: suspect disk

dd will go through the entire disk and read each block, and then discard into /dev/null (ie. bit bucket). If dd runs into a problem reading one of the blocks on the disk, then it will immediately error out.
TMcB
Super Advisor

Re: suspect disk

Thanks everyone
It came back with no errors