Mailing List Archive

Problem with building drbd 9 with drbd-utils 9 from tarball in Oracle Linux 6
Dear DRBD-Users,



Currently I'm trying to learn and test DRBD 9 on Oracle Linux 6 system (the same for production), and it's isolated from outside network, so using yum is out of question (and I can't upgrade the distro since it will be used on the running production). Currently, I'm building it using the tarball.



[Configuration]

Oracle release: Oracle Linux Server release 6.10 (based on RHEL Server release 6.10)

Kernel version: 4.1.12-124.16.4 el6uek.x86_64

DRBD:   drbd- drbd-9.0.21-1

drbd-utils-9.13.0



[Installation]

Currently, I’m using https://www.server-world.info/en/note?os=CentOS_7&p=drbd9&f=1"]https://www.server-world.info/en/note?os=CentOS_7&p=drbd9&f=1 guide and skipping the drbdmanage step (because it got replaced with linstor and there’s no archive anywhere that I searched). There’s also https://www.server-world.info/en/note?os=CentOS_6&p=drbd&f=1"]https://www.server-world.info/en/note?os=CentOS_6&p=drbd&f=1 guide for EL6 but the DRBD version there is 8.4.



I need to install DRBD 9 because we already use 8.4 in our production and we’re looking to upgrade it.



I can run `make kmp-rpm` for DRBD 9 and `./configure` for drbd-utils just fine, but when I run `make rpm` for drbd-utils, it gives me this error (ran as root):

RPM build errors:    %defattr doesn't define directory mode so file mode defined in %defattr is used for directory: /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/lib/drbd    File not found: /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/usr/sbin/drbdmon    %defattr doesn't define directory mode so file mode defined in %defattr is used for directory: /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/usr/lib/drbd    %defattr doesn't define directory mode so file mode defined in %defattr is used for directory: /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/var/lib/drbd    %defattr doesn't define directory mode so file mode defined in %defattr is used for directory: /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/var/run/drbd    File not found by glob: /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/usr/share/man/man8/drbdmon-*make: *** [rpm] Error 1



I tried installing different versions:

drbd-9.0.25-2 with drbd-utils 9.15.1

                drbd-9.0.21-1 with drbd-utils 9.15.1

                drbd-9.0.25-2 with drbd-utils 9.13.0

but it still gives me the same error.



Here’s the files in directories of the error above:# ls /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/lib/drbd  udev # ls /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/usr/sbin/drbdadm  drbdmeta  drbdsetup # ls /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/usr/lib/debug  drbd  ocf # ls /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/var/lib/drbd # ls /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/var/run/drbd # ls /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/usr/share/man/man8/drbd-8.3.8.gz     drbdadm-8.4.8.gz   drbdmeta-8.3.8.gz   drbdsetup-8.4.8.gzdrbd-8.4.8.gz     drbdadm-9.0.8.gz   drbdmeta-8.4.8.gz   drbdsetup-9.0.8.gzdrbd-9.0.8.gz     drbddisk-8.3.8.gz  drbdmeta-9.0.8.gzdrbdadm-8.3.8.gz  drbddisk-8.4.8.gz  drbdsetup-8.3.8.gz

My question is:

Is drbdmon part of drbdmanage? How do I solve this issue?



Any help will be much appreciated.
Re: Problem with building drbd 9 with drbd-utils 9 from tarball in Oracle Linux 6 [ In reply to ]
On Mon, Dec 07, 2020 at 01:45:56PM +0700, creyhanta@gmail.com wrote:
> My question is:
>
> Is drbdmon part of drbdmanage? How do I solve this issue?

No, it is part of drbd-utils, but you can chose between these options:
a) a recent enough C++ compiler
b) disabling it at build time via rpmbuild options
c) become a customer and use LINBIT's packages, we know how to build our
software.

Regards, rck
_______________________________________________
Star us on GITHUB: https://github.com/LINBIT
drbd-user mailing list
drbd-user@lists.linbit.com
https://lists.linbit.com/mailman/listinfo/drbd-user