Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757454AbZDPPir (ORCPT ); Thu, 16 Apr 2009 11:38:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756237AbZDPPih (ORCPT ); Thu, 16 Apr 2009 11:38:37 -0400 Received: from moutng.kundenserver.de ([212.227.126.186]:50924 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755288AbZDPPih (ORCPT ); Thu, 16 Apr 2009 11:38:37 -0400 Message-ID: <49E750E5.7010106@vlnb.net> Date: Thu, 16 Apr 2009 19:38:13 +0400 From: Vladislav Bolkhovitin User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Bart Van Assche CC: LKML , Andi Kleen Subject: Re: dm-multipath and write request ordering References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX18HG0ycHln3oFVw0YYilWw+B9ZIEqxwfQP5V1a G25zoMNJ/etxgqUkNG/hPg4OtwJHRIeHOOC9CVsWrRMn4i0Jxy YP+7RQG7IIEROOfrXAgIA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1381 Lines: 30 Bart Van Assche, on 04/13/2009 03:22 PM wrote: > Hello, > > Several people are using the dm-multipath software as follows: > * Linux server A is using dm-multipath to access data stored on > servers B and C via two iSCSI sessions -- one session between servers > A and B and one session between servers A and C. > * On servers B and C iSCSI target software exports a block device that > is replicated between servers B and C. > > Round-robin load balancing will only work correctly in such a setup if > the replication software knows the order in which write requests have > been queued on the dm-multipath device. Since iSCSI uses the TCP/IP > protocol, write requests generated by server A can arrive out-of-order > on servers B and C. My questions are as follows: > - Is it correct that round-robin load balancing can only work > correctly in such a setup with proper support for write barriers in > the device mapper ? Not necessary. If replication between B and C done synchronously, barriers are not needed. Barriers are necessary only for async commands, when the next command sent before the previous one completed. Vlad -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/