[DRBD-user] drbdadm resize - unrecognized option '--size'
Roland Kammerer
roland.kammerer at linbit.com
Fri Aug 24 08:37:23 CEST 2018
On Thu, Aug 23, 2018 at 05:58:17PM +0200, Dominik Vallendor wrote:
> Hello everyone,
>
> today we tried to shrink a drbd device online.
> Following the documentation over at:
> https://docs.linbit.com/docs/users-guide-8.4/#s-resizing we ran
>
> "drbdadm resize --size=<new-size> <resource>"
>
> which led to the following error: "drbdadm: unrecognized option '--size'".
>
> After some research we found an archived thread
> (http://lists.linbit.com/pipermail/drbd-user/2012-June/018551.html) which
> mentions that error and confirms it as a bug.
> The documentation for drbd 8.0-8.3 uses the old command syntax ("drbdadm --
> --size=<new-size> resize <resource>") which works, the documentation for
> drbd 8.4 and 9.0 uses a new command syntax which does not work.
> I tried this with drdb-utils 8.9.6 and the current 9.5.0 version.
>
> These mistakes in the documentation can be found in the man pages for
> drbdadm as well.
>
> Debug information:
> drbd: version: 8.4.10 (api:1/proto:86-101)
> drbd-utils:
> Version: 8.9.6 (api:1)
> GIT-hash: c6e62702d5e4fb2cf6b3fa27e67cb0d4b399a30b build by user at somewhere,
> 2018-04-04 11:24:10
>
> Version: 9.5.0 (api:1)
> GIT-hash: ee126652638328b55dc6bff47d07d6161ab768db build by user at somewhere,
> 2018-08-23 16:53:06
>
> Could you please confirm this bug and fix the documentation/bug?
Yeah, the arg-parsing is a bit weird on how/when it passes args to the
underlying programs (i.e., drbdmeta/drbdsetup)... Most likely it will be
an update to the UGs, let's see.
Thanks, rck
More information about the drbd-user
mailing list