[DRBD-user] Error when trying to mount drbd partition : 'Bad geometry: block count xxx exceeds size of device'

Lars Ellenberg lars.ellenberg at linbit.com
Fri Oct 9 09:38:02 CEST 2009

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, Oct 08, 2009 at 02:01:57PM -0700, clipclop wrote:
> >> What could cause the discrepancy between the logical and DRBD volume
> >> sizes ?
> >
> >Do you use "flexible-meta-disk" ? if not, then thats your problem.
> >the "meta-disk device[index]" method uses strictly 128 MiB.
> >
> >What does drbd log in kernel messages during attach?
> >there should be lines like "drbd_bm_resize called with capacity".
> After changing the meta-disk option to "flexible-meta-disk" , issues now
> resolved.
> As storage in the Terabytes becomes more common perhaps DRBD in the future
> could warn about meta-data size if a large partition is detected. 

Unfortunately, that is not easily possible at meta data creation.
We _do_ warn, however, on _attach_.
You should find a message like
"truncating very big lower level device to currently
 maximum possible <some large number> sectors"

If not, please tell me, and I double check that warning.

: 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