Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can anyone explain this please...?

Status
Not open for further replies.

MethodMan1972

IS-IT--Management
Mar 11, 2006
15
DE
I am trying to create a new volume group using a hdisk that is not currently in use, as follows:-

# mkvg -s 2 -t 2 -y testvg hdisk6
0516-1398 mkvg: The physical volume hdisk6, appears to belong to
another volume group. Use the force option to add this physical volume
to a volume group.
0516-862 mkvg: Unable to create volume group.
# lspv hdisk6
0516-320 : Physical volume hdisk6 is not assigned to
a volume group.
#

Says in the first instance it belongs to a volume group, and in the second, that it does not!?

Thanks
 
It may belong to an exportvg'd volume group.

try readvgda hdisk6 to see if it gives you any clues (will show the PP map of any LVs that exist on the disk)


HTH,

p5wizard
 
That message will be displayed if it already has a PVID. Was it ever part of a volume group? If so, (and assuming that you haven't manually cleared the PVID) you'll get that message.
 
If you are sure that this disk doesn't have data (as my fellews above said as it was belonging to other volume group)

You can either use this command to force creating the VG:

Code:
mkvg -f -s 2 -t 2 -y testvg hdisk6

or you can first clear the PVID using this command:

Code:
chdev -l hdisk6 -a pv=clear

and then creating the VG:

Code:
mkvg -s 2 -t 2 -y testvg hdisk6


Regards,
Khalid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top