[DRBD-user] /dev/drbd/by-res/ and /dev/drbd/by-disk not cleared
lars.ellenberg at linbit.com
Tue Aug 31 17:11:50 CEST 2010
On Tue, Aug 31, 2010 at 11:07:03AM -0400, Mathieu Gagné wrote:
> On 8/31/10 10:53 AM, Lars Ellenberg wrote:
> >On Mon, Aug 30, 2010 at 10:58:51AM -0400, Mathieu Gagné wrote:
> >>We are having issues with symbolic links in /dev/drbd/by-res/ and
> >>/dev/drbd/by-disk not being cleared after a resource is
> >>The issue was claimed to be fixed with 8.3.1rc2:
> >Nope, that was a different issue than yours, (symlinks have not been
> >updated to new names when they should have) and it was fixed.
> >>Unfortunately, the issue is not fixed and can still be reproduced.
> >>We are using DRBD 8.3.7 but used the latest version of
> >>scripts/drbd.rules from git.
> >>According to git log, this file has not changed for +15 months:
> >>The issue can be reproduced with those steps:
> >>1) create a new standalone resource resname (add it to drbd.conf)
> >>2) drbdadm create-md resname
> >>3) drbdadm attach resname
> >>4) drbdadm -- -o primary resname
> >>5) drbdadm down resname
> >>1) Both symbolic links in /dev/drbd/by-res/ and /dev/drbd/by-disk
> >>still exist.
> >The device's state is now "unconfigured", but the device still exists.
> I do agree that the DRBD device is now unconfigured.
> However the DRBD resource itself does not exist anymore in the
> configuration, therefore:
> - The disk is not associated to any DRBD device (by-disk)
> - The DRBD resource does not exist anymore (by-res)
> Therefore why would there still be a need for the presence of those
> symbolic links which are now a false representation of the reality?
Patches may be accepted ;-)
Not sure if they'd need only be against the udev scriptlet,
or have some support on the drbdadm or even kernel side as well.
: 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