[DRBD-user] "drbdadm attach" problem under 8.4.5

Lars Ellenberg lars.ellenberg at linbit.com
Mon Nov 3 22:31:05 CET 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 Sat, Nov 01, 2014 at 01:15:54AM +0800, d tbsky wrote:
> hi:
>     I also try drbd 8.3.16. it seems simpler but works. not like 8.4.
> where can I report the bug??
> 
> "drbdadm -d attach drbd-test"  result:
> drbdsetup 1 disk /dev/rootvg/drbd-test /dev/rootvg/drbd-test internal
> --set-defaults --create-device
> 

Just use "drbdadm adjust" please.

	Lars

> 2014-10-28 2:07 GMT+08:00 d tbsky <tbskyd at gmail.com>:
> > hi:
> >     the man page said "drbdadm up" is "drbdadm attach and connect". but
> >
> > "drbdadm -d up drbd-single" result:
> > drbdsetup-84 new-resource drbd-single
> > drbdsetup-84 new-minor drbd-single 10 0
> > drbdmeta 10 v08 /dev/rootvg/drbd-single internal apply-al
> > drbdsetup-84 attach 10 /dev/rootvg/drbd-single .....
> > drbdsetup-84 connect drbd-single ...

Yes. So that's what you'd need to do,
if you insist on doing it manually.

> > and "drbdadm -d attach drbd-single" result:
> > drbdmeta 10 v08 /dev/rootvg/drbd-single internal apply-al
> > drbdsetup-84 attach 10 /dev/rootvg/drbd-single ...

Exactly.

> > under drbd 8.4.5. "drbdadm attach" won't do "drbdsetup new-resource"
> > and "drbdsetup new-minor" first so it failed.

Correct.

> > and if I manually do "drbdsetup new-resource" and "drbdsetup
> > new-minor" first by hand, then "drbdadm attach" will success.
> >
> > is this a bug or feature?

Works as designed.

-- 
: 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