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:
    <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:
    service cman start
    service clvm start
  6. check that nodes are online in cluster:
    cman_tool nodes
 
linux/clvm.1446194740.txt.gz · Last modified: 2015/10/30 09:45 by vondra