Container configuration change

estebi

New Member
Jan 9, 2013
1
0
1
Dear all,

I found no solution on this forum for my problem. Some problems seem to match but the solutions don't.
Here it is : I have 1 node with 6 containers and 1 KVM.
I want to add RAM and cpu units on 2 of the containers. When using the web manager I get this error :
command 'vzctl --skiplock set 101 --cpus 2 --save' failed: exit code 139 (500)

When I do this in the shell I get this error :
Setting CPUs: 2
Unable to create configuration file /etc/pve/nodes/ns380516/openvz/101.conf.tmp: Permission denied

The directory /etc/pve/nodes is readonly : dr-xr-x--- 2 root www-data 0 13 oct. 19:14 nodes
as the subdirectories and files are.

Here are some commands I did :
root@ns380516:/etc/pve# pvecm status
cman_tool: Cannot open connection to cman, is it running ?

root@ns380516:/etc/pve# /etc/init.d/cman startStarting cluster:
Checking if cluster has been disabled at boot... [ OK ]
Checking Network Manager... [ OK ]
Global setup... [ OK ]
Loading kernel modules... [ OK ]
Mounting configfs... [ OK ]
Starting cman... Cannot find node name in cluster.conf
Unable to get the configuration
Cannot find node name in cluster.conf
cman_tool: corosync daemon didn't start Check cluster logs for details
[FAILED]

root@ns380516:/etc/pve# cat /etc/pve/cluster.conf<?xml version="1.0"?>
<cluster name="MainCluster" config_version="1">


<cman keyfile="/var/lib/pve-cluster/corosync.authkey">
</cman>


<clusternodes>
</clusternodes>


</cluster>

root@ns380516:/etc/pve# pveversion -eUnknown option: e
USAGE: pveversion [--verbose]
root@ns380516:/etc/pve# pveversion -v
pve-manager: 2.2-32 (pve-manager/2.2/3089a616)
running kernel: 2.6.32-17-pve
proxmox-ve-2.6.32: 2.2-83
pve-kernel-2.6.32-17-pve: 2.6.32-83
lvm2: 2.02.95-1pve2
clvm: 2.02.95-1pve2
corosync-pve: 1.4.4-1
openais-pve: 1.1.4-2
libqb: 0.10.1-2
redhat-cluster-pve: 3.1.93-2
resource-agents-pve: 3.9.2-3
fence-agents-pve: 3.1.9-1
pve-cluster: 1.0-34
qemu-server: 2.0-71
pve-firmware: 1.0-21
libpve-common-perl: 1.0-41
libpve-access-control: 1.0-25
libpve-storage-perl: 2.0-36
vncterm: 1.0-3
vzctl: 4.0-1pve2
vzprocps: 2.0.11-2
vzquota: 3.1-1
pve-qemu-kvm: 1.3-10
ksm-control-daemon: 1.1-1

I cannot modify anything because the fuse fs is read-only, though it is mounted rw... I cannot start cmon as I don't have any cluster...
I'm totally stucked. My server is in production and up-to-date. Yesterday it was down during 2 hours because I made updates and tried to reconfigure with my containers off.
I really need to increase CPU and RAM on my containers otherwise they will crash very soon !

Please help me !
 
you write you have no cluster but you post a cluster.conf file. a system without cluster does no have a cluster config.?

try restarting pve-cluster.

Code:
service pve-cluster restart
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!