LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-18-2009, 07:36 PM   #1
pyruby
LQ Newbie
 
Registered: Oct 2009
Posts: 17

Rep: Reputation: 0
DRBD nodes don't synchronize.. Pls help!


I set up drbd on 2 nodes, but they seem to take forever to synchronize, here's what I got from my primary node when I did a "cat /proc/drbd"


m:res cs ro ds p mounted fstype
... sync'ed: 0.1% (99928/99944)M
0:r0 SyncSource Primary/Secondary UpToDate/Inconsistent C /mnt/drbd ext3


I tried "drbdadm -- --discard-my-data connect r0" on the secondary node which seems to have 'bad' data, but it still doesn't work. Any help will be appreciated, thanks in advance.
 
Old 11-18-2009, 09:27 PM   #2
fang0654
Member
 
Registered: Oct 2003
Location: New York, NY
Distribution: Ubuntu
Posts: 110

Rep: Reputation: 28
You can use the following:

Make sure you run this from the node with the good data!

Code:
drbdadm -- --overwrite-data-of-peer primary r0
How are your nodes connected?
 
Old 11-18-2009, 10:27 PM   #3
pyruby
LQ Newbie
 
Registered: Oct 2009
Posts: 17

Original Poster
Rep: Reputation: 0
Tried the command... but nothing changes.

The nodes are connected into the same network using a switch box.

And here's my drbd.conf:

global {
usage-count yes;
}
common {
protocol C;

}

resource r0 {

on drbd1 {
device /dev/drbd0;
disk /dev/sda2;
address 192.168.1.101:7788;
meta-disk internal;
}
on drbd2 {
device /dev/drbd0;
disk /dev/sda2;
address 192.168.1.100:7788;
meta-disk internal;
}
}
 
Old 11-18-2009, 11:40 PM   #4
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: Debian, Ubuntu
Posts: 400

Rep: Reputation: 39
How much data is there and what kind of ethernet connection? 100 or 1000?
 
Old 11-19-2009, 01:35 AM   #5
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Quote:
m:res cs ro ds p mounted fstype
... sync'ed: 0.1% (99928/99944)M
0:r0 SyncSource Primary/Secondary UpToDate/Inconsistent C /mnt/drbd ext3
It doesn't finish the synchronizing, once it finish only the Secondary state will change as UpToDate(and your disk about 100GB so may be it will take time to finish synchronize)

Are you using dedicated network line for DRBD and what is the bandwidth?

Last edited by kirukan; 11-19-2009 at 04:25 AM.
 
Old 11-19-2009, 04:21 AM   #6
pyruby
LQ Newbie
 
Registered: Oct 2009
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for the reply! The problem is solved now.

I used "drbdsetup /dev/drbd0 syncer -r 110M" to speed up the sync rate. It takes around 1 and a half hours and the nodes are connected.
 
  


Reply

Tags
drbd, synchronization, synchronize


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't play .pls files in Rhythmbox, closes when I try to load .pls file lqv Linux - Software 2 01-07-2013 09:30 AM
Help with drbd KAOZ_IT Linux - Server 1 08-29-2007 02:31 AM
Drbd vsergeev Linux - Networking 0 07-30-2007 11:35 AM
DRBD on Fedora? Phaethar Linux - Software 1 03-13-2004 10:47 AM
pls pls pls help me ! i'm tired with httpd config on fedora apache 2.0.48 AngelOfTheDamn Fedora 0 01-24-2004 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:41 PM.

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