Unable to varyonvg after copy vg from XIV

Hi all,
I am not sure whether anyone of you using XIV to copy vg from one host to another. After I managed to copy all the respective vg over to destination vg, and map all vg to destination and when come to varyonvg, I got the following error

0516-510 varyonvg: Physical volume not found for physical volume
identifier 00f626989f51fcae.

Anyone encounter this before, hope you can share some idea why it happen and how to resolve this ?

Is this something I didn't perform before I varyonvg ?

Thanks in advance.

before to try the varyonvg, could you check if lspv shows the same content in both nodes

I not have experience in XIV, but in another Storage Copies (EMC, HDS), probably you need clean the reservations that the original system put in the physical devices.

I think tyhat you need heck that the attributes on same nodes are the same, use lsattr -El hdiskX to review these, in special the reservation policy values.

This does not have anything to do with the storage system used.

By copy, did you use a command like dd to make the copy? Or did you have LUNS active from both systems and use something like migratepv commands? If so, I am guessing that you removed the old LUN before doing a reducevg command.

Does lspv show a disk as PVMISSING ?
If you are facing a PVMISSING disk you could look at my post from 2007 on HOWTO: Cleanup a PVMISSING disk

In any case, (i.e., even if you are not seeing a PVMISSING message) your message reads as if there is a PVID in the VGDA that needs to be removed before you can varyonvg the volume group. More details in the article above - however, here are the basics:

root@aix53:[/]lsvg -p vgExport  
0516-010 : Volume group must be varied on; use varyonvg command.
root@aix53:[/]varyonvg vgExport
PV Status:      hdisk1  00c39b8d69c45344        PVACTIVE
                hdisk2  00c39b8d043427b6        PVMISSING
root@aix53:[/]lqueryvg -p hdisk1 -vPt 
Physical:       00c39b8d69c45344                2   0  
                00c39b8d043427b6                1   0  
VGid:           00c39b8d00004c000000011169c45a4b

Get a list of all the logical volumes on the missing disk

root@aix53:[/]lspv -l -v 00c39b8d00004c000000011169c45a4b hdisk2
hdisk2:
LV NAME               LPs   PPs   DISTRIBUTION          MOUNT POINT
lvTest                512   512   109..108..108..108..79 /scratch
loglv00               1     1     00..00..00..00..01    N/A

If the last command does not list any logical volumes you can proceed to removing the disk from the volume group (i.e., remove from the VGDA) - otherwise you will need to remove the logical volumes from the volume group before removing the disk.

root@aix53:[/]ldeletepv -g 00c39b8d00004c000000011169c45a4b -p 00c39b8d043427b6
 
Note: there is no output for the above command when all proceeds accordingly.