Operating System - HP-UX
1753943 Members
8825 Online
108811 Solutions
New Discussion юеВ

Re: Physical Volume contains no LVM information

 
Stefano_65
Regular Advisor

Physical Volume contains no LVM information

Hi everybody..
my steps:

pvcreate -f /dev/rdsk/cxtyd0
vgextend /dev/vg00 /dev/dsk/cxtydz
vgextend: Physical Volume "/dev/dsk/cxtydz" contains no LVM information

what about?...
8 REPLIES 8
Florian Heigl (new acc)
Honored Contributor

Re: Physical Volume contains no LVM information

Obviously the PVID/VGRA stuff wasn't properly written to the disk.

You might try
dd if=/dev/zero of=/dev/rdsk/cxtydz and
afterwards repeating Your steps.

For some reason pvcreate -f sometimes just doesn't do the trick.
yesterday I stood at the edge. Today I'm one step ahead.
Ranjith_5
Honored Contributor

Re: Physical Volume contains no LVM information

Hi,

are you able to get pvdisplay output properly. What about your pvcreate command? Was it successfully done? Try once again.


regards,
Syam
A. Clay Stephenson
Acclaimed Contributor

Re: Physical Volume contains no LVM information

The most likely explanation is that you entered a different device in your pvcreate and your vgextend (just as your example does; in UNIX spelling really counts); the potentially really bad news is that your -f option allowed pvcreate to overwrite the wrong disk.
If it ain't broke, I can fix that.
Stefano_65
Regular Advisor

Re: Physical Volume contains no LVM information

I made dd before post the question.
I'm sure that device used in "pvcreate -f" and "vgextend" is the same.
pvdisplay shows:
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c0t4d0" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c0t4d0".

thanks
s.
Ranjith_5
Honored Contributor

Re: Physical Volume contains no LVM information



Now Pls post the output of
#pvcreate /dev/rdsk/c0t4d0

Make sure that there is no entry in /etc/lvmtab pointing to this disk.

If there is an entry in lvmtab just do

#mv /etc/lvmtab /etc/lvmtab.orig

and then do the pvcreate.

regards,
Syam
Ranjith_5
Honored Contributor

Re: Physical Volume contains no LVM information

Also after creating pv, restore the lvmtab file back to the previous state.

regards,
Syam
Florian Heigl (new acc)
Honored Contributor

Re: Physical Volume contains no LVM information

You could ask hp to send You /usr/contrib/csstools/lvm.11 for debugging.

Also, please check if the return code of pvcreate was 0. maybe it was 255, as in "no clue what's up, I'll exit now"


otherwise You can use dd and the ox hex editor to read the volume header - something must be still there, but up to now i've only done that on AIX and I do not remember the position of VGID or PVID on HP-UX.

It would be something like
dd if=/dev/dsk/cxtydz bs=1024 skip=2 | oc -x
but this won't work out of the box on hp-ux.
yesterday I stood at the edge. Today I'm one step ahead.
Stefano_65
Regular Advisor

Re: Physical Volume contains no LVM information

Hi,
after a reboot everythong goes right
thanks everybody

s.