Rename VPS (VID) https://www.softaculous.com/board/index.php?tid=15787 <![CDATA[Rename VPS (VID)]]> https://www.softaculous.com/board/index.php?tid=15787&tpg=1#p47576
Getting the vps_id and uuid from hostname:
Code
Select vps_id,uuid  from vps where hostname ='YOURHOSTNAME'

Getting the disks LV for a vm
Code
select path from disks where vps_uuid='VPSUUID'

That way you would have a translation from hostname up every single disks for a vm.
]]>
Wed, 16 Oct 2019 10:10:29 GMT https://www.softaculous.com/board/index.php?tid=15787&tpg=1#p47576
<![CDATA[Rename VPS (VID)]]> https://www.softaculous.com/board/index.php?tid=15787&tpg=1#p47575
Quote
The concern I have though, is if the virtualizor UI is not available for any reason (proxy server goes down, IP change, etc), then matching hostname to LVM is not obvious.


Even in this scenario it would be MUCH easier to query the virtualizor mysql table for the needed info...

]]>
Wed, 16 Oct 2019 09:50:42 GMT https://www.softaculous.com/board/index.php?tid=15787&tpg=1#p47575
<![CDATA[Rename VPS (VID)]]> https://www.softaculous.com/board/index.php?tid=15787&tpg=1#p47570
The concern I have though, is if the virtualizor UI is not available for any reason (proxy server goes down, IP change, etc), then matching hostname to LVM is not obvious.

NOW I know you can grep the configs in /etc/xen/auto/, but the first time I had an issue with no UI available, some extra downtime was eaten up figuring out which of the dozens of LVMs I had to work on.  If they were named less randomly, that wouldn't have been the case.]]>
Tue, 15 Oct 2019 19:15:39 GMT https://www.softaculous.com/board/index.php?tid=15787&tpg=1#p47570
<![CDATA[Rename VPS (VID)]]> https://www.softaculous.com/board/index.php?tid=15787&tpg=1#p47569 if you are manipulating the LVM creation and handling you may end up with a non working system in case virtualizor get some future changes that are incompatible with your script.
]]>
Tue, 15 Oct 2019 18:45:58 GMT https://www.softaculous.com/board/index.php?tid=15787&tpg=1#p47569
<![CDATA[]]> https://www.softaculous.com/board/index.php?tid=15787&tpg=0#p47568 VPSs named like "v1018" are incredibly obtuse, and the LVMs that are created need to be looked up to figure out which one is which.

I actually wrote some scripts that rename the LVM and update the virtualizor mysql database, but that's slightly janky and may lead to some issues in the future where Virtualizor assumes VPS IDs are in that v#### format.

Please please add the ability to rename VPSs, so LVM management is made easier.

Thanks!]]>
Tue, 15 Oct 2019 18:38:20 GMT https://www.softaculous.com/board/index.php?tid=15787&tpg=0#p47568