dm-vdo / vdo-devel

Primary VDO mainline development repository
GNU General Public License v2.0
5 stars 11 forks source link

vdo installation fails on fresh Fedora 40 #191

Open tshikose opened 1 week ago

tshikose commented 1 week ago

Hi, I am unable to install and configure vdo on a fresh Fedora 40 install. I followed the procedure available at https://copr.fedorainfracloud.org/coprs/rhawalsh/dm-vdo/, but it failed while running post script of kmod-kvdo-6.2.7.17-5.fc40.x86_64. The lines below are out put.

Downloading Packages:
[SKIPPED] kmod-kvdo-6.2.7.17-5.fc40.x86_64.rpm: Already downloaded                                                                                                                           
[SKIPPED] vdo-6.2.7.17-4.fc40.x86_64.rpm: Already downloaded                                                                                                                                 
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                      1/1 
  Reinstalling     : kmod-kvdo-6.2.7.17-5.fc40.x86_64                                                                                                                                     1/4 
  Running scriptlet: kmod-kvdo-6.2.7.17-5.fc40.x86_64                                                                                                                                     1/4 
+ /usr/sbin/dkms --rpm_safe_upgrade add -m kvdo -v 6.2.7.17
Error! DKMS tree already contains: kvdo-6.2.7.17
You cannot add the same module/version combo more than once.
+ /usr/sbin/dkms --rpm_safe_upgrade build -m kvdo -v 6.2.7.17
Sign command: /lib/modules/6.10.10-200.fc40.x86_64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
Building module(s).....(bad exit status: 2)
Failed command:
make -j2 KERNELRELEASE=6.10.10-200.fc40.x86_64 -C /lib/modules/6.10.10-200.fc40.x86_64/build M=/var/lib/dkms/kvdo/6.2.7.17/build
Error! Bad return status for module build on kernel: 6.10.10-200.fc40.x86_64 (x86_64)
Consult /var/lib/dkms/kvdo/6.2.7.17/build/make.log for more information.
+ /usr/sbin/dkms --rpm_safe_upgrade install -m kvdo -v 6.2.7.17
Sign command: /lib/modules/6.10.10-200.fc40.x86_64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module: Cleaning build area... Building module(s).....(bad exit status: 2) Failed command: make -j2 KERNELRELEASE=6.10.10-200.fc40.x86_64 -C /lib/modules/6.10.10-200.fc40.x86_64/build M=/var/lib/dkms/kvdo/6.2.7.17/build Error! Bad return status for module build on kernel: 6.10.10-200.fc40.x86_64 (x86_64) Consult /var/lib/dkms/kvdo/6.2.7.17/build/make.log for more information. warning: %post(kmod-kvdo-6.2.7.17-5.fc40.x86_64) scriptlet failed, exit status 10

Error in POSTIN scriptlet in rpm package kmod-kvdo Reinstalling : vdo-6.2.7.17-4.fc40.x86_64 2/4 Running scriptlet: vdo-6.2.7.17-4.fc40.x86_64 2/4 Running scriptlet: vdo-6.2.7.17-4.fc40.x86_64 3/4 Cleanup : vdo-6.2.7.17-4.fc40.x86_64 3/4 Running scriptlet: vdo-6.2.7.17-4.fc40.x86_64 3/4 Running scriptlet: kmod-kvdo-6.2.7.17-5.fc40.x86_64 4/4 Error! Remove cancelled because --rpm_safe_upgrade scenario detected.

I have searched the net a lot but I did not find a working fix. That is the reason I decided to log the issue here.

I look forward to hear from you.

Best regards,

Tshimanga

lorelei-sakai commented 1 week ago

I'm not certain what the build error is here (the dkms logs might provide more detail), but 6.2.7 is a relatively old version of vdo and is not up-to-date with the most recent kernel changes.

However, if you are on Fedora 40, there is no need to install kvdo at all. vdo is include in the Linux kernel as dm-vdo starting in the 6.9 kernel, so you should simply be able to enable the DM_VDO module to use it. I believe the vdo user tools are also provided in Fedora 40 so those should also already be available to you.

tshikose commented 1 week ago

I had tried that in the past. I have just redone it, from a Fedora 40 fresh installation. The vdo package comes from the official updates repository.

#uname -r
6.8.5-301.fc40.x86_64

# dnf install vdo
...
Installed:
  vdo-8.3.0.71-2.fc40.x86_64                                                                                                                                                                  

Complete!

# pvcreate /dev/vdb

# vgcreate vgvdo /dev/vdb
  Volume group "vgvdo" successfully created

# lvcreate --type vdo --name lvvdo --size=10G --virtualsize=24G vgvdo
modprobe: FATAL: Module kvdo not found in directory /lib/modules/6.8.5-301.fc40.x86_64
  /usr/sbin/modprobe failed: 1
  vdo: Required device-mapper target(s) not detected in your kernel.
  Run `lvcreate --help' for more information.

I have also searched for the kvdo module, unsuccessfully.