|
Re: AW: GNBD multipath with devicemapper? -- possible solution: msg#00065linux.redhat.cluster
Hi thank you for your reply, I have been doing some testing during the weekend and found a better solution In my e-mail from last week I had the following setup - SAN (sda1+sdb1) - 2 Nodes directly attached which form a LVM Stripe set aut of sda1 and sdb1 and export it (the created lvm) via gnbd each - Nodes in the LAN which import the two gnbd's and form a multipath-dm target with round-robin policy It works, but I found a solution wich looks much better. - SAN (sda1+sdb1) - 2 Nodes directly attached which export sda1+sdb1 via gnbd each (sda1 and sdb1 form a striped lvm) - Nodes in the LAN which gnbd-import sda1+sdb1 from each node -> noda_sda1 as gnbd0 -> noda_sdb1 as gnbd1 -> nodb_sda1 as gnbd2 -> nodb_sdb1 as gnbd3 - now I created a failover multipath configuration echo "0 85385412 multipath 0 0 2 1 round-robin 0 1 1 251:0 1000 round-robin 0 1 1 251:2 1000" | dmsetup create dma echo "0 85385412 multipath 0 0 2 1 round-robin 0 1 1 251:3 1000 round-robin 0 1 1 251:1 1000" | dmsetup create dmb In this configuration traffic to sda1 goes primaly to noda and traffic to sdb1 primaly to nodeb. I adapt lvm.conf not to include /dev/gnbd in the search for volumgroups, instead /dev/mapper/dm (I get rid of the duplicate volumgroup with this workaround). After I start clvmd, I can see the Volume on the client. With this solution, I have a speedup of about 50% compared to example one (I think because the stipping is done by the client, whereas in example one the client performs round-robin load-balancing about differnt pathes and the gnbd server stripes on both disks...) With dmsetup message dma 0 disable_group 1 dmsetup message dmb 0 disable_group 2 dmsetup message dma 0 enable_group 1 dmsetup message dmb 0 enable_group 2 I can switch between the two pathes. It will be a bit of work is to get the startup scripts work correctly, because the dmsetup multipath command depends on the major and minor device ID's of the gnbd-devices of the client, which seem not to bee persistent, Will take some time of scripting, in order to abstract it.... :-) I will post it, if I have a solution... The most anoying point is for me at the moment the differnence between gnbd read and write performance. Therefore I am glad, that you as a gnbd-developer answered... In my tests, gnbd write is about two to three times faster the gnbd reads. I tried a lot of things (exporting cached, changing readahead with blockdev command (on the underlying device), changing TCP-IP buffersizes) but I had nor improvement. In the upper example, I get a write speed of about 85MB/s over gnbd and a read speed of about 26 MB/s . (the underlying device's sda and sdb manages about 50MB/s (read and write). Therefore read speed is very good.... First I thougt, it might be related to the strange dm-setup I was running, and therefore I tried it with gnbd-exporting and importing just a single block device (without lvm and dm) but the problem remains... Do I have misconfiguerd something completly (I am using GBEth bonding devices) or can you or anybody else confirm the behavior of much better write than read performance? I was testing with RHEL4 2.6.9-6.38.EL Thank you for your help and your great work... Greetings from a rainy morning in Munich Hansjörg Benjamin Marzinski wrote: On Fri, Apr 15, 2005 at 04:24:21PM +0200, Hansjoerg.Maurer@xxxxxx wrote: -- _________________________________________________________________ Dr. Hansjoerg Maurer | LAN- & System-Manager | Deutsches Zentrum | DLR Oberpfaffenhofen f. Luft- und Raumfahrt e.V. | Institut f. Robotik | Postfach 1116 | Muenchner Strasse 20 82230 Wessling | 82234 Wessling Germany | | Tel: 08153/28-2431 | E-mail: Hansjoerg.Maurer@xxxxxx Fax: 08153/28-1134 | WWW: http://www.robotic.dlr.de/ __________________________________________________________________ There are 10 types of people in this world, those who understand binary and those who don't. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: fence_manual...: 00065, David Teigland |
|---|---|
| Next by Date: | [PATCH] (cosmetic) do not configure cmirror: 00065, Fabio Massimo Di Nitto |
| Previous by Thread: | Re: AW: GNBD multipath with devicemapper? -- possible solutioni: 00065, Benjamin Marzinski |
| Next by Thread: | Re: AW: GNBD multipath with devicemapper? -- possible solution: 00065, Benjamin Marzinski |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |