raspberrypi / linux

Kernel source tree for Raspberry Pi-provided kernel builds. Issues unrelated to the linux kernel should be posted on the community forum at https://forums.raspberrypi.com/
Other
10.86k stars 4.88k forks source link

RBD module should be added #6224

Open rbartl opened 2 weeks ago

rbartl commented 2 weeks ago

Describe the bug

RBD module is not available in compiled Raspberry linux kernel images but is needed for CEPH

in #2916 CEPH module was added - additionally RBD would also be very useful to use e.g. CEPH ROOK on raspberry systems

i tried looking into various branches in /arch/arm64/config/defconfig and found no mention of RBD. having it as a module should not have many downsides apart from a bit more compliation time and a bit bigger deb package.

Steps to reproduce the behaviour

using raspbian (debian on raspberry) :/boot# grep CONFIG_BLK_DEV_RBD /boot/config* /boot/config-6.6.28+rpt-rpi-2712:# CONFIG_BLK_DEV_RBD is not set

or

/boot# modprobe rbd modprobe: FATAL: Module rbd not found in directory /lib/modules/6.6.31+rpt-rpi-v8

Device (s)

Raspberry Pi 4 Mod. B

System

/boot# cat /etc/rpi-issue Raspberry Pi reference 2023-11-04 Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 8b2feb9380ee45e03cc4c5753dbf6ca7ea70bc6f, stage6

vcgencmd version May 24 2024 15:30:04 Copyright (c) 2012 Broadcom version 4942b7633c0ff1af1ee95a51a33b56a9dae47529 (clean) (release) (start)

uname -a Linux k3sraspi0 6.6.31+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux

Logs

No response

Additional context

No response

rbartl commented 2 weeks ago

an old PR exists: https://github.com/dwrobel/kernel/pull/3/commits and discussed in https://github.com/raspberrypi/linux/pull/4461 but seems to be not merged

pelwell commented 2 weeks ago

New PR here: #6226

snooops commented 1 week ago

Hi, i have the same need. I looked into the documentation but couldn't find something related so: Is there a way to test the kernel with the this merge?

pelwell commented 1 week ago

sudo rpi-update pulls/6226 is the way to test a pull request before (and after) it has been merged. However, once it has been merged, all future kernel builds will include it, so you could run sudo rpi-update rpi-6.6.y to get the current 6.6 build, or after a few days, just sudo rpi-update.

There's a list of all rpi-update firmwares here: https://github.com/raspberrypi/rpi-firmware/commits/master Anything after (chronologically, before when reading down the page) the 6.6.34 release contains the RBD module.

snooops commented 6 days ago

Thank you for the explaination pelwell, i can confirm that the rbd module works. My Proxmox is now able to work with ceph disks and to use the rbd kernel module.