[DRBD-user] drbd-dkms fails to build under proxmox 6

Alex Kolesnik drbd-user at abisoft.biz
Tue Aug 13 13:02:26 CEST 2019


Hello,

I'm trying to install DRBD 9 under Proxmox 6 VE following by the instruction
from https://docs.linbit.com/docs/users-guide-9.0/#s-proxmox-ls-overview.

# pveversion
pve-manager/6.0-5/f8a710d7 (running kernel: 5.0.18-1-pve)

# cat /etc/apt/sources.list.d/linbit.list
deb http://packages.linbit.com/proxmox/ proxmox-6 drbd-9.0

# apt-get -y install drbd-dkms
...
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 install-info (6.5.0.dfsg.1-4+b1) ...
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for man-db (2.8.5-2) ...
Errors were encountered while processing:
 drbd-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

# 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)
Tue 13 Aug 2019 01:24:31 PM MSK
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
    KDIR=/lib/modules/5.0.18-1-pve/build

make -C /lib/modules/5.0.18-1-pve/build   M=/var/lib/dkms/drbd/9.0.19-1/build/src/drbd  modules
  COMPAT  before_4_13_kernel_read
  COMPAT  blkdev_issue_zeroout_discard
  COMPAT  drbd_release_returns_void
  COMPAT  genl_policy_in_ops
  COMPAT  have_AHASH_REQUEST_ON_STACK
  COMPAT  have_SHASH_DESC_ON_STACK
  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'

Any help is appreciated!

PS BTW, this guide - https://docs.linbit.com/docs/users-guide-9.0/#ch-proxmox -
seems to be outdated since "apt install drbdmanage-proxmox" returns "E: Package
'drbdmanage-proxmox' has no installation candidate"

PPS Also this page
https://docs.linbit.com/docs/users-guide-9.0/#ch-proxmox-linstor seems to have a
dead link - http://git.linbit.com/linstor-proxmox.git

-- 
Best regards,
Alex Kolesnik



More information about the drbd-user mailing list