Unable to put disks under Logical Volume Manager (LVM) control - Physical Volume Identifier (PVID)

book

Article ID: 100020086

calendar_today

Updated On:

Description

Error Message


0516-1254 /usr/sbin/mkvg: Changing the PVID in the ODM.
0516-1376 /usr/sbin/mkvg: Physical volume contains a VERITAS volume group.
0516-1397 /usr/sbin/mkvg: The physical volume

Resolution

The following procedure can be used if the disk is no longer used by VERITAS Volume Manager (VxVM) and the data on the disk is no longer required (can be discarded/destroyed). 
 
How to clear the PVID from a disk(s):

# lspv
hdisk0          00cf3bed444e5639                    rootvg          active
hdisk1          00cb77ce442e283e                    rootvg          active
hdisk2          00cb761e34beb3f4                    rootvg          active
hdisk3          none                                          VeritasVolumes
hdisk4          00cf3bed1df986a4                      None
hdisk5          00cf3bed209109ea                    None
hdisk6         none                                          VeritasVolumes

The following commands will clear the PVID's from the disks: hdisk4 and hdisk5 only

# dd if=/dev/zero of=/dev/rhdisk4 bs=64k count=100
# dd if=/dev/zeroof=/dev/rhdisk5 bs=64k count=100


Remove the disks from the AIX ODM configuration database

# rmdev -dl rhdisk4
# rmdev -dl hdisk5



Run cfgmgr to rescan the devices

# cfgmgr -v

List the physical volumes.

# lspv
hdisk0          00cf3bed444e5639                    rootvg          active
hdisk1          00cb77ce442e283e                  rootvg          active
hdisk2          00cb761e34beb3f4                    rootvg          active
hdisk3         none                                          VeritasVolumes
hdisk4          none                                        None
hdisk5          none                                        None
hdisk6         none                                          VeritasVolumes
 
 
NOTE: The PVID's have been cleared for disk hdisk4 & hdisk5.

Once the stale PVID has been cleared, the AIX LVM mkvg command should then work.
 

 

Issue/Introduction


0516-1254 /usr/sbin/mkvg: Changing the PVID in the ODM.
0516-1376 /usr/sbin/mkvg: Physical volume contains a VERITAS volume group.
0516-1397 /usr/sbin/mkvg: The physical volume