<div dir="ltr">Thanks for the suggestions, will try them. This is a test system, so there&#39;s no urgency ...<div><br></div><div>G.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 5 Dec 2019 at 09:27, Christoph Böhmwalder &lt;<a href="mailto:christoph.boehmwalder@linbit.com">christoph.boehmwalder@linbit.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 05.12.19 08:51, Gianni Milo wrote:<br>
&gt; Hello,<br>
&gt; <br>
&gt; PVE 6.1 was released recently and it&#39;s using kernel 5.3.10-1-pve. It looks like drbd9 is not building properly on this kernel (spatch?). Mind having a look please ?<br>
&gt; <br>
&gt; Thanks,<br>
&gt; G<br>
&gt; <br>
&gt; make: Entering directory &#39;/var/lib/dkms/drbd/9.0.21-1/build/src/drbd&#39;<br>
&gt; <br>
&gt;     Calling toplevel makefile of kernel source tree, which I believe is in<br>
&gt;     KDIR=/lib/modules/5.3.10-1-pve/build<br>
&gt; <br>
&gt; make -C /lib/modules/5.3.10-1-pve/build   M=/var/lib/dkms/drbd/9.0.21-1/build/src/drbd  modules<br>
&gt;   COMPAT  alloc_workqueue_takes_fmt<br>
&gt;   COMPAT  before_4_13_kernel_read<br>
&gt;   COMPAT  blkdev_issue_zeroout_discard<br>
&gt;   COMPAT  drbd_release_returns_void<br>
&gt;   COMPAT  genl_policy_in_ops<br>
&gt;   COMPAT  have_SHASH_DESC_ON_STACK<br>
&gt;   COMPAT  have_WB_congested_enum<br>
&gt;   COMPAT  have_allow_kernel_signal<br>
&gt;   COMPAT  have_atomic_dec_if_positive_linux<br>
&gt;   COMPAT  have_atomic_in_flight<br>
&gt;   COMPAT  have_bd_claim_by_disk<br>
&gt;   COMPAT  have_bd_unlink_disk_holder<br>
&gt;   COMPAT  have_bio_bi_bdev<br>
&gt;   COMPAT  have_bio_bi_error<br>
&gt;   COMPAT  have_bio_bi_opf<br>
&gt;   COMPAT  have_bio_bi_status<br>
&gt;   COMPAT  have_bio_clone_fast<br>
&gt;   COMPAT  have_bio_flush<br>
&gt;   COMPAT  have_bio_free<br>
&gt;   COMPAT  have_bio_op_shift<br>
&gt;   COMPAT  have_bio_rw<br>
&gt;   COMPAT  have_bio_set_op_attrs<br>
&gt;   COMPAT  have_bioset_create_front_pad<br>
&gt;   COMPAT  have_bioset_init<br>
&gt;   COMPAT  have_bioset_need_bvecs<br>
&gt;   COMPAT  have_blk_check_plugged<br>
&gt;   COMPAT  have_blk_qc_t_make_request<br>
&gt;   COMPAT  have_blk_queue_flag_set<br>
&gt;   COMPAT  have_blk_queue_merge_bvec<br>
&gt;   COMPAT  have_blk_queue_plugged<br>
&gt;   COMPAT  have_blk_queue_split_q_bio<br>
&gt;   COMPAT  have_blk_queue_split_q_bio_bioset<br>
&gt;   COMPAT  have_blk_queue_write_cache<br>
&gt;   COMPAT  have_blkdev_get_by_path<br>
&gt;   COMPAT  have_d_inode<br>
&gt;   COMPAT  have_file_inode<br>
&gt;   COMPAT  have_generic_start_io_acct_q_rw_sect_part<br>
&gt;   COMPAT  have_generic_start_io_acct_rw_sect_part<br>
&gt;   COMPAT  have_genl_family_parallel_ops<br>
&gt;   COMPAT  have_ib_cq_init_attr<br>
&gt;   COMPAT  have_idr_alloc<br>
&gt;   COMPAT  have_idr_is_empty<br>
&gt;   COMPAT  have_inode_lock<br>
&gt;   COMPAT  have_ktime_to_timespec64<br>
&gt;   COMPAT  have_kvfree<br>
&gt;   COMPAT  have_max_send_recv_sge<br>
&gt;   COMPAT  have_netlink_cb_portid<br>
&gt;   COMPAT  have_nla_nest_start_noflag<br>
&gt;   COMPAT  have_nla_parse_deprecated<br>
&gt;   COMPAT  have_nla_put_64bit<br>
&gt;   COMPAT  have_pointer_backing_dev_info<br>
&gt;   COMPAT  have_prandom_u32<br>
&gt;   COMPAT  have_proc_create_single<br>
&gt;   COMPAT  have_ratelimit_state_init<br>
&gt;   COMPAT  have_rb_augment_functions<br>
&gt;   COMPAT  have_refcount_inc<br>
&gt;   COMPAT  have_req_hardbarrier<br>
&gt;   COMPAT  have_req_noidle<br>
&gt;   COMPAT  have_req_nounmap<br>
&gt;   COMPAT  have_req_op_write<br>
&gt;   COMPAT  have_req_op_write_same<br>
&gt;   COMPAT  have_req_op_write_zeroes<br>
&gt;   COMPAT  have_req_prio<br>
&gt;   COMPAT  have_req_write<br>
&gt;   COMPAT  have_req_write_same<br>
&gt;   COMPAT  have_security_netlink_recv<br>
&gt;   COMPAT  have_shash_desc_zero<br>
&gt;   COMPAT  have_signed_nla_put<br>
&gt;   COMPAT  have_simple_positive<br>
&gt;   COMPAT  have_struct_bvec_iter<br>
&gt;   COMPAT  have_struct_kernel_param_ops<br>
&gt;   COMPAT  have_time64_to_tm<br>
&gt;   COMPAT  have_timer_setup<br>
&gt;   COMPAT  have_void_make_request<br>
&gt;   COMPAT  hlist_for_each_entry_has_three_parameters<br>
&gt;   COMPAT  ib_alloc_pd_has_2_params<br>
&gt;   COMPAT  ib_device_has_ops<br>
&gt;   COMPAT  ib_query_device_has_3_params<br>
&gt;   COMPAT  kmap_atomic_page_only<br>
&gt;   COMPAT  need_make_request_recursion<br>
&gt;   COMPAT  queue_limits_has_discard_zeroes_data<br>
&gt;   COMPAT  rdma_create_id_has_net_ns<br>
&gt;   COMPAT  sock_create_kern_has_five_parameters<br>
&gt;   COMPAT  sock_ops_returns_addr_len<br>
&gt;   UPD     /var/lib/dkms/drbd/9.0.21-1/build/src/drbd/compat.5.3.10-1-pve.h<br>
&gt;   UPD     /var/lib/dkms/drbd/9.0.21-1/build/src/drbd/compat.h<br>
&gt; ERROR: spatch not recent enough, need spatch version &gt;= 1.0.8<br>
&gt; make[3]: *** [Makefile:177: drbd-kernel-compat/cocci_cache/fefffd1bac6169c15393f8aff1445926/compat.patch] Error 1<br>
&gt; make[2]: *** [/var/lib/dkms/drbd/9.0.21-1/build/src/drbd/Kbuild:136: /var/lib/dkms/drbd/9.0.21-1/build/src/drbd/drbd-kernel-compat/compat.patch] Error 2<br>
&gt; make[1]: *** [Makefile:1655: _module_/var/lib/dkms/drbd/9.0.21-1/build/src/drbd] Error 2<br>
&gt; make: *** [Makefile:126: kbuild] Error 2<br>
&gt; make: Leaving directory &#39;/var/lib/dkms/drbd/9.0.21-1/build/src/drbd&#39;<br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; Star us on GITHUB: <a href="https://github.com/LINBIT" rel="noreferrer" target="_blank">https://github.com/LINBIT</a><br>
&gt; drbd-user mailing list<br>
&gt; <a href="mailto:drbd-user@lists.linbit.com" target="_blank">drbd-user@lists.linbit.com</a><br>
&gt; <a href="https://lists.linbit.com/mailman/listinfo/drbd-user" rel="noreferrer" target="_blank">https://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
&gt; <br>
<br>
Hi,<br>
<br>
In 9.0.21-1 we introduced a version check for coccinelle, since we use some pretty new features and the whole system falls apart pretty quickly if spatch is too old. Previously, it would fall back to using &quot;SPAAS&quot;, our &quot;spatch as a service&quot; service (i.e. build the patches on LINBIT servers).<br>
This behavior has been changed, and it now aborts if spatch is too old. The reasoning behind this is that a user presumably explicitly doesn&#39;t want to call any online services if they have their own spatch installed. We&#39;re discussing this internally and may or may not have some different behavior in the next release.<br>
<br>
In the meantime, a quick fix would be to upgrade your local spatch installation via the PPA[1] (if you want to use your local version), or temporarily uninstall spatch (if you want to use SPAAS).<br>
<br>
By the way: If you&#39;re using LINSTOR with PVE6.1, there is currently a bug where it&#39;s not possible to create LINSTOR resources using the Proxmox plugin. There will be a new LINSTOR release soon (possibly today) to address this.<br>
<br>
--<br>
Christoph Böhmwalder<br>
LINBIT | Keeping the Digital World Running<br>
DRBD HA —  Disaster Recovery — Software defined Storage<br>
</blockquote></div>