Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Hi Crhistopher
I use a Dell PowerEdge T300 with 1 GB of RAM, HD's SATA II.
I use two giga ethernet card too...
Search on google, I found some tricks to solve my problem about
performance.
(http://www.drbd.org/users-guide/s-throughput-tuning.html)
So, now /etc/drbd.conf is here:
global { usage-count no; }
common {
syncer
{
rate 300M;
al-extents 3389;
}
disk {
no-disk-barrier;
no-disk-flushes;
}
}
resource r0 {
protocol C;
startup {
wfc-timeout 15;
degr-wfc-timeout 60;
become-primary-on both;
}
net {
sndbuf-size 0;
rcvbuf-size 0;
max-buffers 8000;
unplug-watermark 16;
max-epoch-size 8000;
cram-hmac-alg sha1;
shared-secret "drbd123";
allow-two-primaries;
after-sb-0pri discard-zero-changes;
after-sb-1pri discard-secondary;
after-sb-2pri disconnect;
}
on kvm-0 {
device /dev/drbd0;
disk /dev/sda3;
address 10.0.0.100:7788;
meta-disk /dev/sda4[0];
}
on kvm-1 {
device /dev/drbd0;
disk /dev/sda3;
address 10.0.0.110:7788;
meta-disk /dev/sda4[0];
}
}
I happy now! :)
If you have some other suggestions, will welcome!
Thanks a lot
Best Regards
Em Sex, 2009-10-30 às 09:26 -0700, Christopher Chen escreveu:
> Gilberto: what is the underlying hardware setup?
>
> --
> Chris Chen <muffaleta at gmail.com>
>
> On Oct 30, 2009, at 4:03, Gilberto Nunes Ferreira <gilberto.nunes at selbetti.com.br
> > wrote:
>
> > Hi
> >
> > I am very newbie on DRBD...
> > But I am search with some tricks to improve performance.
> > I deploy a drbd resource and use this drbd.conf:
> >
> > global { usage-count no; }
> > common {
> > syncer
> > {
> > rate 200M;
> > al-extents 3833;
> > }
> >
> > disk {
> > no-disk-barrier;
> > no-disk-flushes;
> > no-md-flushes;
> > use-bmbv;
> > }
> > }
> > resource r0 {
> > protocol C;
> > startup {
> > wfc-timeout 15;
> > degr-wfc-timeout 60;
> > become-primary-on both;
> > }
> > net {
> > sndbuf-size 0;
> > rcvbuf-size 0;
> > max-buffers 16384;
> > unplug-watermark 16384;
> > max-epoch-size 16384;
> > cram-hmac-alg sha1;
> > shared-secret "drbd123";
> > allow-two-primaries;
> > after-sb-0pri discard-zero-changes;
> > after-sb-1pri discard-secondary;
> > after-sb-2pri disconnect;
> > }
> > on kvm-0 {
> > device /dev/drbd0;
> > disk /dev/sda3;
> > address 10.0.0.100:7788;
> > meta-disk internal;
> > }
> > on kvm-1 {
> > device /dev/drbd0;
> > disk /dev/sda3;
> > address 10.0.0.110:7788;
> > meta-disk internal;
> > }
> > }
> >
> > The net adresses run on gigabyte network cards with crossover
> > pathcable....
> >
> > Google's results show me some testimonial that an external meta-
> > disk
> > can be used to improve some performance...
> >
> > My question is: Is that true? If yes, how can I do to have external
> > driver to do meta-disk???
> >
> > Thanks
> >
> > Gilberto Nunes Ferreira
> > TI
> > Selbetti Gestão de Documentos
> > Telefone: +55 (47) 3441-6004
> > Celular: +55 (47) 8861-6672
> >
> >
> > Disse Jesus: Eu sou o Caminho, a Verdade e a Vida. Ninguém vem ao Pa
> > i a
> > não ser por Mim.
> > Jesus said: I am the Way, the Truth and the Life. Nobody goes to
> > Father
> > without Me...
> > <><
> >
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > drbd-user mailing list
> > drbd-user at lists.linbit.com
> > http://lists.linbit.com/mailman/listinfo/drbd-user
Gilberto Nunes Ferreira
TI
Selbetti Gestão de Documentos
Telefone: +55 (47) 3441-6004
Celular: +55 (47) 8861-6672
Disse Jesus: Eu sou o Caminho, a Verdade e a Vida. Ninguém vem ao Pai a
não ser por Mim.
Jesus said: I am the Way, the Truth and the Life. Nobody goes to Father
without Me...
<><