drbdadm launches binaries related to drbd version These binaries are located in /lib64/: /lib64/drbd /lib64/drbd/drbdadm-83 /lib64/drbd/drbdadm-84 /lib64/drbd/drbdsetup-83 /lib64/drbd/drbdsetup-84 but drbdadm expects them to be in /lib/, after symlinking: # ln -s /lib64/drbd /lib/ drbdadm works as expected # drbdadm create-md test1 initializing activity log NOT initializing bitmap Writing meta data... New drbd meta data block successfully created. success Reproducible: Always Steps to Reproduce: 1. install system with multilib in 17.1 profile 2. install drbd-utils package 3. try to create metadata for resource using administrative commands: drbdadm create-md test1 Actual Results: execvp() failed to exec drbdadm-84: No such file or directory Expected Results: initializing activity log NOT initializing bitmap Writing meta data... New drbd meta data block successfully created. success Portage 2.3.76 (python 3.6.9-final-0, default/linux/amd64/17.1, gcc-8.3.0, glibc-2.29-r2, 4.9.130-xxxx-std-ipv6-64 x86_64) ================================================================= System uname: Linux-4.9.130-xxxx-std-ipv6-64-x86_64-Intel-R-_Xeon-R-_CPU_E5-2620_v4_@_2.10GHz-with-gentoo-2.6 KiB Mem: 32593224 total, 31620132 free KiB Swap: 524284 total, 524284 free Timestamp of repository gentoo: Tue, 15 Oct 2019 11:00:01 +0000 Head commit of repository gentoo: fd03068ce9b1cf393efbbe3a5c65999ccac550ea sh bash 4.4_p23-r1 ld GNU ld (Gentoo 2.32 p2) 2.32.0 app-shells/bash: 4.4_p23-r1::gentoo dev-lang/perl: 5.28.2-r1::gentoo dev-lang/python: 2.7.16::gentoo, 3.6.9::gentoo dev-util/cmake: 3.14.6::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.41.2::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.69-r4::gentoo sys-devel/automake: 1.16.1-r1::gentoo sys-devel/binutils: 2.32-r1::gentoo sys-devel/gcc: 8.3.0-r1::gentoo sys-devel/gcc-config: 2.0::gentoo sys-devel/libtool: 2.4.6-r3::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers) sys-libs/glibc: 2.29-r2::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/var/cache/distfiles" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-march=native -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -O2 -pipe" GENTOO_MIRRORS="http://ftp.vectranet.pl/gentoo/" LANG="pl_PL.UTF-8" LC_ALL="pl_PL.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j33" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="acl amd64 berkdb bzip2 cli crypt cxx dlz dri fortran gdbm iconv ipv6 libtirpc mmx multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr sse sse2 ssl tcpd unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="i686 x86_64" QEMU_USER_TARGETS="i686 x86_64" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I have the same problem : execvp() failed to exec drbdadm-84: No such file or directory The problem is reproduceable with kernel version > 5.0.1, I guess... I have multiple drbd-setups and I can reproduce this on every of this. All setups are running on amd64. is there a patch or something, I can apply? Thanks, Thomas
Found it. For all with the same problem : Setting PATH to $PATH:/lib64/drdb fixes the problem: localhost ~ # echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin localhost ~ # drbdadm execvp() failed to exec drbdadm-84: No such file or directory localhost ~ # export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/lib64/drbd localhost ~ # echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/lib64/drbd localhost ~ # drbdadm USAGE: drbdadm COMMAND [OPTION...] {all|RESOURCE...} GENERAL OPTIONS: --stacked, -S --dry-run, -d --verbose, -v --config-file=..., -c ... --config-to-test=..., -t ... --drbdsetup=..., -s ... --drbdmeta=..., -m ... --drbd-proxy-ctl=..., -p ... --sh-varname=..., -n ... --peer=..., -P ... --version, -V --setup-option=..., -W ... --help, -h COMMANDS: attach disk-options detach connect net-options disconnect up resource-options down primary secondary invalidate invalidate-remote outdate resize verify pause-sync resume-sync adjust adjust-with-progress wait-connect wait-con-int role cstate dstate dump dump-xml create-md show-gi get-gi dump-md wipe-md apply-al hidden-commands Version: 8.9.6 (api:1) GIT-hash: c6e62702d5e4fb2cf6b3fa27e67cb0d4b399a30b build by @localhost, 2020-04-21 15:21:17 No command specified
can reproduce this when switching from profile 17.0 to 17.1 created these symlinks to get it back to work: ln -s /lib64/drbd/ /lib/drbd ln -s /usr/lib64/drbd/ /usr/lib/drbd permanent fixes appreciated
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64bd02f1d3e9dbb8300cfb01af795b5ed374ca95 commit 64bd02f1d3e9dbb8300cfb01af795b5ed374ca95 Author: Jakov Smolic <jakov.smolic@sartura.hr> AuthorDate: 2021-02-17 09:36:34 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2021-02-17 09:36:34 +0000 sys-cluster/drbd-utils: Bump to 9.15.1 Closes: https://bugs.gentoo.org/690298 Closes: https://bugs.gentoo.org/698304 Closes: https://bugs.gentoo.org/705614 Closes: https://bugs.gentoo.org/715616 Closes: https://bugs.gentoo.org/716810 Closes: https://bugs.gentoo.org/718818 Closes: https://bugs.gentoo.org/721110 Closes: https://bugs.gentoo.org/725750 Closes: https://bugs.gentoo.org/728166 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: David Seifert <soap@gentoo.org> sys-cluster/drbd-utils/Manifest | 1 + sys-cluster/drbd-utils/drbd-utils-9.15.1.ebuild | 104 +++++++++++++++++++++ .../files/drbd-utils-9.15.1-run-lock.patch | 13 +++ .../files/drbd-utils-9.15.1-sysmacros.patch | 41 ++++++++ 4 files changed, 159 insertions(+)
The fix should probably also have included drbd itself. Cause right now, the systemd unit is broken as it has /lib/drbd/drbd hardcoded in.
(In reply to Timo Rothenpieler from comment #5) > The fix should probably also have included drbd itself. > Cause right now, the systemd unit is broken as it has /lib/drbd/drbd > hardcoded in. A new bug is usually a good idea so it doesn't get missed.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de1f26b3bd4f5cee5c8fe7ed5e04046dfd8471f5 commit de1f26b3bd4f5cee5c8fe7ed5e04046dfd8471f5 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-03-17 02:09:46 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-03-17 02:13:05 +0000 sys-cluster/drbd-utils: fix systemd unit libdir Closes: https://bugs.gentoo.org/698304 Signed-off-by: Sam James <sam@gentoo.org> .../{drbd-utils-9.15.1.ebuild => drbd-utils-9.15.1-r1.ebuild} | 3 +++ 1 file changed, 3 insertions(+)