[DRBD-user] drbd-8.3.1rc1: /dev/drbd/by-res/ population & cleanup

Philipp Reisner philipp.reisner at linbit.com
Thu Mar 26 10:03:42 CET 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 Wednesday 25 March 2009 23:41:51 Bruno Voigt wrote:
> Hi,
>
> I have a question regarding the population of /dev/drbd/by-res/ path.
>
> I've  done something like:
>
> 1) create new resource resA -> add to drbd.conf, device /dev/drbd0
> 2) drbdadm create-md resA
> 3) drbdadm adjust resA
> 4) drbdadm wait-connect resA, .., let it sync with other node ..
>
> 5) drbdadm down resA
> 6) remove resource resA from drbd.conf
> 7) create new resource resB -> add to drbd.conf, device /dev/drbd0
> 8) drbdadm create-md resB
> 9) drbdadm adjust resB
> 10) drbdadm wait-connect resB, .., let it sync with other node ..
>
> 11) Surprise, I  see in /dev/drbd/by-res the old symlink named resA ->
> ../../drbd0, and not the new link named resB -> ../../drbd0.
>
> Do I have to consider special steps to shutdown & cleanup resources
> to keep the /dev/drbd/by-res/ mechanism functioning and
> to prevent it from clashing with follow-up resource creations recycling
> the same /dev/drbd device ?

Thanks a lot for the report! That is something we discovered here as well
in the last week. Should be fixed with rc2. Can you confirm ?

-Phil
-- 
: Dipl-Ing Philipp Reisner
: LINBIT | Your Way to High Availability
: Tel: +43-1-8178292-50, Fax: +43-1-8178292-82
: http://www.linbit.com

DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.




More information about the drbd-user mailing list