Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
On 23/05/12 20:45, Florian Haas wrote:
> On Tue, May 22, 2012 at 5:05 PM, Matthew Bloch <matthew at bytemark.co.uk> wrote:
>> I'm not using drbdadm and the helper, my "pairvm" script manages DRBD
>> for VMs using this command to attach the disc:
>>
>> drbd.setup("disk", drbd_backing_device, drbd_meta_device, 0)
>>
>> and these commands to connect the network, pretty unambitious stuff I
>> assume:
>>
>> drbd.setup("net", *(drbd_net_args + extra_options))
>> drbd.setup("syncer", "-r", "20M")
>> def drbd_net_args
>> [
>> "#{Global.ips['here_drbd']}:#{drbd_port}",
>> "#{Global.ips['there_drbd']}:#{drbd_port}",
>> "B",
>> "--after-sb-0pri", "discard-zero-changes",
>> "--after-sb-1pri", "consensus",
>> "--after-sb-2pri", "disconnect",
>> "--ping-timeout", "50"
>> ]
>> end
>>
>> NB these just translate to "drbdsetup /dev/drbdX net ..." with the IPs
>> and ports automatically assigned by the script.
>
> "drbdsetup /dev/drbdX show" to a pastebin please?
It's not that long, here's one:
$ sudo drbdsetup /dev/drbd0 show
disk {
size 0s _is_default; # bytes
on-io-error pass_on _is_default;
fencing dont-care _is_default;
max-bio-bvecs 0 _is_default;
}
net {
timeout 60 _is_default; # 1/10 seconds
max-epoch-size 2048 _is_default;
max-buffers 2048 _is_default;
unplug-watermark 128 _is_default;
connect-int 10 _is_default; # seconds
ping-int 10 _is_default; # seconds
sndbuf-size 0 _is_default; # bytes
rcvbuf-size 0 _is_default; # bytes
ko-count 0 _is_default;
after-sb-0pri discard-zero-changes;
after-sb-1pri consensus;
after-sb-2pri disconnect _is_default;
rr-conflict disconnect _is_default;
ping-timeout 50; # 1/10 seconds
}
syncer {
rate 20480k; # bytes/second
after -1 _is_default;
al-extents 257;
}
protocol B;
_this_host {
device minor 0;
disk "/dev/here/customer";
meta-disk "/dev/here/customer_meta" [ 0 ];
address ipv4 v3a:45000;
}
_remote_host {
address ipv4 v3b:45000;
}
(disc names & IP addresses changed slightly)
--
Matthew