AIX: Error code 0516-1339, 0516-1397 0516-792: cannot extendvg with a previous Oracle ASM disk
Error Message:
labserver:/root# extendvg -f backupvg hdisk1
0516-1339 extendvg: Physical volume contains some 3rd party volume group.
0516-1397 extendvg: The physical volume hdisk1, will not be added to
the volume group.
0516-792 extendvg: Unable to extend volume group.
labserver:/root# lquerypv -h /dev/hdisk1
00000000 00820101 00000000 80000017 651FAA3A |…………e..:|
00000010 00000000 00000000 00000000 00000000 |…………….|
00000020 4F52434C 4449534B 00000000 00000000 |ORCLDISK……..|
00000030 00000000 00000000 00000000 00000000 |…………….|
00000040 0A100000 00170103 4F524158 5135305F |……..ORABASE_|
00000050 4447315F 30303233 00000000 00000000 |DG1_0023……..|
00000060 00000000 00000000 4F524158 5135305F |……..ORABASE_|
00000070 44473100 00000000 00000000 00000000 |DG1………….|
00000080 00000000 00000000 4F524158 5135305F |……..ORABASE_|
00000090 4447315F 30303233 00000000 00000000 |DG1_0023……..|
000000A0 00000000 00000000 00000000 00000000 |…………….|
000000B0 00000000 00000000 00000000 00000000 |…………….|
000000C0 00000000 00000000 01F6E66B 8403A400 |………..k….|
000000D0 01F765E7 0C6DFC00 02001000 00100000 |..e..m……….|
000000E0 0001BC80 00021453 00000003 00000001 |…….S……..|
000000F0 00000002 00000000 00000000 00000000 |…………….|
Solution:
We surely have here an old recyled ASM disk (because of the ORCLDISK word in the disk’s header). We need to clean this before using it.
labserver:/root # dd if=/dev/zero of=/dev/rhdisk1 bs=1024 count=10
10+0 records in.
10+0 records out.
labserver:/root # lquerypv -h /dev/hdisk1
00000000 00000000 00000000 00000000 00000000 |…………….|
00000010 00000000 00000000 00000000 00000000 |…………….|
00000020 00000000 00000000 00000000 00000000 |…………….|
00000030 00000000 00000000 00000000 00000000 |…………….|
00000040 00000000 00000000 00000000 00000000 |…………….|
00000050 00000000 00000000 00000000 00000000 |…………….|
00000060 00000000 00000000 00000000 00000000 |…………….|
00000070 00000000 00000000 00000000 00000000 |…………….|
00000080 00000000 00000000 00000000 00000000 |…………….|
00000090 00000000 00000000 00000000 00000000 |…………….|
000000A0 00000000 00000000 00000000 00000000 |…………….|
000000B0 00000000 00000000 00000000 00000000 |…………….|
000000C0 00000000 00000000 00000000 00000000 |…………….|
000000D0 00000000 00000000 00000000 00000000 |…………….|
000000E0 00000000 00000000 00000000 00000000 |…………….|
000000F0 00000000 00000000 00000000 00000000 |…………….|
labserver:/root# extendvg backupvg hdisk1
0516-1254 extendvg: Changing the PVID in the ODM.