Operating System - HP-UX
1752803 Members
5639 Online
108789 Solutions
New Discussion юеВ

Re: Force pvcreate on VxVM disk?

 
SOLVED
Go to solution
Jose Vidal
Advisor

Force pvcreate on VxVM disk?

Anyone know how to force a creation of a PV on a disk that had previously been defined as a Veritas VxVM disk.
10 REPLIES 10
Alan Riggs
Honored Contributor

Re: Force pvcreate on VxVM disk?

pvcreate -f /dev/rdsk/c?t?d?
Rick Garland
Honored Contributor

Re: Force pvcreate on VxVM disk?

This will tell the system that the disk is to be an LVM disk. Making a vxfs type of filesystem allows more control and less maintenance. If using the OnlineJfs, will not have to umount the filesaystem to extend (as an example). However, OnlineJfs is a cost product.
Jose Vidal
Advisor

Re: Force pvcreate on VxVM disk?

I tried the "-f" option and I still get the following error.

# pvcreate -f /dev/rdsk/c2t6d0
pvcreate: Could not perform LVM operation on VxVM disk "/dev/rdsk/c2t6d0".
#

Is there an command that will clear the disk configuration?
Denver Osborn
Honored Contributor

Re: Force pvcreate on VxVM disk?

Check for LVM Commands Patch.

PHCO_18485 or better. Enhanced LVM to coexist with VxVM.
James R. Ferguson
Acclaimed Contributor

Re: Force pvcreate on VxVM disk?

Jose:

pvcreate -f /dev/rdsk/cXtXdX is correct. However, the introduction of the VERITAS Volume Manager(VxVM) requires several enhancements for LVM coexistence with VxVM. You should obtain and load PHCO_21630. This should fix the problem you are having.

...JRF...


Jose Vidal
Advisor

Re: Force pvcreate on VxVM disk?

My dilema is this.
I was running Veritas VM for a few weeks, and I had initialized some disks as VM disks. Prior to removing VM, I was able to remove all but the "rootdg" disks, after removing VM, I've reinitialized all the disk as LVM, except the one that was the "rootdg". This is the disk that I am unable to initialize using LVM.
Veritas wouldn't let me destroy the diskgroup info, and LVM doesn't let me create a new PV.
James R. Ferguson
Acclaimed Contributor

Re: Force pvcreate on VxVM disk?

Hi:

Did you try PHCO_21630 or equivalent LVM cumulative patch? PHCO_21630 is for 11.0 so this may not be correct for your release.
What release are you on?

...JRF...
Jose Vidal
Advisor

Re: Force pvcreate on VxVM disk?

Yes, that patch is already applied.
I'm running HPUX 11.00
alberto vasquez
Trusted Contributor
Solution

Re: Force pvcreate on VxVM disk?

try
# dd if=/stand/vmunix of=/dev/rdsk/c#t#d# bs=64k
the pvcreate is detecting the presence of a VxVM private region on the disk
the dd should stomp on the header & allow you to pvcreate. I chose /stand/vmunix
because it is a fairly large file, any large file will do.