How to find out the vhost information easily in aix?
Using the below command we can find out the vhost information very
easily. We can get all the vhost name information associated with our
target lpar very easily. For that we need have the LPAR ID in hexa decimal.
* Find the lpar id and convert into hexa decimal.
For ex: if your LPAR ID is 15, then the
hexadecimal value is "f"
Using the below command we can convert decimal no to hexa-decimal.
printf "%x\n" 15 output is: "f"
Using the below command we can convert decimal no to hexa-decimal.
printf "%x\n" 15 output is: "f"
* Execute the below command on the VIO server to find out the vhost
info.
lsmap -all | grep vhost | grep 0x0000000f
Note: totally 6 zeros are needs to put after the "x" on
the command and last two digit ("0f") is for hexa decimal number.
Advantages of this command is, if you have 6 virtual disks on the lpar from the vios, then we will get all the 6 virtual disks associated with the vhosts name on the VIOS..
Advantages of this command is, if you have 6 virtual disks on the lpar from the vios, then we will get all the 6 virtual disks associated with the vhosts name on the VIOS..