1833772 Members
2194 Online
110063 Solutions
New Discussion

Not able to do pvcreate

 
S.Arunkumar
Trusted Contributor

Not able to do pvcreate

Hi

I am trying to do a pvcreate in a disk which was earlier the part of VXVM.It gives teh following error

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

Regards
S.Arunkumar
7 REPLIES 7
Patrick Wallek
Honored Contributor

Re: Not able to do pvcreate

I ran into this and had to do a mediainit on the disk.

See this document:
TKB Doc ID: KBRC00010725
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000064722624


Denver Osborn
Honored Contributor

Re: Not able to do pvcreate

if it's not part of or in use by vxvm now, have you tried...

dd if=/stand/vmunix of=/dev/rdsk/c17t0d3
pvcreate /dev/rdsk/c17t0d3

hope this helps,
-denver
Mel Burslan
Honored Contributor

Re: Not able to do pvcreate

Please see this thread for the solution to your problem. You will either use mediainit to reinitialize the disk or if you have the base VxVM product installed and the disk will need to be "released". Here is the thread:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=31111


Hope it helps.
________________________________
UNIX because I majored in cryptology...
Rick Garland
Honored Contributor

Re: Not able to do pvcreate

Sure this disk is not being used? Still under Veritas control.

You want the `vxdiskunsetup` command to remove the vxvm control from the disk
Mel Burslan
Honored Contributor

Re: Not able to do pvcreate

please do not use dd, as this will leave the disk device in an inconsistent state in reference to lvm tables.
________________________________
UNIX because I majored in cryptology...
DCE
Honored Contributor

Re: Not able to do pvcreate

One more thread for you to look at - I believe you will like this one line command
S.Arunkumar
Trusted Contributor

Re: Not able to do pvcreate

Hi All

I performed the following
# /etc/vx/bin/vxdiskunsetup
# pvcreate -f

it worked

Regards
S.Arunkumar