...
Topology Persist fails due to missing location code of a volume in the VIOS DB.
This problem often takes place after rebooting the VIOS and 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
Procedure
The error message in the current_TopoPersist.log should will look like 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
Hint: The TopoPersist will fail at the first occurence of the event: Cannot persist physical volume 01MkMwMzMDUyYzDEwMUzMDADAwMDAMTwMyNTM4jAyMAxNjAzNDMzMzQW52bWU= because LC is missing and volume is NOT an iSCSI volume
In multi VIOS environments this could mean, that there is more than one disk with a missing location code in the environment related to the reporting HMC. Therefore you need to check further.
Further Checks:
First of we need the topology data, which can only be collected via the full support package.
Now we need to look for the following file in the topology data: 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.
Steps:
Unzip the topology file and open file de.sva.bvq.powervm.model.VirtualIOServer.json.
This file shows the VIOS information collected from the HMC.
Convert the JSON file using Notepad++ and a JSON plugin.
...
We recommend converting 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
Depending on how many findings you have regarding this statement you need to repeat this step and the following one multiple times
Scroll up in the JSON file until you find the name of the VIOS which the specific disk belongs to
Go to the system and execute the script provided by IBM (
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
)View file name cleanup_cmdb_with_logging.sh
on the VIOS.
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.