...
Topology Persist fails due to missing location code of a volume in the VIOS DB.
This problem often takes place after rebooting or upgrading VIO Servers.
Note:
TopoPersist will fail as soon as it hits the first issue.
This means, there might be more VIOs and more disks with the same issue that need to be fixed before persist of the data will be successful!
Applies to
All BVQ Versions and PVM Systems
...
The error message in the current_TopoPersist.log will look similar to the following ( BVQ Scanner ) or
C:\ProgramData\SVA\BVQ\bvq-server\data\scanner-data\POWERVM\<scanner_name>\logs\done
Code Block |
---|
LC is missing and volume is NOT an iSCSI volume |
|
Solution
...
To find the problematic volumes and to fix the problem, please analyze the latest topology file which can be found here:
C:\ProgramData\SVA\BVQ\bvq-server\data\scanner-data\POWERVM\<scanner_name>\topology\error\
or collect a full support package.
Next stepsSteps:
Unzip the topology file and open file de.sva.bvq.powervm.model.VirtualIOServer.json.
This file shows the VIOS information collected from the HMC.
We recommend converting Convert the JSON into a pretty print format in the editor of your choice, as this is way more human readable, than the single line JSON provided by the HMC API call.Search for the following statement: "locationCode": null. You will also find the volumeName close by
Scroll up in the JSON file until you find the name of the VIOS (“partitionName“) which the specific disk belongs to
Go file using Notepad++ and a JSON plugin.
Fold all
There is only 1 foldable Textblock left
Search for the uniqueDeviceID, which was already displayed in the log above:
”Cannot persist physical volume 01MkMwMzMDUyYzDEwMUzMDADAwMDAMTwMyNTM4jAyMAxNjAzNDMzMzQW52bWU=”You have found the correct volume, as you can see the volume infos are now unfolded, as is the info of the corresponding VIO
You can see:
"uniqueDeviceID" - of the volume
"volumeName" - of the volume
"locationCode" - internal disk location → null is problematical
”partitionName" - affected VIOS systemLog on to the affected VIOS system and run cfgmgr to re-check the configuration of the VIOS
Execute the script
on the VIOS.View file name cleanup_cmdb_with_logging.sh
Important: These are very profound changes! Only execute this script on HA tested Systems!
Check with “lscfg -vl hdiskX” if the volume is now showing a location code.
Repeat the procedure for all affected VIOS.
As soon as all hdisks are fixed, the topo persist should succeed.