<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
We are upgrading our internal tools to support DRBD 8.4. When using
8.3 we had a specific DRBD configuration in /etc/modprobe.d that set
the minor_count to 128 e.g.: <br>
root@testnode1:~# cat /etc/modprobe.d/drbd.conf <br>
options drbd usermode_helper=/root/true minor_count=128<br>
<br>
While testing out 8.4 we are unsure if the minor_count is still
required. Using the above drbd configuration we created 131 DRBD
devices with the folowing script:<br>
<br>
#!/bin/bash<br>
for i in `seq 0 130`;<br>
do<br>
lvcreate -L 4M -n drbd_test_${i} vg1<br>
lvcreate -L 128M -n drbd_test_${i}_meta vg1<br>
drbdsetup new-resource r${i}<br>
drbdsetup new-minor r${i} /dev/drbd${i} 0<br>
drbdmeta --force /dev/drbd$i v08 /dev/vg1/drbd_test_${i}_meta 0
create-md<br>
drbdmeta --force /dev/drbd$i v08 /dev/vg1/drbd_test_${i}_meta 0
apply-al<br>
drbdsetup attach /dev/drbd$i /dev/vg1/drbd_test_$i
/dev/vg1/drbd_test_${i}_meta 0<br>
done<br>
<br>
This worked without any errors. All disks show up in /proc/drbd:<br>
<br>
130: cs:StandAlone ro:Secondary/Unknown ds:Inconsistent/DUnknown
r-----<br>
ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f
oos:3840<br>
<br>
Is the minor_count setting still valid for 8.4? I did find this
changelog:
<a class="moz-txt-link-freetext" href="http://www.drbd.org/users-guide/s-recent-changes-defaults.html#s-recent-changes-defaults-minor-count">http://www.drbd.org/users-guide/s-recent-changes-defaults.html#s-recent-changes-defaults-minor-count</a><br>
<br>
It mentions that the maximum number of DRBD devices has changed to
1,048,576 however I don't know if this value is default (and fixed).
For DRBD 8.3 the default value was 32 I think thats why we have a
specific option in the drbd kernel module of 128.<span style="color:
rgb(0, 0, 0); font-family: sans-serif; font-size: 13px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: auto;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; display: inline !important; float:
none;"></span>
<pre class="moz-signature" cols="72">--
Met vriendelijke groet / Kind regards,
Bram Klein Gunnewiek | Shock Media B.V.
Tel: +31 (0)546 - 714360
Fax: +31 (0)546 - 714361
Web: <a class="moz-txt-link-freetext" href="https://www.shockmedia.nl/">https://www.shockmedia.nl/</a></pre>
</body>
</html>