Question


How do I find which virtual server is using this vDisk?


Environment


OnApp 3.x-6.x


Answer


Please refer to the Access the MySQL Database in OnApp page for additional details about working with the OnApp database.

If you have the disk identifier, use the following MySQL query to find which virtual server it belongs to:

select id,identifier,label,hostname,booted from virtual_machines where id in (select virtual_machine_id from disks where identifier='asdfasdfasdf12');
CODE

Be sure to replace asdfasdfasdf12 with the relevant disk identifier.


Additional Information


If it returns nothing, check if this vDisk exists:

  • for LVM:

    lvscan | grep <<identifier>> 
    CODE
  • for Integrated Storage:

    onappstore list | grep -A10 <identifier>>
    CODE

These commands should run on a compute resource with access to the appropriate datastore.