View Issue Details

IDProjectCategoryView StatusLast Update
0001301channel: elrepo/el8kmod-drbd84public2022-12-27 19:29
Reportertoracat Assigned Totoracat  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionno change required 
Summary0001301: Update the version for kmod-drbd84 (8.410) on EL8 to version 8.4.11
DescriptionShort answer: a newer version does not build on el8.

Details:

Current status (drbd84 version and the origin of source code) is

el7 8.4.11 Source code from www.drbd.org (linbit)
el8 8.4.10 Source code from kernel-4.18.0-372.9.1.el8
el9 8.4.11 Source code from RHEL 9.1 GA kernel 5.14.0-162.6.1.el9_1

drbd-8.4.11-1.tar.gz at linbit remains unchanged (since Apr 2018)
drbd-8.4.12-1 from github is dated Oct 2020

<el7>

URL: http://www.drbd.org/
%changelog
* Sat Apr 04 2020 Akemi Yagi <toracat@elrepo.org> - 8.4.11-1.2.el7_8
- Rebuilt against RHEL 7.8 kernel 3.10.0-1127.el7

* Fri Nov 02 2018 Akemi Yagi <toracat@elrepo.org> - 8.4.11-1.1.el7_6
- Built against RHEL 7.6 kernel 3.10.0-957.el7

* Thu Apr 26 2018 Akemi Yagi <toracat@elrepo.org> - 8.4.11-1
- Built against RHEL 7.5 kernel 3.10.0-862.el7
- Updated to version 8.4.11

<el8>

URL: http://www.kernel.org/
%changelog
* Mon Nov 28 2022 Akemi Yagi <toracat@elrepo.org> - 8.4.10-1.20.el8_7
- Built against RHEL 8.7 GA kernel 4.18.0-425.3.1.el8

* Fri May 13 2022 Akemi Yagi <toracat@elrepo.org> - 8.4.10-1.19.el8
- Source code from kernel-4.18.0-372.9.1.el8

<el9>

URL: http://www.kernel.org/
%changelog
* Sat Nov 19 2022 Akemi Yagi <toracat@elrepo.org> - 8.4.11-1.20.el9
- Source code from RHEL 9.1 GA kernel 5.14.0-162.6.1.el9_1
- Built against RHEL kernel-5.14.0-162.6.1.el9_1

** Build error with 8.4.11 on el8 (one example)

drbd_wrappers.h:211:57: error: 'MS_RDONLY' undeclared (first use in this function); did you mean 'IS_RDONLY'?
  return open_bdev_excl(path, (mode & FMODE_WRITE) ? 0 : MS_RDONLY, holder);
                                                         ^~~~~~~~~
                                                         IS_RDONLY

Note: MS_RDONLY was previously defined in include/uapi/linux/fs.h
      in the el8 kernel it is defined in include/uapi/linux/mount.h

https://patchwork.kernel.org/project/linux-fsdevel/patch/153313707094.13253.9967026191676513298.stgit@warthog.procyon.org.uk/
Only the mount namespace code that implements mount(2) should be using the
MS_* flags. Suppress them inside the kernel unless uapi/linux/mount.h is
included.

** Build error with 8.4.12 on el8 (one example)

asm/kmap_types.h: No such file or directory

https://access.redhat.com/solutions/6964004
Kindly reach out to vendor of module source to provide source code compatible with RHEL8.6
commit d7029e4549691ecaf1ead536d3322a00bda85659
Author: Thomas Gleixner
Date: Tue Nov 3 10:27:30 2020 +0100

    highmem: Get rid of kmap_types.h

    The header is not longer used and on alpha, ia64, openrisc, parisc and um
    it was completely unused anyway as these architectures have no highmem
    support.
TagsNo tags attached.

Activities

toracat

2022-12-19 14:51

administrator   ~0008863

Additional note for <el8>

Building the source code from kernel-4.19.267 also fails with many errors.

toracat

2022-12-22 19:49

administrator   ~0008874

Last edited: 2022-12-22 19:52

<<< Misc notes >>>

- drbd-8 was merged into kernel long time ago.
- Upgrading this to drbd-9 will not happen in a foreseeable future.
  ( https://lists.linbit.com/pipermail/drbd-user/2022-December/026348.html )

- How to find the drbd version

* in elrepo kmods:
[source tree]/drbd/linux/drbd_config.h
#define REL_VERSION "9.1.7"
REL_VERSION := $(shell sed -ne '/^\#define REL_VERSION/{s/^[^"]*"\([^ "]*\).*/\1/;p;q;}' drbd/linux/drbd_config.h)

* in-kernel:
include/linux/drbd.h
https://github.com/torvalds/linux/commits/master/include/linux/drbd.h

Note: drbd devs are going to change the name 'drbd.h' to 'drbd_config.h'

"To be more similar to what we do in the out-of-tree module and ease the
upstreaming process.

-#include <linux/drbd.h>
+#include <linux/drbd_config.h>
"

Issue History

Date Modified Username Field Change
2022-12-18 17:44 toracat New Issue
2022-12-18 17:44 toracat Status new => assigned
2022-12-18 17:44 toracat Assigned To => toracat
2022-12-19 14:51 toracat Note Added: 0008863
2022-12-22 19:49 toracat Note Added: 0008874
2022-12-22 19:52 toracat Note Edited: 0008874
2022-12-27 19:29 toracat Status assigned => resolved
2022-12-27 19:29 toracat Resolution open => no change required