Mass start VPS Servers on OpenVZ, KVM or XEN Slave Nodes
SolusVM is great for managing virtual servers and you can Mass start your VPS Servers on node reboot. Compatible with OpenVZ, KVM and XEN virtualization this software is great to manage VPS nodes. Generally, you have a master and slave setup. The master host node controls the control panel. Clients login here to manage their VPS servers. Then you have a Slave node which houses the virtual servers. The slave nodes can have different virtualization, for example, one could run KVM, the other OpenVZ and then The third XEN. The most popular virtualizations are OpenVZ and KVM.
Starting All Servers
If you were to update the servers Kernel this would require a reboot of the whole node which would mean outages for any VPS servers placed on the nodes being rebooted. Unfortunately, nothing can be done about this but you should only need to reboot your servers once a year a most to complete updates. Not every update you do on your slave node will require a reboot.
SolusVM has a great feature to allow mass starting of VPS servers once a dedicated server has been rebooted. this saves you having to reboot each server but can place a huge strain on the host node as it works to boot all of the servers for you. If you have oversubscribed your slave nodes, don’t try mass starting servers you will likely have to reboot the slave again.
Start All VPS Servers on OpenVZ Slaves
CFGS=`vzlist -S -Ho ctid`;for cfg in $CFGS;do vzctl start $cfg;done
Mass Stop VPS Servers on OpenVZ Slaves
CFGS=`vzlist -S -Ho ctid`;for cfg in $CFGS;do vzctl stop $cfg;done
Mass start VPS servers on a KVM Slave
CFGS=/home/kvm/kvm*/;for cfg in $CFGS;do virsh create $cfg*.xml;done
Start All VPS Servers ON XEN Slave
CFGS=/home/xen/vm*/;for cfg in $CFGS;do xm create $cfg*.cfg;done
Stop All VPS Servers on XEN Slave
xm shutdown -aw
How was this article? – Mass start VPS Servers on OpenVZ, KVM or XEN SolusVM Slave Nodes
You might also like
More from Dedicated Servers
Enable Mod_RemoteIP – See Visitors Real IP address when using Cloudflare & Apache
If you are using Cloudflare on your Apache server you will always see Cloudflare IPs in your logs and not …
Fix 413 Request Entity Too Large Errors When Using NGINX
Just like Apache, NGINX imposes default limits on the size of files that can be uploaded. A 413 Request Entity …
Cloud-init Modules That Automate and Customize Deployments
Cloud-init is a popular way to automate deployments of instances in a cloud or none cloud environment. To save having …