Pcsd: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 6: Zeile 6:
 
*gem install orderedhash
 
*gem install orderedhash
 
*sed -i.bak -e "/Host.*=>/s/::/*/" -e "/BindAddress.*=>/s/::/nil/"  /usr/share/pcsd/ssl.rb
 
*sed -i.bak -e "/Host.*=>/s/::/*/" -e "/BindAddress.*=>/s/::/nil/"  /usr/share/pcsd/ssl.rb
 +
 +
*/usr/lib/python2.7/dist-packages/pcs/cluster.py
 +
Zeile 1699
 +
<pre>
 +
os.system("find /var/lib -path '/var/lib/lxcfs' -prune -o -name '"+name+"' -exec rm -f \{\} \;")
 +
                #os.system("find /var/lib -name '"+name+"' -exec rm -f \{\} \;")
 +
</pre>
 +
 
*systemctl enable pcsd
 
*systemctl enable pcsd
 
*root@adin:~# passwd hacluster
 
*root@adin:~# passwd hacluster
 
*root@keks:~# passwd hacluster
 
*root@keks:~# passwd hacluster
 +
  
 
<source lang=bash>
 
<source lang=bash>

Version vom 25. Oktober 2016, 12:05 Uhr

ubuntu 16.04

  • apt-get update
  • apt-get uograde
  • apt-get install pacemaker corosync pcs
  • gem install orderedhash
  • sed -i.bak -e "/Host.*=>/s/::/*/" -e "/BindAddress.*=>/s/::/nil/" /usr/share/pcsd/ssl.rb
  • /usr/lib/python2.7/dist-packages/pcs/cluster.py

Zeile 1699

 os.system("find /var/lib -path '/var/lib/lxcfs' -prune -o -name '"+name+"' -exec rm -f \{\} \;")
                 #os.system("find /var/lib -name '"+name+"' -exec rm -f \{\} \;")
  • systemctl enable pcsd
  • root@adin:~# passwd hacluster
  • root@keks:~# passwd hacluster


root@adin:~# pcs cluster auth adin keks
Username: hacluster
Password: 
keks: Authorized
adin: Authorized

Links