1833589 Members
3749 Online
110061 Solutions
New Discussion

problem with pvcreate

 
SOLVED
Go to solution
Parvin Hosseini_1
Occasional Contributor

problem with pvcreate

I am trying to set mirror on my machine X.
The first step that I do is:

pvcreate -B /dev/rdsk/c1t0d0

C1t0d0 is the new disk which should be taken as mirror for c1t2d0.

The error message by pvcreate is as follow:

The physical volume /dev/dsk/c1t0d0 is belong to an exported volume group.

notice: This disk was involved in mirroring on another machine Y. But I need to set the mirror on my machine X.

Does anybody know what the problem is?

thank you
6 REPLIES 6
Ian Dennison_1
Honored Contributor
Solution

Re: problem with pvcreate

pvcreate -f -B /dev/rdsk/[etc].

Force option on pvcreate will instruct it to ignore existing file system.

'if at first you don't succeed, try a bigger hammer!'

Share and enjoy! Ian
Building a dumber user
melvyn burnard
Honored Contributor

Re: problem with pvcreate

are you saying this disc WAS used on another system, and now you REALLY want to use it again?

If so, add in the -f (force option) to your command:
pvcreate -f -B
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!

Re: problem with pvcreate

The problem is that pvcreate can spot the VGRA area on a disk which has previously been used.
If your COMPLETELY SURE the disk is not in use anywhere else then use:

pvcreate -fB ...

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Roger Baptiste
Honored Contributor

Re: problem with pvcreate

< The physical volume /dev/dsk/c1t0d0 is belong to an exported volume group. >>

Hi,

use the -f (force option) with pvcreate command to do this. This will force the pvcreate command to run on the disk, irrespective of what is on the disk

pvcreate -f -B /dev/rdsk/cxtydz

HTH
raj
Take it easy.
James R. Ferguson
Acclaimed Contributor

Re: problem with pvcreate

Hi Parvin:

If you are absolutely sure that this is the disk you want to 'pvcreate', you will need to "force" the operation to erase existing LVM information from it. Do:

# pvcreate -B -f /dev/rdsk/c1t0d0

Regards!

...JRF...
Marcin Wicinski
Trusted Contributor

Re: problem with pvcreate

Hi,

You can do:

# pvcreate -f -B ....

but if it doesnt work also, you can firest

# dd if=/stang/vmunix of=/dev/dsk/c1t0d0
# pvcreate -f -B ...
Marcin Wicinski