Operating System - HP-UX
1748252 Members
3903 Online
108760 Solutions
New Discussion юеВ

Re: Physical Volume contains no LVM information

 
SOLVED
Go to solution
Bill Barto
Occasional Advisor

Physical Volume contains no LVM information

What does it mean when vgcreate has the error "Physical Volume contains no LVM information" *BUT* I already created the physical volumes using pvcreate?

The pvcreate command took a long time (73.4 GB disks), but there were no errors.

pvcreate /dev/rdsk/c4t0d0
vgcreate /dev/vg0x /dev/dsk/c4t0d0

(error physical volume contains no LVM information)
12 REPLIES 12
Patrick Wallek
Honored Contributor

Re: Physical Volume contains no LVM information

Are you sure the pvcreate worked? Did you get any error messages?

What happens is you do a:

pvcreate -f /dev/rdsk/c4t0d0
Hoang Chi Cong_1
Honored Contributor

Re: Physical Volume contains no LVM information

Hi Bill Barto,

You need to use Force option to create the pv:

#pvcreate -f /dev/rdsk/c4t0d0

For vgcreate, I recommend you considering as some optional parameters when creating a volume group like -e, -s, .....

Hope this helps,
Hoang Chi Cong
Looking for a special chance.......
Shrikant Lavhate
Esteemed Contributor

Re: Physical Volume contains no LVM information

Hi,

Try
#insf -e
Will it remain a personal, if I broadcast it here!
Shahul
Esteemed Contributor

Re: Physical Volume contains no LVM information

Looks like an Odd problem, I would try these,

ioscan -fnC disk , and make sure your device is claimed. Then,

diskinfo , it should show disk details, Then

pvcreate , As per book, you don't need to use -f if your hard disk was not part of LVM before. But you can try with -f as well, then vgcreate.

If this is not working, there is something else wrong with your system, will need to investigate further.

Good luck
Shahul
erics_1
Honored Contributor

Re: Physical Volume contains no LVM information

What kind of disk is this? Internal,VA,JBOD? diskinfo output would be helpful.

Regards,
Eric
Sandman!
Honored Contributor

Re: Physical Volume contains no LVM information

Maybe you have a bad disk. Look at its state in ioscan(1M)...is it NO_HW? Any error messages about this disk in syslog? Run dd against this disk:

# dd if= of=/dev/null bs=1024k count=20
Bill Barto
Occasional Advisor

Re: Physical Volume contains no LVM information

Thanks for all the replies so far...however I still have the same problem.

The original pvcreate (without the -f option) didn't indicate any failures, however it didn't indicate any success either.

I re-ran "pvcreate -f /dev/rdsk/c4t0d0" and it's output now says "Physical volume "/dev/rdsk/c4t0d0" has been successfully created."

Then I ran vgcreate again (I used the same options previously, just didn't report all of them since they seemed like they would clutter up this report):

vgcreate -l 32 -s 16 /dev/vg01 /dev/dsk/c4t0d0

Unfortunately, it still gives the same error message:
vgcreate: Physical volume "/dev/dsk/c4t0d0" contins no LVM information.

Other information requested:

- This is an HP-9000 (PA-RISC) running 11.23

- The drive is located in an external enclosure, or "shared array" so that it can be accessed by another HP system via ServiceGuard. However, we are only at the stage of configuring the devices and partitions. ServiceGuard is not configured, nor is the other system using these devices.

- ioscan -fnC disk finds all the drives and shows them as claimed (there are no "NO_HW" messages).

- diskinfo reports the following info:
diskinfo /dev/rdsk/c4t0d0
SCSI describe of /dev/rdsk/c4t0d0:
vendor: HP 73.4G
product id: ST373405FC
type: direct access
size: 140000000 Kbytes
bytes per sector: 520

- I'm looking into syslog to see if there are any issues reported there.

- In the meantime, it looks like using dd to read from the device is hanging. So, there's more to look into here...
erics_1
Honored Contributor
Solution

Re: Physical Volume contains no LVM information

Bill,

I ran into this issue some months ago when reusing a disk previously used in a VA7100. After putting into a standalone DS2405 (JBOD), the disk had to be reformatted because bytes per sector were 520 and should be 512. If yours is the same situation, you need to run JBODfmt -f /dev/dsk/cxtxdx on the disk from a system with Commandview installed. This will correct the count to 512 and your pvcreate will then be successful. See knowledge base article KBRC00012640 for details.

Hope this helps,
Eric
Hoang Chi Cong_1
Honored Contributor

Re: Physical Volume contains no LVM information

Hi,

Ah....

I found it!

As Eric said, the key to resolve your trouble is:

bytes per sector: 520

You have to change this value to 512!


I have faced with this trouble two times when take a disk from VA7400 and plug it to DS2405.

The error exactly like your error.

To resolve it, you need to install CommandView SDM them try to format the disk by command:
JBODfmt -f /dev/rdsk/c4t0d0

Just all!

Then you can format and create vg in normal way!

Goodluck!
Hoang Chi Cong
Looking for a special chance.......