Showing results for 
Search instead for 
Did you mean: 

Checking a Raw Partition

Kevin Keller_2
Frequent Advisor

Checking a Raw Partition

I'm running Informix IDS 9.40.FC5 on HPUX 11.11. I suspect I may have a problem with one of the raw partitions. How can I check the partitions, since normal disk checking is useless. Thank you.
Steven E. Protter
Exalted Contributor

Re: Checking a Raw Partition

Shalom Kevin,

Two choices:

1) A utility provided by Informix (I had SAG Adabas raw in a previous job and we had utilities for checking)

2) dmesg - # followed by a dmesg

If there are messages involving the physical disks the raw partition is sitting on, then you are correct.

pvdisplay will show you whats on what disk.

Steven E Protter
Owner of ISN Corporation
Honored Contributor

Re: Checking a Raw Partition

If you askign about checking the integrity of the data, there might be tools within informix. At unix level, you can run a dd on the raw lvol and check it.

dd if=/dev/vgxx/rlvolx of=/dev/null bs=1k

If it reports error, there might be problems with it. Also checl dmesg and syslog.log, diskinfo and check disk with STM.
There is no substitute to HARDWORK
Steve Lewis
Honored Contributor

Re: Checking a Raw Partition

oncheck -cE
does an extent check on all chunks; run when the system is quiet.

oncheck -cDI databasename
to verify data/index integrity and rebuild if necessary.

oncheck --
for the full list of options.

The dd command above will give you an i/o error if it encounters one, you can also run that on the raw logical volume.

armdsp -i to get your arrayid, then
armdsp -a arrayid to check the array for errors.
Sometimes is called amdsp; I don't know why they changed it.
You could also try commandview.

After that there is logprn, amlog/armlog, but you might like to get the response center's help with those.
Steve Lewis
Honored Contributor

Re: Checking a Raw Partition

oops wrong way round- the dd command can also be run on the /dev/rdsk/cXtYdZ lun/disk. Dont forget: rdsk, not dsk

Specify a blocksize of at least a megabyte, possibly as much as 8mb.