LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 09-21-2015, 06:56 PM   #1
Bluestreak
Member
 
Registered: Feb 2003
Location: Worcester, Massachusetts
Distribution: Ubuntu 11.04 and Mandriva Powerpack 2010
Posts: 41

Rep: Reputation: 15
Centos 7: DRBD: Configuring a resource: Parsing errors


Been bashing my head against this issue for two weeks. Reaching out for help. I am trying to implement CLVM with Pacemaker/Corosync, and am stuck in the process of creating the resource needed to replicate data on an LVM. I have tried to follow examples from the Pacemaker manual and the DRBD website, and am getting parsing errors. What follows is the error, along with two attempts at creating the resource.

This is the error on the production servers

conflicting use of disk 'disk:rhapsody-prd-01:/dev/mapper/vg01-rhapsody' ...
drbd.d/datastore.res:16: disk 'disk:rhapsody-prd-01:/dev/mapper/vg01-rhapsody' first used here.
drbd.d/datastore.res:16: conflicting use of disk 'disk:rhapsody-prd-01:/dev/mapper/vg01-rhapsody' ...
drbd.d/datastore.res:16: disk 'disk:rhapsody-prd-01:/dev/mapper/vg01-rhapsody' first used here.

The following are two different resource configurations:

--- Config 1 (based on the Pacemaker manual) ---

resource wwwdata {
protocol C;
meta-disk internal;
device /dev/drbd1;

syncer {
verify-alg sha1;
}

on rhapsody-prd-01 {
disk /dev/vg01/rhapsody/drbd-demo;
address <node1IP>:7789;

on rhapsody-prd-02 {
disk /dev/vg01/rhapsody/drbd-demo;
address <node2IP>:7789;
}

}


--- Config 1 ---


--- Config 2 (Based on the DRBD Usage Guide) ----

resource datastore {
volume 0 {
device /dev/drbd1;
disk /dev/mapper/vg01-rhapsody;
meta-disk internal;
}

volume 1 {
device /dev/drbd2;
disk /dev/mapper/vg01-rhapsody;
meta-disk internal;
}

on rhapsody-prd-01 {
address <node1 IP>:7789;
}

on rhapsody-prd-02 {
address <node2 IP>:7789;
}
}

--- Config 2 ---

NOTE: Both of the above configurations have proper formatting (tabs, indent,etc). Unfortunately, once it gets posted, all the text gets aligned left

Both yield the same result, the error shown above. I tried a third different way, and got a different error. I have tried this on the production server that is being prepared for a live deployment, and on VMs that I am running on VirtualBox. I get different results. The Pacemaker documentation itself says that there are multiple ways to create a data replication resource, so I have tried to create one based on examples that I have seen in other websites. No luck. My suspicion is that the config file needs to adhere to a strict syntax, similar to python, and am not able to pin down what the rules are (tabbed categories, curly brace placement, etc).

Anyone have any suggestions for how to create a DRBD resource that can create data redundancy for CLVM? Wanted to reach out for help as I seem to be getting a similar error for multiple attempts. Thanks in advance.

Last edited by Bluestreak; 09-21-2015 at 07:01 PM. Reason: Typo and removed acronym
 
Old 09-22-2015, 12:40 AM   #2
paul2015
Member
 
Registered: Apr 2015
Distribution: CentOS Fedora
Posts: 149

Rep: Reputation: 4
hi i would add

resource datastore {
volume 0 {
device /dev/drbd1;
disk /dev/mapper/vg01-rhapsody;
disk /dev/xxx
meta-disk internal;
}

and also selinux can have denials. also i loaded drbd module with modprobe drbd. what is putput of drbdadm create-md datastore and than you must drbdadm up datastore. what is in your glocal_common.conf file? so i am not expert in clusters i started now learning it. configured several situations and they work. but together we can handle. so write more details.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lubuntu the pacemaker can't start the drbd resource Bruninho Linux - Virtualization and Cloud 1 09-17-2015 09:44 AM
howto configure drbd resource in pacemaker z_haseeb Debian 1 04-11-2014 05:54 PM
DRBD resource data move axicos Linux - Server 1 03-08-2011 05:12 AM
LXer: Installing and Configuring Openfiler with DRBD and Heartbeat LXer Syndicated Linux News 0 10-26-2008 12:00 PM
removing a DRBD resource alirezan1 Linux - Software 0 10-08-2008 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 07:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration