pvecm add

ultrex

New Member
Mar 7, 2011
28
0
1
hello,

I have problem:

PHP:
root@q2:~# pvecm add q1
can't create shared ssh key database '/etc/pve/priv/authorized_keys'
authentication key already exists

PHP:
root@q2:~# mkdir /etc/pve/priv/
mkdir: cannot create directory `/etc/pve/priv/': Permission denied

PHP:
root@q2:~# ls -l /etc/pve/
total 1
-r--r----- 1 root www-data 270 Aug 14 09:45 cluster.conf
lr-xr-x--- 1 root www-data   0 Jan  1  1970 local -> nodes/q2
lr-xr-x--- 1 root www-data   0 Jan  1  1970 openvz -> nodes/q2/openvz
lr-xr-x--- 1 root www-data   0 Jan  1  1970 qemu-server -> nodes/q2/qemu-server

PHP:
root@q2:~# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
77.241.202.182 q2.pns.lt q2 pvelocalhost
77.241.202.181 q1.pns.lt q1

PHP:
root@q2:~# pvecm status
Version: 6.2.0
Config Version: 2
Cluster Name: q1
Cluster Id: 275
Cluster Member: Yes
Cluster Generation: 4
Membership state: Cluster-Member
Nodes: 1
Expected votes: 2
Total votes: 1
Node votes: 1
Quorum: 2 Activity blocked
Active subsystems: 1
Flags:
Ports Bound: 0
Node name: q2
Node ID: 2
Multicast addresses: 239.192.1.20
Node addresses: **.***.***.182

PHP:
root@q2:~# pvecm nodes
Node  Sts   Inc   Joined               Name
   1   X      0                        q1
   2   M      4   2012-08-14 09:45:37  q2


I can't login to q2 web
 
How to fix ?

PHP:
root@q2:/etc/pve# /etc/init.d/cman restart
Stopping cluster:
   Stopping dlm_controld... [  OK  ]
   Stopping fenced... [  OK  ]
   Stopping cman... [  OK  ]
   Waiting for corosync to shutdown:[  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... [  OK  ]
   Waiting for quorum... Timed-out waiting for cluster
[FAILED]
root@q2:/etc/pve#

I try to create openvz:

PHP:
root@q2:/etc/pve# pvectl create 1260 /vz/template/cache/centos-5-standard_5.1-2_amd64.tar.gz;
Use of uninitialized value $archive in -f at /usr/share/perl5/PVE/API2/OpenVZ.pm line 343.
Use of uninitialized value $archive in concatenation (.) or string at /usr/share/perl5/PVE/API2/OpenVZ.pm line 343.
can't find file ''
root@q2:/etc/pve#