LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-21-2011, 05:16 AM   #1
amin.a
LQ Newbie
 
Registered: May 2011
Posts: 2

Rep: Reputation: Disabled
Exclamation drbd active-passive cluster change primary one


hi

i have a two node drbd cluster, while drbd1 is primary and drbd2 is slave i should make drbd1 slave and unmount drbd partition and make make drbd2 primary and mount drbd partition to see content on drbd2

is it any way to automate it so as drbd1 goes down, drbd1 make itself primary and mount the partition?
 
Old 05-22-2011, 01:59 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello and welcome to LinuxQuestions,

If I understand you correctly you're looking for a Cluster Resource Manager. Did you only setup DRBD or other stuff too? Have a look at http://www.clusterlabs.org/. I've used Corosync in combination with Pacemaker and there very easy to setup and administer. No need for scripting, just configure everything like you want it using the command line.

Looking forward to your participation in the forums. Have fun with Linux.

Kind regards,

Eric
 
0 members found this post helpful.
Old 05-23-2011, 09:42 AM   #3
amin.a
LQ Newbie
 
Registered: May 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EricTRA View Post
Hello and welcome to LinuxQuestions,

If I understand you correctly you're looking for a Cluster Resource Manager. Did you only setup DRBD or other stuff too? Have a look at http://www.clusterlabs.org/. I've used Corosync in combination with Pacemaker and there very easy to setup and administer. No need for scripting, just configure everything like you want it using the command line.

Looking forward to your participation in the forums. Have fun with Linux.

Kind regards,

Eric
dear erictra thanks your reply, i've setup drbd and pacemaker and drbd is doing it's work as well. but when you try to see your resource from another node you should make it primary your self and make another one secondary. if else /dev/drbd0 remains readonly and you can't mount it.

well suppose my primary link is failed how secondary node should know about fail and mount it self?

and my real question is how to tell it to sync some directory?
in pacemaker i used this :

primitive drbd_disk ocf:linbit:drbd \
params drbd_resource="disk0" \
op monitor interval="15s"
primitive fs_drbd ocf:heartbeat:Filesystem \
params device="/dev/drbd/by-res/disk0" directory="/mnt" fstype="ext3"
ms ms_drbd drbd_disk \
meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
colocation mnt_on_master inf: fs_drbd ms_drbd:Master
order mount_after_drbd inf: ms_drbd: promote fs_drbd:start

directory in that configuration should indicate synced directory, isn't so? but nothing get synced with this configuration!

thanks

Last edited by amin.a; 05-23-2011 at 09:44 AM.
 
  


Reply

Tags
cluster, drbd



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Openfiler 2.99 Active/Passive With Corosync, Pacemaker And DRBD LXer Syndicated Linux News 0 04-29-2011 09:10 AM
LXer: Openfiler 2.3 Active/Passive Cluster With Offsite Replication Node LXer Syndicated Linux News 0 02-10-2011 09:10 AM
LXer: Setting Up An Active/Active Samba CTDB Cluster Using GFS & DRBD (CentOS 5.5) LXer Syndicated Linux News 0 12-03-2010 10:00 AM
LXer: How To Set Up An Active/Passive PostgreSQL Cluster With Pacemaker, Corosync, And DRBD (CentOS LXer Syndicated Linux News 0 11-17-2010 08:40 AM
Debian etch, IBM SAN 4700, qlogic. How to change multipath to active /passive? vmm_sys Linux - Enterprise 4 08-16-2010 03:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:15 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