Install AMD RYZEN FakeRaid Driver (rcraid) on Debian 11 (PVE 7)
Today I’m trying to use ASUS TUF GAMING B450M-PRO S
‘s buildin SATA RAID (Fake RAID) to create RAID 0 disk on my PVE homelab.
I follow the ASUS’s BIOS Fake RAID manual to setup the RAID 0, but I cant see the RAID disk by useing fdisk -l
on PVE system.
After search the reason on the Internat, I know that I should insmod AMD RAID driver which named rcraid. You can refer to the following steps:
Method 1: compile it yourself
1. Install depends
1.1. Install headers
Follow the pve repostories wiki, edit /etc/apt/sources.list.d/pve-enterprise.list, change to pve-no-subscription
1 | deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription |
1 | apt install pve-headers-$(uname -r) |
1.2. Install Other Depends
1 | apt install sudo build-essential unzip git |
2. Download AMD Raid Driver
https://www.amd.com/en/support/chipsets/amd-socket-am4/x370
Although this driver is compatible with X370 chipset.
But is also working for my B450 chipset.
1 | mkdir -pv rcraid && cd rcraid |
3. Download Patch
This driver code can’t be compiled under kernel 5.11.22-1-pve, we should use the aur rcraid-dkms package patch.
1 | git clone https://aur.archlinux.org/rcraid-dkms.git |
4. Compile driver and install
1 | cd .. |
Method 2: use prebuild ubuntu package
Change repostory
edit /etc/apt/sources.list.d/pve-enterprise.list:
1 | deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription |
edit /etc/apt/sources.list.d/rcraid.list:
1 | deb [trusted=yes] http://ppa.launchpad.net/thopiekar/rcraid/ubuntu hirsute main |
Install rcraid-dkms package:
1 | apt update |
Update grub:
Append modprobe.blacklist=ahci
to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub
then run:
1 | update-grub |