HP P2000 MSA and VMware SRM & SRA Error

Posted by

Hopefully this will save other people the head scratching and countless lost hours that we suffered on a VMware project we are working on.

Whilst setting up VMware Site Recovery Manager we hit a peculiar problem that had a simple solution but was very difficult to spot. We were installing the Storage Replication Adapter (SRA) from the HP Support Site here and there is a nasty surprise in this installation package…

If you get the following error there is fortunately a very simple fix.

Failed to load SRA from ‘C:/Program Files/VMware/VMware vCenter Site Recovery Manager/storage/sra/HP MSA’.

Cause:

SRA command ‘queryInfo’ failed.

Cause:

Internal error: Can’t locate XML/LibXML.pm in @INC (@INC contains: lib C:/Program Files/VMware/VMware vCenter Site Recovery Manager/storage/sra/HP MSA/lib-MSWin32-5.014004 C:/Program Files/VMware/VMware vCenter Site Recovery Manager/storage/sra/HP MSA/lib C:/Program Files/VMware/VMware vCenter Site Recovery Manager/storage/sra/HP MSA C:/Program Files/VMware/VMware vCenter Site Recovery Manager/external/perl/site/lib C:/Program Files/VMware/VMware vCenter Site Recovery Manager/external/perl/lib .) at C:/Program Files/VMware/VMware vCenter Site Recovery Manager/storage/sra/HP MSA/MC.pm line 25.

BEGIN failed–compilation aborted at C:/Program Files/VMware/VMware vCenter Site Recovery Manager/storage/sra/HP MSA/MC.pm line 25.

Compilation failed in require at C:/Program Files/VMware/VMware vCenter Site Recovery Manager/storage/sra/HP MSA/command.pl line 24.

BEGIN failed—

compilation aborted at C:/Program Files/VMware/VMware vCenter Site Recovery Manager/storage/sra/HP MSA/command.pl line 24.

The key is in the text

C:/Program Files/VMware/VMware vCenter Site Recovery Manager/storage/sra/HP MSA/lib-MSWin32-5.014004

We must have looked at this about 1000 times before a very clever supplier of ours spotted the 4 at the end does not match the installation folder put in place by the HP setup file. That one ends with a 2.

Copy the folder lib-MSWin32-5.014002 and change the name to end with a 4 instead of 2 et voila!

SRA Error Folder structure