LVM and VxVM

pvcreate: IO error on Physical Volume device

 
Daniel A
Advisor

pvcreate: IO error on Physical Volume device

Hi!

I have a Blade BL870c with HP-UX 11.31 installed. I allocated a LUN since XP12000. I want create a new volume group, but when I try to do it obtain the followin error:

pvcreate: IO error on Physical Volume device

Somebody can help me?
10 REPLIES 10
Robert-Jan Goossens
Honored Contributor

Re: pvcreate: IO error on Physical Volume device

Hi Daniel,

I'm just wondering if there could be a configuration error on your XP active-avtive or firmware.

Regards,
Robert-Jan
Alex Georgiev
Regular Advisor

Re: pvcreate: IO error on Physical Volume device

Can you do a diskinfo on the device? What does diskinfo say?
psreedhar
Frequent Advisor

Re: pvcreate: IO error on Physical Volume device

Hi,

pvcreate command just try to write some 2K of data on the disk.
It through up such error only when it is not able to write to the disk.

I suspect, you have presented the disk as read only from xp12k.

try running the following two commands and send me the output.

dd if= of=/dev/null count=1 seek=8 bs=1024
dd of= if=/dev/zero count=1 seek=8 bs=1024

Based on the above output i can tell what is wrong with the disk.
psreedhar
Frequent Advisor

Re: pvcreate: IO error on Physical Volume device

One out of box suggestion....

If you are creating a fresh Volume group on 11.31 I recomend you create it using LVM layout Version 2.0.

LVM has has released a new version of LVM in 08-03 Fusion release of HPUX 11.31.
Layout 2 has many good features.
Daniel A
Advisor

Re: pvcreate: IO error on Physical Volume device

Hi psreedhar,

This is the output of the commands:

# dd if=/dev/rdsk/c10t0d0 of=/dev/null count=1 seek=8 bs=1024
dd read error: Invalid argument
0+0 records in
0+0 records out

# dd of=/dev/rdsk/c10t0d0 if=/dev/zero count=1 seek=8 bs=1024
I/O error
1+0 records in
0+1 records out


Aditionally I don't see the size disk in sam

Path(s) Device File(s)
0/3/0/0/0/0.1.14.0.0.0.0 /dev/dsk/c10t0d0

Use VG Names Paths Size(GB) Descrip.
unused - 1 0.00 HP OPEN-V*12

psreedhar
Frequent Advisor

Re: pvcreate: IO error on Physical Volume device

Hi,
I am sure some thing wrong with the disk, either on device side, or with the path.

Try the following things and see what happens

ioscan -m dsf /dev/rdsk/c10t0d0

The above command should print some thing like /dev/disk/disk[0-9]. it is called persistent DSF for the disk.

Then again run

ioscan -m dsf

If that shows more than one legacy path(which is of the form /dev/dsk/ctd).

Then try pvcreate on the persistent DSF of the disk. If it succeeds then there is some thing wrong with one of the paths.

Even if the above path fails then i am sure we need to do some thing on storage side, i mean on XP side.
Daniel A
Advisor

Re: pvcreate: IO error on Physical Volume device

Hi psreedhar,

I ran the commands and obtaind the following:

# ioscan -m dsf /dev/rdsk/c10t0d0
Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk7 /dev/rdsk/c10t0d0

# ioscan -m dsf /dev/rdisk/disk7
Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk7 /dev/rdsk/c10t0d0

I tried to create the physical volume again but obtained the same error:

# pvcreate /dev/rdisk/disk7
pvcreate: IO error on Physical Volume device "/dev/rdisk/disk7".
KPS
Super Advisor

Re: pvcreate: IO error on Physical Volume device

Hi Daniel,

I'm having the same issue on a BL870C. The only differences are that we're connected to an EMC SAN (DMX-3) and that we're running HP-UX 11.23 rather than 11.31.

Did you ever get a resolution to this problem and if so what was it?

Thanks,
KPS
Tim Nelson
Honored Contributor

Re: pvcreate: IO error on Physical Volume device

KPS,

Start a new thread and I sure someone can assist.

11.31's new IO model is a different beast than the traditional 11.23.