hpsahba icon indicating copy to clipboard operation
hpsahba copied to clipboard

hpsa-dkms doesn't patch kenerl during kernel update

Open JiangXL opened this issue 2 years ago • 2 comments

The hpsa-dkms doesn't generate hpsa module with hpsa_use_nvram_hba_flag during kernel upgrade. It suggests that the hpsa is not been patched. If I remove hpsa-dkms by dkms remove hpsa-dkms/1.0 --all and patch the kernel again, it works again.

I don't know the reason, but I post here for others who may have similiar case.

Test on: Proxmox 7.2 with kernel PVE 5.15.39-3.

JiangXL avatar Aug 18 '22 09:08 JiangXL

@JiangXL I had the same issue. After looking into the apt logs after the last kernel update, I realized that the header files are not being downloaded prior to the dkms autoinstall hook.

The proxmox team suggests installing the pve-headers metapackage, without specifying a version. It downloads the current kernel headers automatically and I think it should also do so when updating the kernel. We will see if it works on the next kernel update.

I've already implemented the necessary changes in my proxmox-friendly hpsahba fork.

ghost avatar Aug 27 '22 18:08 ghost

Thank for your work, @mashuptwice !

JiangXL avatar Aug 28 '22 02:08 JiangXL