[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Linux-cluster] DRBD on RHEL6 Cluster?

How did you install drbd? Did you build the RPMs? I believe there is a switch for supporting rgmanager if you build manually. I usually use the ELRepo RPMs, but if you build manually, try this;

yum install flex gcc make kernel-devel
wget -c http://oss.linbit.com/drbd/8.3/drbd-8.3.15.tar.gz
tar -xvzf drbd-8.3.15.tar.gz
cd drbd-8.3.15
./configure \
   --prefix=/usr \
   --localstatedir=/var \
   --sysconfdir=/etc \
   --with-utils \
   --with-km \
   --with-udev \
   --with-pacemaker \
   --with-rgmanager \
make install
chkconfig --add drbd
chkconfig drbd off


On 07/08/13 10:23, D C wrote:
I'm trying to get drbd setup on a new Centos6 cluster.

everything seems to be ok in my cluster.conf, except whenever I add the
drbd resource, it stops working.  I also noticed i don't see anything in
/usr/shared/cluster/ for drbd.  Am I missing a package maybe?

ccs_config_validate fails with:
[root e-clust-01 cluster]# ccs_config_validate
Relax-NG validity error : Extra element rm in interleave
tempfile:20: element rm: Relax-NG validity error : Element cluster
failed to validate content
Configuration fails to validate

and when i use rg_test it always skips over the drbd resource, and
anything nested inside it.

<?xml version="1.0"?>
<cluster config_version="52" name="testclust">
<cman cluster_id="46117" expected_votes="1" two_node="1"/>
<clusternode name="e-clust-01.local" nodeid="1">
<method name="ipmi">
<device name="ipmi-clust-01"/>
<clusternode name="e-clust-02.local" nodeid="2">
<method name="ipmi">
<device name="ipmi-clust-02"/>
<failoverdomain name="failapache" nofailback="1" ordered="1" restricted="0">
<failoverdomainnode name="e-clust-01.local" priority="1"/>
<failoverdomainnode name="e-clust-02.local" priority="1"/>
<script file="/etc/init.d/httpd" name="init-httpd"/>
        <drbd name="drbd-storage" resource="storage" />
<fs name="fs-storage" device="/dev/drbd/by-res/storage/0" fstype="ext4"
mountpoint="/storage" options="noatime" />
<service autostart="1" name="oddjob">
<drbd ref="drbd-storage">
<fs ref="fs-storage">
<ip address=" <>" monitor_link="1">
<script ref="init-httpd"/>
<logging debug="on" logfile_priority="debug" syslog_priority="debug">
<logging_daemon debug="on" logfile_priority="debug" name="rgmanager"
<logging_daemon debug="on" logfile_priority="debug" name="corosync"
<logging_daemon debug="on" logfile_priority="debug" name="fenced"
<fencedevice agent="fence_ipmilan" auth="password"
ipaddr="" login="root" name="ipmi-clust-01" passwd="root"
<fencedevice agent="fence_ipmilan" auth="password"
ipaddr="" login="root" name="ipmi-clust-02" passwd="root"


Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without access to education?

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]