From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from chr.numerigraphe.com (chr.numerigraphe.com [91.121.34.38]) by mail09.linbit.com (LINBIT Mail Daemon) with ESMTP id 7BB91101AC75 for ; Tue, 22 Apr 2014 14:05:39 +0200 (CEST) Received: from localhost.localdomain (ovh3 [5.135.35.94]) by chr.numerigraphe.com (Postfix) with ESMTP id 3D21719600D8 for ; Tue, 22 Apr 2014 13:56:17 +0200 (CEST) Message-ID: <535658E0.7060409@numerigraphe.com> Date: Tue, 22 Apr 2014 13:56:16 +0200 From: Lionel Sausin MIME-Version: 1.0 To: drbd-dev@lists.linbit.com Content-Type: multipart/alternative; boundary="------------000501040208060505090203" Subject: [Drbd-dev] drbdsetup legacy utils can't fall back to version 8.3 List-Id: "*Coordination* of development, patches, contributions -- *Questions* \(even to developers\) go to drbd-user, please." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. --------------000501040208060505090203 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Dear DRBD developers, Ubuntu 12.04 has several kernel users can choose from, some with DRBD 8.3 and others with 8.4. To address this, they have just deployed the drbd utils v8.4.3 with "--with-legacy_utils". This works fine for drbdadm but drbdsetup seems to not revert to the legacy version, even though drbdsetup is built and deployed to /lib/drbd/drbdsetup-83: # /sbin/drbdsetup show 1 Could not connect to 'drbd' generic netlink family # /lib/drbd/drbdsetup-83 show 1 disk { size 0s _is_default; # bytes ... } From my (quick) reading of the source code, drbdadmin works because it adds /lib/drbd to the path using add_lib_drbd_to_path(), and drbdsetup seems not to. Is the correct fix to add a symlink from /lib/drbd/drbdsetup-83 to /sbin, or should drbdsetup be patched to search in /lib/drbd too? Thanks in advance, Lionel Sausin. --------------000501040208060505090203 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Dear DRBD developers,

Ubuntu 12.04 has several kernel users can choose from, some with DRBD 8.3 and others with 8.4.
To address this, they have just deployed the drbd utils v8.4.3 with "--with-legacy_utils".
This works fine for drbdadm but drbdsetup seems to not revert to the legacy version, even though drbdsetup is built and deployed to /lib/drbd/drbdsetup-83:
    # /sbin/drbdsetup show 1
    Could not connect to 'drbd' generic netlink family

    # /lib/drbd/drbdsetup-83 show 1
    disk {
        size                0s _is_default; # bytes
    ...
    }

From my (quick) reading of the source code, drbdadmin works because it adds /lib/drbd to the path using add_lib_drbd_to_path(), and drbdsetup seems not to.
Is the correct fix to add a symlink from /lib/drbd/drbdsetup-83 to /sbin, or should drbdsetup be patched to search in /lib/drbd too?

Thanks in advance,
Lionel Sausin.
--------------000501040208060505090203-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zimbra13.linbit.com (zimbra.linbit.com [212.69.161.123]) by mail09.linbit.com (LINBIT Mail Daemon) with ESMTP id C47B1101AC7C for ; Tue, 22 Apr 2014 14:56:24 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zimbra13.linbit.com (Postfix) with ESMTP id B5C8D301096 for ; Tue, 22 Apr 2014 14:56:24 +0200 (CEST) Received: from zimbra13.linbit.com ([127.0.0.1]) by localhost (zimbra13.linbit.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id dHhUjcXenl5q for ; Tue, 22 Apr 2014 14:56:24 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zimbra13.linbit.com (Postfix) with ESMTP id 97734301097 for ; Tue, 22 Apr 2014 14:56:24 +0200 (CEST) Received: from zimbra13.linbit.com ([127.0.0.1]) by localhost (zimbra13.linbit.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id daRO9lpwtRVT for ; Tue, 22 Apr 2014 14:56:24 +0200 (CEST) Received: from soda.linbit (tuerlsteher.linbit.com [86.59.100.100]) by zimbra13.linbit.com (Postfix) with ESMTPS id 78A07301096 for ; Tue, 22 Apr 2014 14:56:24 +0200 (CEST) Date: Tue, 22 Apr 2014 14:56:24 +0200 From: Lars Ellenberg To: drbd-dev@lists.linbit.com Message-ID: <20140422125624.GB2209@soda.linbit> References: <535658E0.7060409@numerigraphe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <535658E0.7060409@numerigraphe.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Drbd-dev] drbdsetup legacy utils can't fall back to version 8.3 List-Id: "*Coordination* of development, patches, contributions -- *Questions* \(even to developers\) go to drbd-user, please." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Apr 22, 2014 at 01:56:16PM +0200, Lionel Sausin wrote: > Dear DRBD developers, >=20 > Ubuntu 12.04 has several kernel users can choose from, some with > DRBD 8.3 and others with 8.4. > To address this, they have just deployed the drbd utils v8.4.3 with > "--with-legacy_utils". > This works fine for drbdadm but drbdsetup seems to not revert to the > legacy version, even though drbdsetup is built and deployed to > /lib/drbd/drbdsetup-83: > # /sbin/drbdsetup show 1 > Could not connect to 'drbd' generic netlink family >=20 > # /lib/drbd/drbdsetup-83 show 1 > disk { > size 0s _is_default; # bytes > ... > } >=20 > From my (quick) reading of the source code, drbdadmin works because > it adds /lib/drbd to the path using add_lib_drbd_to_path(), and > drbdsetup seems not to. > Is the correct fix to add a symlink from /lib/drbd/drbdsetup-83 to > /sbin, or should drbdsetup be patched to search in /lib/drbd too? "Correct" is whatever works for you. As long as you know what version you are using, use the matching tools. Note that using explicit path (anything with a '/' in it) on drbdadm or drbdsetup causes them to expect the respective "legacy" binary at that same path, beneath the current executable. (on purpose). So if you want to say /sbin/drbdsetup, and expect that to be able to execvp drbdsetup-83, then yes, you have to make that accesible under /sbin/drbdsetup-83, adding it to the PATH will not be good enough. Also, as a heads up, we are in the process on splitting out the DRBD userland, providing the "grand unified drbd utils", so this will all change again within the next few weeks/month. --=20 : Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com DRBD=AE and LINBIT=AE are registered trademarks of LINBIT, Austria. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from chr.numerigraphe.com (chr.numerigraphe.com [91.121.34.38]) by mail09.linbit.com (LINBIT Mail Daemon) with ESMTP id C28A4101AC75 for ; Tue, 22 Apr 2014 17:53:56 +0200 (CEST) Received: from localhost.localdomain (ovh3 [5.135.35.94]) by chr.numerigraphe.com (Postfix) with ESMTP id 7571819600D6 for ; Tue, 22 Apr 2014 17:53:55 +0200 (CEST) Message-ID: <53569092.5010101@numerigraphe.com> Date: Tue, 22 Apr 2014 17:53:54 +0200 From: Lionel Sausin MIME-Version: 1.0 To: drbd-dev@lists.linbit.com References: <535658E0.7060409@numerigraphe.com> <20140422125624.GB2209@soda.linbit> In-Reply-To: <20140422125624.GB2209@soda.linbit> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Drbd-dev] drbdsetup legacy utils can't fall back to version 8.3 List-Id: "*Coordination* of development, patches, contributions -- *Questions* \(even to developers\) go to drbd-user, please." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Thanks for your answer. The Ubuntu maintainer decided to apply the following patch: https://launchpadlibrarian.net/173471818/drbdsetup-fix.debdiff Regards, Lionel. Le 22/04/2014 14:56, Lars Ellenberg a écrit : > "Correct" is whatever works for you. > As long as you know what version you are using, use the matching tools. > > Note that using explicit path (anything with a '/' in it) > on drbdadm or drbdsetup causes them to expect the respective "legacy" > binary at that same path, beneath the current executable. > (on purpose). > > So if you want to say /sbin/drbdsetup, and expect that to be able to > execvp drbdsetup-83, then yes, you have to make that accesible under > /sbin/drbdsetup-83, adding it to the PATH will not be good enough. > > Also, as a heads up, we are in the process on splitting out the DRBD > userland, providing the "grand unified drbd utils", so this will all > change again within the next few weeks/month.