Friday, June 14, 2013

Command to find vhost and vio server name from the client server


In order to find the VIO server name and the vhost details of a particular client from the client server itself, below command can be helpful.


# echo cvai | kdb | grep -i vscsi




read vscsi_scsi_ptrs OK, ptr = 0x59C0380
vscsi0     0x000007 0x0000000000 0x0                VIO1->vhost9
vscsi1     0x000007 0x0000000000 0x0                 VIO2->vhost9

In the above o/p,

The disks are shared from the VIO servers, VIO1 & VIO2 through vhost9 from each vio to your client lpar.

Note: 1. Vhost name can vary based on mapping thats been done on the VIO servers.
          2. Also the above command works for servers running on AIX 6.1only. For the same details against AIX 5.3 servers please refer the below link.

http://aixdeepdive.blogspot.com/2013/07/aix-5l-command-to-find-vio-server.html



Need help in aix about anything... please post it here !!. will provide solutions for almost everything within no time. You can believe and test it right now & see the difference between other aix sites. I bet you!!!

 




1 comment:

  1. Dear pradeep,

    I am facing issue with VG, here problem is VG(small) has created and set the factor value 16 to it for using only two PVS as per concern team requirement but after some days they are requesting us to add more space to that VG to increase filesystem size here what I have to do as per them.

    1. do I need to reset the factor value(I am not aware is it possible to reset the factor value in VG, if it is possible then what are the prechecks require before going to reset) or convert the VG type to BIG VG or scalable VG.

    I hope you understood the situation and help me to sort out the issue.

    ReplyDelete