[DRBD-user] Questions about syncing

2011-05-10 Thread Lyre
Hi all: I'm concerning some details about syncing. For example, the secondary was disconnected while new data were wrote to the primary, and then I connect the secondary. Does drbd sync only the different parts or all data on the disk ? And what if I specify --discard-my-data options while conn

[DRBD-user] Using drbd in ha cluster

2011-05-19 Thread Lyre
Hi all: I'm considering using drbd in 2 node ha cluster. Consider such situation: Primary down while secondary (from StandAlone to SyncTarget) was syncing from priamry , so that the data on secondary was Inconsistent and can't be primary。 In a ha cluster, we would prefer to bring up the secondar

[DRBD-user] Incorrect syncer rate

2011-08-22 Thread Lyre
Hi all: After manual manually recovery from split-brain, I noticed the syncer rate was limited to 250kb/s (cat /proc/drbd) , which was default value of drbd . However, It was configured to 10M, drbdadm can confirm this. After running drbdadm adjust drbd0, the syncer rate was correct. What's th

[DRBD-user] Is there a way to limit replication bandwidth?

2011-08-24 Thread Lyre
Hi all: It seems that the `rate' in `syncer' section only interfere the ackground synchronizations, but not replicating. Is there a way to limit the replication bandwidth, envn if it will cause pending IO, so that it won't eat up all the bandwidth. ___

[DRBD-user] data integrity in drbd

2011-08-26 Thread Lyre
Hi all: Is there a way to check the data integrity on both node? I've encounter an confusing problem. We have two drbd devices, 20Gb one for application, and 300Gb one for oracle database(oracle was installed in a different location, which were not replicated), csums-alg & verify-alg were con

Re: [DRBD-user] data integrity in drbd

2011-08-26 Thread Lyre
n Fri, Aug 26, 2011 at 8:28 PM, Lars Ellenberg wrote: > On Fri, Aug 26, 2011 at 05:50:59PM +0800, Lyre wrote: > > Hi all: > > > > Is there a way to check the data integrity on both node? I've > encounter > > an confusing problem. > > > > We have t

Re: [DRBD-user] data integrity in drbd

2011-08-26 Thread Lyre
011 at 11:33 PM, Lyre <417...@gmail.com> wrote: > Hi Lars: > > Yesterday, On the secondary, I shut down drbd, try to use rsync to > recovery the snapshot, but failed. Then I start drbd to resync from the > primary node. It was the only time I bypass drbd, howerver,the a

Re: [DRBD-user] data integrity in drbd

2011-08-26 Thread Lyre
? On Sat, Aug 27, 2011 at 1:27 AM, Arnold Krille wrote: > > On Friday 26 August 2011 17:33:09 Lyre wrote: > > Yesterday,  On the secondary,  I shut down drbd, try to use rsync to > > recovery the snapshot, but failed. Then I start drbd to resync from the > > primary n

Re: [DRBD-user] data integrity in drbd

2011-08-26 Thread Lyre
I'm using a logic volume as drbd's underlying device ( /dev/lvmdatas/db for /dev/drbd1 ), with `before-resync-target "/usr/lib/drbd/snapshot-resync-target-lvm.sh -p 5 -- -c 16k";' and `after-resync-target /usr/libdrbd/unsnapshot-resync-target-lm.sh;' in drbd.conf. Consider the following scenario:

Re: [DRBD-user] data integrity in drbd

2011-08-26 Thread Lyre
Thx Arnold: Sorry, I used reply but not `reply to all', so I forward two `private' mails to drbd maillist again ___ drbd-user mailing list drbd-user@lists.linbit.com http://lists.linbit.com/mailman/listinfo/drbd-user

[DRBD-user] When did DRBD write data to TCP/IP buffer?

2011-08-28 Thread Lyre
Hi all: When did DRBD write the replication data to TCP/IP buffer? Per application IO, or DRBD gather enought data and write them in one IO? Does different protocol use the same mechanism? ___ drbd-user mailing list drbd-user@lists.linbit.com http://lis

[DRBD-user] When would acitivity log take effect?

2011-09-21 Thread Lyre
Hi all: DRBD background resync doesn't promise the IO write order, is that right ? However, when would actitivy log take effect? In my opinion, it is similiar to SRL in VVR. But I'm confused, I'm curious how does it work. Considering this situtaion: Oracle runs on Primary node (node1) , while s

Re: [DRBD-user] When would acitivity log take effect?

2011-09-21 Thread Lyre
So activity log is used only when two nodes are connected ? I believe SRL in VVR stores the IO write order, so it may contain serval writes to a same block. On Wed, Sep 21, 2011 at 8:35 PM, Felix Frank wrote: > Hi, > > good question. > > On 09/21/2011 12:23 PM, Lyre wrote: >&g

[DRBD-user] sync data size of DRBD

2011-09-23 Thread Lyre
Hi all: Want to know the sync data size of DRBD. If application write 1 bytes to a drbd device, how may datas will be write to another node? In this 2 scenarios: 1. Both nodes are connected (UpToDate/UpToDate). Does it equal to the IO size? 2. background resync. In a oracle case, we have file

Re: [DRBD-user] sync data size of DRBD

2011-09-23 Thread Lyre
> And also, do you have a name? It's rather uncommon on this last to post > from a non-identifiable GMail address and also to never give one's name > in a signature. Hi Florian, call me Lyre. I'm not quite sure what you actually mean. But I have extremely bad network con

[DRBD-user] resync after force OutDated node to primary

2011-11-24 Thread Lyre
Hi all: In this situation: I force to bring up the secondary node (which was marked OutDated) as the new primary. After the old Primary node recovered, dstate on new primary were uptodate/unknown while old primary were uptodate/outdated. How to resync data from new primary to old primary? I don't

[DRBD-user] Reync after lvm merge ?

2012-06-21 Thread Lyre
Hi: I have two box with drbds build on lvm. At the very beginning, box A as primary & box B as secondary. box A crashed while doing background sync from A to B, then I do a lvm merge to rollback the drbds on B to an consistent status and bring up the disk. After box A recover, is it safe to di

[DRBD-user] A problem about oracle on drbd

2012-06-28 Thread Lyre
Hi: It may be not appropriate to post this problem here, but I'm just looking for some clues. In our testing environment, we have 2 box attaching to different storage (IBM DS 3000 series), we use LVM to manage the LUNs, build DRBDs (protocol A) on the top of Logic Volume, and create an or

Re: [DRBD-user] A problem about oracle on drbd

2012-06-28 Thread Lyre
some more information: oracle on (pervious) primary is able to start after recovey. On Fri, Jun 29, 2012 at 11:16 AM, Lyre <417...@gmail.com> wrote: > Hi: > >    It may be not appropriate to post this problem here, but I'm just > looking for some clues. > >    In our

Re: [DRBD-user] A problem about oracle on drbd

2012-07-02 Thread Lyre
We are still looking into it. AFAIK, if we change protocol from A to B, or if we enable archivelog, oracle on secondary is able to start after paimary reboot. 在 2012-7-2 下午10:03,"Radu Radutiu" 写道: > Are all your database files on the same filesystem or at least on the same > DRBD resource? I thin

[DRBD-user] Ahead/Behind problem

2012-08-19 Thread lyre
Hi all: I have a drbd 8.3.13 compiled on centos 6.2(kernel 2.6.32-220.el6.x86_64) I tried the Ahead/Behind mode by setting "on-congestion pull-ahead". Thought I don't exactly understand what does the 'congestion-fill' parameter mean, by changing it's value, I noticed something amazing. The manua