Softaculous


Topic : Rename VPS (VID)


Posted By: millenniumtree on October 15, 2019, 6:38 pm
I would love the ability to easily rename a VPS.
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!

Posted By: wolke on October 15, 2019, 6:45 pm | Post: 1
VPS already have better readable name (the hostname)
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.

Posted By: millenniumtree on October 15, 2019, 7:15 pm | Post: 2
I understand the risks, and things seem to be working so far.  I've been able to work around some oddities before in the database and xen config files, so I'm not too concerned with what I have.  We also have a testing/dev environment to learn lessons on before mucking up the live environment.

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.

Posted By: wolke on October 16, 2019, 9:50 am | Post: 3
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...


Posted By: wolke on October 16, 2019, 10:10 am | Post: 4
just for demonstrating how easy this could be:

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.

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.