1851486 Members
3321 Online
104059 Solutions
New Discussion

pvcreate problem

 
SOLVED
Go to solution
Praveen Bezawada
Respected Contributor

pvcreate problem

hi
When I do pvcreate i get the message
host:/# pvcreate /dev/rdsk/c0t9d0
pvcreate: The physical volume already belongs to a volume group
When I try pvdisplay I get the message
host:/# pvdisplay /dev/dsk/c0t9d0
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c0t9d0" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c0t9d0".
I need to create a new volume group on the disk. What should I do.
Thanks in advance
4 REPLIES 4
Rita C Workman
Honored Contributor
Solution

Re: pvcreate problem

If this disk is not connected to a disk array that other systems access...in other words you are sure that this is really free...

Then just do:
pvcreate -f /dev/dsk/c_t_d_

/rcw
DIPAK KUMAR ROY
Frequent Advisor

Re: pvcreate problem

Praveen,

This message will appear if the disk was previously used. May be it was a part of some volume group. If you are sure that you don't have any data (important) on the disk, you can do a "pvcreate -f" which will basically wipe out everything on the disk without prompting you.

Use this command (as "root"):

#pvcreate -f /dev/rdsk/c0t9d0

Good Luck.

Dipak

Rob Mallard
Valued Contributor

Re: pvcreate problem

BTW, pvcreate -f will not over right a disk if it is recorded as inuse in /etc/lvmtab
DIPAK KUMAR ROY
Frequent Advisor

Re: pvcreate problem


The "/etc/lvmtab" entry will not be there as "pvdisplay" does not show anything in this case.

Dipak