This is an old revision of the document!


Cluster LVM

Installation (Debian Jessie)

  1. install necessary packages:
    apt-get install clvm cman
  2. set locking-type in /etc/lvm/lmv.conf to 3
  3. set no wait time for quorum:
    echo "CMAN_QUORUM_TIMEOUT=0" >> /etc/default/cman
  4. create config file /etc/cluster/cluster.conf and put it to all nodes:
    <cluster name="mycluster" config_version="2">
       <clusternodes>
         <clusternode name="10.0.0.23" nodeid="1">
             <fence>
             </fence>
         </clusternode>
         <clusternode name="10.0.0.112" nodeid="2">
             <fence>
             </fence>
         </clusternode>
       </clusternodes>
       <fencedevices>
       </fencedevices>
       <rm>
       </rm>
    </cluster>
  5. start cman service and clvm service on all nodes:
    service cman start
    service clvm start
  6. check that nodes are online in cluster:
    cman_tool nodes

    output should be:

    root@debian:~# cman_tool nodes
    Node  Sts   Inc   Joined               Name
       1   M      4   2015-10-30 09:34:43  10.0.0.23
       2   M      8   2015-10-30 09:36:04  10.0.0.112
 
linux/clvm.1446194895.txt.gz · Last modified: 2015/10/30 09:48 by vondra