Welcome Guest. Please Login or Register  


You are here: Index > Virtualizor - Virtual Server Control Panel > Suggestions > Topic : Rename VPS (VID)



Threaded Mode | Print  

 Rename VPS (VID), Ability to rename VPSs (4 Replies, Read 13225 times)
millenniumtree
Group: Member
Post Group: Newbie
Posts: 5
Status:
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!
IP: --   

Rename VPS (VID)
wolke
Group: NOC
Post Group: Elite Member
Posts: 437
Status:
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.
IP: --   

Rename VPS (VID)
millenniumtree
Group: Member
Post Group: Newbie
Posts: 5
Status:
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.
IP: --   

Rename VPS (VID)
wolke
Group: NOC
Post Group: Elite Member
Posts: 437
Status:
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...

IP: --   

Rename VPS (VID)
wolke
Group: NOC
Post Group: Elite Member
Posts: 437
Status:
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.
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 28, 2024, 1:14 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.289