[DRBD-user] Minor number count for DRBD 8.4

Lars Ellenberg lars.ellenberg at linbit.com
Thu May 22 12:24:58 CEST 2014

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


On Thu, May 15, 2014 at 01:17:33PM +0200, Bram Klein Gunnewiek wrote:
> Hello,
> 
> 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.:
> root at testnode1:~# cat /etc/modprobe.d/drbd.conf
> options drbd usermode_helper=/root/true minor_count=128

See also:
http://www.gossamer-threads.com/lists/drbd/users/26150#26150

Recommendation: leave it at its default.

> 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:
> 
> #!/bin/bash
> for i in `seq 0 130`;
> do
>     lvcreate -L 4M -n drbd_test_${i} vg1
>     lvcreate -L 128M -n drbd_test_${i}_meta vg1
>             drbdsetup new-resource r${i}
>     drbdsetup new-minor r${i} /dev/drbd${i} 0
>     drbdmeta --force /dev/drbd$i v08 /dev/vg1/drbd_test_${i}_meta 0
> create-md
>     drbdmeta --force /dev/drbd$i v08 /dev/vg1/drbd_test_${i}_meta 0
> apply-al
>     drbdsetup attach /dev/drbd$i /dev/vg1/drbd_test_$i
> /dev/vg1/drbd_test_${i}_meta 0
> done
> 
> This worked without any errors. All disks show up in /proc/drbd:
> 
> 130: cs:StandAlone ro:Secondary/Unknown ds:Inconsistent/DUnknown r-----
>     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
> 
> Is the minor_count setting still valid for 8.4? I did find this
> changelog: http://www.drbd.org/users-guide/s-recent-changes-defaults.html#s-recent-changes-defaults-minor-count
> 
> 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.
> 
> -- 
> Met vriendelijke groet / Kind regards,
> Bram Klein Gunnewiek | Shock Media B.V.
> 
> Tel: +31 (0)546 - 714360
> Fax: +31 (0)546 - 714361
> Web: https://www.shockmedia.nl/
> 


-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
__
please don't Cc me, but send to list   --   I'm subscribed



More information about the drbd-user mailing list