Error writing /etc/pve/cluster.conf: Permission denied

loisl

New Member
Oct 10, 2010
27
1
1
I have a error in /etc/pve/cluster.conf

Code:
# /etc/init.d/cman restart
Stopping cluster: 
   Leaving fence domain... [  OK  ]
   Stopping dlm_controld... [  OK  ]
   Stopping fenced... [  OK  ]
   Stopping cman... [  OK  ]
   Unloading kernel modules... [  OK  ]
   Unmounting configfs... [  OK  ]
Starting 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... /etc/cluster/cluster.conf:19: parser error : Opening and ending tag mismatch: clusternodes line 12 and clusternode
    </clusternode>
                  ^
/etc/cluster/cluster.conf:26: parser error : expected '>'
    </clusternode>
             ^
/etc/cluster/cluster.conf:26: parser error : Extra content at the end of the document
    </clusternode>
             ^

Unable to get the configuration
/etc/cluster/cluster.conf:19: parser error : Opening and ending tag mismatch: clusternodes line 12 and clusternode
    </clusternode>
                  ^
/etc/cluster/cluster.conf:26: parser error : expected '>'
    </clusternode>
             ^
/etc/cluster/cluster.conf:26: parser error : Extra content at the end of the document
    </clusternode>
             ^
corosync [MAIN  ] Corosync Cluster Engine ('1.4.3'): started and ready to provide service.
corosync [MAIN  ] Corosync built-in features: nss
corosync [MAIN  ] Unable to read config from /etc/cluster/cluster.conf
corosync [MAIN  ] Corosync Cluster Engine exiting with status 8 at main.c:1665.
corosync died: Could not read cluster configuration Check cluster logs for details
[FAILED]

DON'T CAN EDIT THE /etc/pve/cluster.conf

Thanks loisl
 
Code:
# cat /etc/cluster/cluster.conf
<?xml version="1.0"?>
<cluster name="CLUSTER01" config_version="3">

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

  <fencedevices>
    <fencedevice agent="fence_ipmilan" ipaddr="80.190.114.21" lanplus="1" login="AdminLoisl" name="ipmi-x701" passwd="XXX" power_wait="5"/>
    <fencedevice agent="fence_ipmilan" ipaddr="80.190.114.22" lanplus="1" login="AdminLoisl" name="ipmi-x702" passwd="XXX" power_wait="5"/>
  </fencedevices>

  <clusternodes>
    <clusternode name="x702" votes="1" nodeid="1"/>
      <fence>
        <method name="1">
          <device name="ipmi-x702"/>
        </method>
      </fence>
    </clusternode>
    <clusternode name="x701" votes="1" nodeid="2"/>
      <fence>
        <method name="1">
          <device name="ipmi-x701"/>
        </method>
      </fence>
    </clusternode>
  </clusternodes>

</cluster>
 
Oh f*** i didn't know that there are passwords in this file. Please remove them from your post!
/Edit: Ok, you already removed them.
/Edit2: The Password list seems to be ok (i can not see any mistakes).

Sent from my GT-I9100 using Tapatalk
 
Last edited:
You have two end tags (line 13 and 14)
Code:
    <clusternode name="x702" votes="1" nodeid="1"/>
    </clusternode>

Please replace that with

Code:
    <clusternode name="x702" votes="1" nodeid="1">
    </clusternode>

or

Code:
    <clusternode name="x702" votes="1" nodeid="1"/>