IMPORTANT: Per accedir als fitxer de subversion: http://acacha.org/svn (sense password). Poc a poc s'aniran migrant els enllaços. Encara però funciona el subversion de la farga però no se sap fins quan... (usuari: prova i la paraula de pas 123456)

CMAN és un gestor de clusters simètric, de propòsit general i basat en el nucli [Linux]]. Cman són les inicials de Cluster MANager

Té dos parts:

  • Connection Manager (cnxman) handles membership, messaging, quorum, event notification and transitions.
  • Service Manager (sm) handles "service groups" which are a general way of representing and managing instances of external systems that require cluster management. The CMAN cluster manager is the foundational system upon which DLM, GFS, CLVM, and Fence all depend. The CMAN API in the kernel and userspace is general and available for other programs to use.


CMAN consists of a set of kernel patches and a userspace program (cman_tool). CMAN depends on CCS (only cman_tool which can optionally be used without CCS if all parameters are given on the command line.)

redhat-cluster-pve

Instal·lació

$ sudo apt-get install redhat-cluster-pve

Fitxers instal·lats

$ sudo dpkg -L redhat-cluster-pve
/.
/etc
/etc/logrotate.d
/etc/logrotate.d/cluster
/etc/init.d
/etc/init.d/cman
/etc/init.d/rgmanager
/etc/default
/etc/default/redhat-cluster-pve
/etc/cluster
/lib
/lib/udev
/lib/udev/rules.d
/lib/udev/rules.d/51-dlm.rules
/usr
/usr/share
/usr/share/doc
/usr/share/doc/redhat-cluster-pve
/usr/share/doc/redhat-cluster-pve/copyright
/usr/share/doc/redhat-cluster-pve/examples
/usr/share/doc/redhat-cluster-pve/examples/cman_notify_template.sh
/usr/share/doc/redhat-cluster-pve/changelog.Debian.gz
/usr/share/cluster
/usr/share/cluster/follow-service.sl
/usr/share/cluster/relaxng
/usr/share/cluster/relaxng/cluster.rng.in.tail
/usr/share/cluster/relaxng/cluster.rng.in.head
/usr/share/cluster/default_event_script.sl
/usr/share/cluster/checkquorum
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/fence_tool.8.gz
/usr/share/man/man8/qdiskd.8.gz
/usr/share/man/man8/fenced.8.gz
/usr/share/man/man8/ccs_update_schema.8.gz
/usr/share/man/man8/confdb2ldif.8.gz
/usr/share/man/man8/mkqdisk.8.gz
/usr/share/man/man8/ccs_tool.8.gz
/usr/share/man/man8/clulog.8.gz
/usr/share/man/man8/ccs_config_dump.8.gz
/usr/share/man/man8/cmannotifyd.8.gz
/usr/share/man/man8/checkquorum.8.gz
/usr/share/man/man8/fence_node.8.gz
/usr/share/man/man8/cman_tool.8.gz
/usr/share/man/man8/ccs_config_validate.8.gz
/usr/share/man/man8/groupd.8.gz
/usr/share/man/man8/clubufflush.8.gz
/usr/share/man/man8/group_tool.8.gz
/usr/share/man/man8/dlm_controld.8.gz
/usr/share/man/man8/clusvcadm.8.gz
/usr/share/man/man8/rgmanager.8.gz
/usr/share/man/man8/cman_notify.8.gz
/usr/share/man/man8/clufindhostname.8.gz
/usr/share/man/man8/clustat.8.gz
/usr/share/man/man8/dlm_tool.8.gz
/usr/share/man/man5
/usr/share/man/man5/cman.5.gz
/usr/share/man/man5/qdisk.5.gz
/usr/share/man/man5/cluster.conf.5.gz
/usr/lib
/usr/lib/libfence.so.4.0
/usr/lib/libcman.so.3.0
/usr/lib/libdlm.so.3.0
/usr/lib/libfenced.so.3.0
/usr/lib/libdlmcontrol.so.3.1
/usr/lib/lcrso
/usr/lib/lcrso/config_ldap.lcrso
/usr/lib/lcrso/config_cmanpre.lcrso
/usr/lib/lcrso/config_xml.lcrso
/usr/lib/lcrso/service_cman.lcrso
/usr/lib/liblogthread.so.3.0
/usr/lib/perl5
/usr/lib/perl5/auto
/usr/lib/perl5/auto/Cluster
/usr/lib/perl5/auto/Cluster/CCS
/usr/lib/perl5/auto/Cluster/CCS/CCS.so
/usr/lib/perl5/auto/Cluster/CCS/CCS.bs
/usr/lib/perl5/Cluster
/usr/lib/perl5/Cluster/CCS.pm
/usr/lib/libdlm_lt.so.3.0
/usr/lib/libccs.so.3.0
/usr/sbin
/usr/sbin/fenced
/usr/sbin/clustat
/usr/sbin/dlm_controld
/usr/sbin/mkqdisk
/usr/sbin/cmannotifyd
/usr/sbin/ccs_tool
/usr/sbin/clunfslock
/usr/sbin/clufindhostname
/usr/sbin/cman_tool
/usr/sbin/rgmanager
/usr/sbin/fence_node
/usr/sbin/clulog
/usr/sbin/ccs_update_schema
/usr/sbin/group_tool
/usr/sbin/cman_notify
/usr/sbin/ccs_config_validate
/usr/sbin/dlm_tool
/usr/sbin/ccs_config_dump
/usr/sbin/groupd
/usr/sbin/clubufflush
/usr/sbin/rg_test
/usr/sbin/qdiskd
/usr/sbin/fence_tool
/usr/sbin/confdb2ldif
/usr/sbin/clusvcadm
/var
/var/log
/var/log/cluster
/var/lib
/var/lib/cluster
/usr/share/cluster/cluster.rng
/usr/share/man/man8/clurgmgrd.8.gz
/usr/lib/libdlmcontrol.so.3
/usr/lib/liblogthread.so.3
/usr/lib/libccs.so.3 
/usr/lib/libdlm_lt.so.3
/usr/lib/libfenced.so.3
/usr/lib/libdlm.so.3
/usr/lib/libfence.so.4
/usr/lib/libcman.so.3
/usr/sbin/clurgmgrd
/usr/sbin/ccs_test

Control del servei. /etc/init.d/cman

Per arrancar el cluster:

$ sudo /etc/init.d/cman start

Configuració

Fitxer /etc/cluster/cluster.conf

Fitxer XML que defineix els nodes d'un cluster. Un exemple:

$ sudo cat /etc/cluster/cluster.conf
<?xml version="1.0"?>
<cluster name="AUGUTEEBRETIC" config_version="4">

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

  <clusternodes>
   <clusternode name="virt04" votes="1" nodeid="1"/>
   <clusternode name="virt03" votes="1" nodeid="2"/>
  </clusternodes>
</cluster>

Podeu trobar més informació al manual:

$ man cluster.conf

Quan l'eina cman_tool inicia el dimoni corosync, el fitxer cluster.conf es llegit i emmagatzemat a la base de dades de corosync (confdb).

Existeix un esquema anoemant cluster.rng que permet validar el fitxer cluster.conf.

TODO: Unrecognized items will produce a warning during cluster startup, and invalid xml structure will cause the cluster startup to fail. See ccs_config_validate(8) and ccs_config_dump(8).

Vegeu també

Enllaços externs