Skip to content
Snippets Groups Projects
Commit da9e9959 authored by Florian Schaal's avatar Florian Schaal
Browse files

resize openvz-server with ploop enabled

parent 1ec1fc69
No related branches found
No related tags found
No related merge requests found
...@@ -121,6 +121,11 @@ class openvz_plugin { ...@@ -121,6 +121,11 @@ class openvz_plugin {
file_put_contents('/etc/vz/conf/'.$veid.'.conf', $data['new']['config']); file_put_contents('/etc/vz/conf/'.$veid.'.conf', $data['new']['config']);
$app->log("Writing new configuration for $veid", LOGLEVEL_DEBUG); $app->log("Writing new configuration for $veid", LOGLEVEL_DEBUG);
//* new diskspace for ploop-containers requieres "vzctl set"
if($data['new']['diskspace'] != $data['old']['diskspace']) {
exec("vzctl set ".$veid." --diskspace ".$data['new']['diskspace']."G --save");
}
//* Apply config changes to the VM //* Apply config changes to the VM
if($data['new']['active'] == 'y' && $data['old']['active'] == 'y') { if($data['new']['active'] == 'y' && $data['old']['active'] == 'y') {
exec("vzctl restart $veid"); exec("vzctl restart $veid");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment