[DRBD-user] apt install drbd-dkms fails on Proxmox VE 6

Robert Sander r.sander at heinlein-support.de
Tue Aug 13 15:14:26 CEST 2019


The installation of drbd-dkms fails on a current Proxmox VE 6.0 with the following output:

Setting up drbd-dkms (9.0.19-1) ...
Loading new drbd-9.0.19-1 DKMS files...
Building for 5.0.18-1-pve
Building initial module for 5.0.18-1-pve
Error! Bad return status for module build on kernel: 5.0.18-1-pve (x86_64)
Consult /var/lib/dkms/drbd/9.0.19-1/build/make.log for more information.
dpkg: error processing package drbd-dkms (--configure):
 installed drbd-dkms package post-installation script subprocess returned error exit status 10
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for systemd (241-5) ...
Processing triggers for man-db (2.8.5-2) ...
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

root at pve11:~# cat /var/lib/dkms/drbd/9.0.19-1/build/make.log
DKMS make.log for drbd-9.0.19-1 for kernel 5.0.18-1-pve (x86_64)
Di 13. Aug 15:01:04 CEST 2019
make: Entering directory '/var/lib/dkms/drbd/9.0.19-1/build/src/drbd'

    Calling toplevel makefile of kernel source tree, which I believe is in

make -C /lib/modules/5.0.18-1-pve/build   M=/var/lib/dkms/drbd/9.0.19-1/build/src/drbd  modules
  COMPAT  blkdev_issue_zeroout_discard
  COMPAT  before_4_13_kernel_read
  COMPAT  drbd_release_returns_void
  COMPAT  genl_policy_in_ops
  COMPAT  have_WB_congested_enum
  COMPAT  have_atomic_dec_if_positive_linux
  COMPAT  have_atomic_in_flight
  COMPAT  have_bd_claim_by_disk
  COMPAT  have_bd_unlink_disk_holder
  COMPAT  have_bio_bi_bdev
  COMPAT  have_bio_bi_error
  COMPAT  have_bio_bi_status
  COMPAT  have_bio_clone_fast
  COMPAT  have_bio_free
  COMPAT  have_bio_set_op_attrs
  COMPAT  have_bioset_create_front_pad
  COMPAT  have_bioset_init
  COMPAT  have_bioset_need_bvecs
  COMPAT  have_blk_check_plugged
  COMPAT  have_blk_qc_t_make_request
  COMPAT  have_blk_queue_flag_set
  COMPAT  have_blk_queue_merge_bvec
  COMPAT  have_blk_queue_split_q_bio
  COMPAT  have_blk_queue_split_q_bio_bioset
  COMPAT  have_blk_queue_write_cache
  COMPAT  have_blkdev_get_by_path
  COMPAT  have_cn_netlink_skb_parms
  COMPAT  have_d_inode
  COMPAT  have_file_inode
  COMPAT  have_generic_start_io_acct_q_rw_sect_part
  COMPAT  have_generic_start_io_acct_rw_sect_part
  COMPAT  have_genl_family_parallel_ops
  COMPAT  have_ib_cq_init_attr
  COMPAT  have_ib_get_dma_mr
  COMPAT  have_idr_alloc
  COMPAT  have_idr_for_each
  COMPAT  have_idr_is_empty
  COMPAT  have_inode_lock
  COMPAT  have_ktime_to_timespec64
  COMPAT  have_kvfree
  COMPAT  have_max_send_recv_sge
  COMPAT  have_netlink_cb_portid
  COMPAT  have_nla_put_64bit
  COMPAT  have_open_bdev_exclusive
  COMPAT  have_pointer_backing_dev_info
  COMPAT  have_prandom_u32
  COMPAT  have_proc_create_single
  COMPAT  have_ratelimit_state_init
  COMPAT  have_rb_augment_functions
  COMPAT  have_refcount_inc
  COMPAT  have_req_op_write_same
  COMPAT  have_req_op_write_zeroes
  COMPAT  have_req_write_same
  COMPAT  have_security_netlink_recv
  COMPAT  have_shash_desc_zero
  COMPAT  have_signed_nla_put
  COMPAT  have_simple_positive
  COMPAT  have_struct_bvec_iter
  COMPAT  have_time64_to_tm
  COMPAT  have_timer_setup
  COMPAT  have_void_make_request
  COMPAT  hlist_for_each_entry_has_three_parameters
  COMPAT  ib_alloc_pd_has_2_params
  COMPAT  ib_query_device_has_3_params
  COMPAT  kmap_atomic_page_only
  COMPAT  need_make_request_recursion
  COMPAT  queue_limits_has_discard_zeroes_data
  COMPAT  rdma_create_id_has_net_ns
  COMPAT  sock_create_kern_has_five_parameters
  COMPAT  sock_ops_returns_addr_len
  COMPAT  submit_bio_has_2_params
  UPD     /var/lib/dkms/drbd/9.0.19-1/build/src/drbd/compat.5.0.18-1-pve.h
  UPD     /var/lib/dkms/drbd/9.0.19-1/build/src/drbd/compat.h
  GENPATCHNAMES   5.0.18-1-pve
  SPATCH   df672ea316e493b5e8e23769588d1f8f
make[3]: *** [Makefile:189: drbd-kernel-compat/cocci_cache/df672ea316e493b5e8e23769588d1f8f/compat.patch] Error 127
make[2]: *** [/var/lib/dkms/drbd/9.0.19-1/build/src/drbd/Kbuild:126: /var/lib/dkms/drbd/9.0.19-1/build/src/drbd/drbd-kernel-compat/compat.patch] Error 2
make[1]: *** [Makefile:1606: _module_/var/lib/dkms/drbd/9.0.19-1/build/src/drbd] Error 2
make: *** [Makefile:121: kbuild] Error 2
make: Leaving directory '/var/lib/dkms/drbd/9.0.19-1/build/src/drbd'

There is no file compat.patch in the cocci_cache subdirectory:

root at pve11:/var/lib/dkms/drbd/9.0.19-1/build/src/drbd/drbd-kernel-compat/cocci_cache/df672ea316e493b5e8e23769588d1f8f# ls -la
total 32
drwxr-xr-x  2 root root 4096 Aug 13 15:12 ./
drwxr-xr-x 29 root root 4096 Aug 13 15:12 ../
-rw-r--r--  1 root root   89 Aug 13 15:12 applied_cocci_files.txt
-rw-r--r--  1 root root  484 Aug 13 15:12 .compat.cocci
-rw-r--r--  1 root root 2955 Aug 13 15:12 compat.h
-rw-r--r--  1 root root  579 Aug 13 15:12 .compat.patch
-rw-r--r--  1 root root    0 Aug 13 15:12 compat.patch.tmp
-rw-r--r--  1 root root   13 Aug 13 15:12 kernelrelease.txt
-rw-r--r--  1 root root   37 Aug 13 15:12 .spatch.stderr

What is going wrong here?

Robert Sander
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin


Tel: 030 / 405051-43
Fax: 030 / 405051-19

Amtsgericht Berlin-Charlottenburg - HRB 93818 B
Geschäftsführer: Peer Heinlein - Sitz: Berlin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20190813/00d9a70c/attachment.pgp>

More information about the drbd-user mailing list