Operating System - HP-UX
1830624 Members
2007 Online
110015 Solutions
New Discussion

Re: pvcreate: writing LVM record: I/O error

 
SOLVED
Go to solution
Prashant Zanwar_4
Respected Contributor

pvcreate: writing LVM record: I/O error

What the above error could be? I checked disk is available to system, diskinfo didnt give any error...

Pls reply
Thanks and regards
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
7 REPLIES 7
RAC_1
Honored Contributor
Solution

Re: pvcreate: writing LVM record: I/O error

what does stm say? dd if=/dev/rdsk/cxtxdx of=/dev/null bs=2k

Does that give any error??

Anil
There is no substitute to HARDWORK
Sanjay_6
Honored Contributor

Re: pvcreate: writing LVM record: I/O error

Hi,

Looks like you have a faulty disk. Check using dd,

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

If this is a san attached disk, make sure the zoning has been done correctly.

Hope this helps.

Regds
Sanjay_6
Honored Contributor

Re: pvcreate: writing LVM record: I/O error

Hi,

If there is nothing on the disk that is of value, say this is a new disk, you can dd to this disk and see if you are able to write to it. You may be able to read / do query on the disk, but maybe unable to write to it.

try,

dd if=/dev/rdsk/some_other_disk of=/dev/rdsk/this_faulty_disk bs=64k count=160

This will write 10MB worth of data from some_other_disk to this faulty_disk and if that is okay, you should be able to do pvcreate. Else you are having problem writing to the disk.

Hope this helps.

Regds
Sundar_7
Honored Contributor

Re: pvcreate: writing LVM record: I/O error

sometimes a mediainit that was interrupted halfway can make the disk unusable.

Try a mediainit on the disk again if the DD reads didnt report any error.
Learn What to do ,How to do and more importantly When to do ?
Helen French
Honored Contributor

Re: pvcreate: writing LVM record: I/O error

It could be a bad disk. Check the disk with stm tools (cstm, stm or mstm) or dd command. If it gives an error, you need to replace the drive.

# stm

Check with disk verification tools.
Life is a promise, fulfill it!
Prashant Zanwar_4
Respected Contributor

Re: pvcreate: writing LVM record: I/O error

Sorry all!
I tried on VDEVs probably...Not able to track exactly...Sorry again
Thanks
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Prashant Zanwar_4
Respected Contributor

Re: pvcreate: writing LVM record: I/O error

thx
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."