Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 20.04.1 5.4.0-42-generic Not seeing drives in RAID #30

Open
billyjbryant opened this issue Aug 29, 2020 · 6 comments
Open

Ubuntu 20.04.1 5.4.0-42-generic Not seeing drives in RAID #30

billyjbryant opened this issue Aug 29, 2020 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@billyjbryant
Copy link

billyjbryant commented Aug 29, 2020

Issue

I am using Ubuntu 20.04.1 with Kernel 5.4.0-42-generic. The main OS is installed on an SSD connected to an ASUS AHCI SATA Controller.
I have installed 2 3TB drives which are connected to the AMD Raid controller and have been configured in the Option ROM as a single Raid1 3TB LD.

I am attempting to use the 3TB LD as storage and /home; however, I am unable to see anything in Ubuntu other than the two 2.99TB devices independently.

Setup

System

Motherboard
# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
	Manufacturer: ASUSTeK COMPUTER INC.
	Product Name: M5A99FX PRO R2.0
	Version: Rev 1.xx
	Serial Number: 121206243900084
	Asset Tag: To be filled by O.E.M.
	Features:
		Board is a hosting board
		Board is replaceable
	Location In Chassis: To be filled by O.E.M.
	Chassis Handle: 0x0003
	Type: Motherboard
	Contained Object Handles: 0

Handle 0x0025, DMI type 10, 6 bytes
On Board Device Information
	Type: Video
	Status: Enabled
	Description:    To Be Filled By O.E.M.

Handle 0x0033, DMI type 41, 11 bytes
Onboard Device
	Reference Designation:  Onboard IGD
	Type: Video
	Status: Enabled
	Type Instance: 1
	Bus Address: 0000:00:02.0

Handle 0x0034, DMI type 41, 11 bytes
Onboard Device
	Reference Designation:  Onboard LAN
	Type: Ethernet
	Status: Enabled
	Type Instance: 1
	Bus Address: 0000:00:19.0

Handle 0x0035, DMI type 41, 11 bytes
Onboard Device
	Reference Designation:  Onboard 1394
	Type: Other
	Status: Enabled
	Type Instance: 1
	Bus Address: 0000:03:1c.2
SATA Controllers
root@thor:/var/log# lspci | grep -i sata
00:11.0 RAID bus controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [RAID5 mode] (rev 40)
08:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01)

rcraid

I have installed rcraid and rcraid-dkms

$ sudo apt list | grep rcraid                                                                                                                      [4:30:29]

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

rcraid-dkms/focal,now 8.1.0-0~202006152046-pkg28~ubuntu20.04.1 amd64 [installed]
rcraid/focal,now 8.1.0-0~202006152046-pkg28~ubuntu20.04.1 amd64 [installed]

dmesg

root@thor:/var/log# cat dmesg | grep rcraid
[    6.154928] kernel: rcraid: loading out-of-tree module taints kernel.
[    6.154935] kernel: rcraid: module license 'Proprietary' taints kernel.
[    6.156826] kernel: rcraid: module verification failed: signature and/or required key missing - tainting kernel
[    6.158000] kernel: <5>AMD, Inc. rcraid raid driver version 8.1.0 build_number 8.1.0-00039 built Aug 24 2020
[    6.158001] kernel: <5>rcraid built on thor by root on Mon 24 Aug 2020 06:03:12 AM PDT
[    6.158002] kernel: <5>rcraid: cmd_q_depth 512, tag_q_depth 16, max_xfer 448, use_swl 0xffffffff
[   48.218638] kernel: scsi 0:0:0:0: Direct-Access     ATA      ST3000DM007-1WY1 0001 PQ: 0 ANSI: 5
[   48.218826] kernel: sd 0:0:0:0: Attached scsi generic sg6 type 0
[   48.219810] kernel: scsi 2:0:0:0: Direct-Access     ATA      ST3000DM007-1WY1 0001 PQ: 0 ANSI: 5
[   48.220112] kernel: sd 2:0:0:0: Attached scsi generic sg7 type 0

lsblk

sdg                 8:96   0   2.7T  0 disk 
sdh                 8:112  0   2.7T  0 disk 

lsmod

root@thor:/var/log# lsmod | grep rcraid
rcraid               5005312  0

rcadm

I installed the RAIDXpress software and ran rcadm but got an error that no controllers were found.

root@thor:/var/log# rcadm -M -qa -v


main: no controllers found

/etc/default/grub

root@thor:/var/log# cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT="Ubuntu"
GRUB_HIDDEN_TIMEOUT="0"
GRUB_HIDDEN_TIMEOUT_QUIET="true"
GRUB_TIMEOUT_STYLE="hidden"
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash modprobe.blacklist=ahci"
GRUB_CMDLINE_LINUX=""
...
[OMITTED]

I'm not sure what to do or how to get the raid controller to be recognized. If anyone has any thoughts or ideas, I'm all ears!

@billyjbryant billyjbryant changed the title Ubuntu 20.04.1 5.4.0-42-generic Not seeing Raid Devices Ubuntu 20.04.1 5.4.0-42-generic Not seeing drives in RAID Aug 29, 2020
@thopiekar
Copy link
Owner

Looks like you need anther type of drivers. Is AMD providing any for you?
The controller(s) which are working here for me are:

02:00.1 RAID bus controller: Advanced Micro Devices, Inc. [AMD] Device 43bd (rev 01)
0b:00.2 RAID bus controller: Advanced Micro Devices, Inc. [AMD] Device 7916 (rev 51)

@thopiekar thopiekar added the help wanted Extra attention is needed label Oct 31, 2020
@kubuntugamer
Copy link

kubuntugamer commented Oct 31, 2020

this chipset
: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller

is supported by the dmraid driver. I had this controller on my previous Extreme 9 mobo. You will most likely need to look under /dev/mapper for your array. it should start with pdc_ and have some sort of string of characters after it(ex: pdc_abcdefg).

During install you will need to open a terminal and do:

sudo apt install dmraid

and then start the installation as usual. I "believe"(as its been a long time since i've dealt with this controller chipset) that the installer "should" recognize the array disk. Please note however i could be wrong. If i am wrong then you will need to do a manual partition and during that phase you will be able to setup your array. when asked where to install the bootloader be sure to select your array device and not any single disk or partition. you want the "block device" offered by the controller.

@MarkLTZ
Copy link

MarkLTZ commented Jan 13, 2022

Please, take a look at #44

@dmiller423
Copy link

I'm on impish (21.10) and have a supported device?
I've gotten this to work before, currently I also get no block device through the adapter/driver ...

[ 1.045489] <5>rcraid_probe_one: vendor = 0x1022 device 0x7916
[ 1.045491] <5>rcraid_probe_one: vendor = 0x1022 device 0x7916
[ 1.045493] <5>rcraid_probe_one: Total adapters matched 2

@MarkLTZ I see you've jacked multiple issue threads to reference yours:
your closed issue and fork holds up boot for minutes and then doesn't work.

If dmraid works for it, perhaps that's how I got it working before?
I'd love to know how.
Or else it's incompatible newer kernels? doesn't much make sense.
Might install an older version and check tomorrow :|

@MarkLTZ
Copy link

MarkLTZ commented Feb 17, 2022

I'm on impish (21.10) and have a supported device? I've gotten this to work before, currently I also get no block device through the adapter/driver ...

[ 1.045489] <5>rcraid_probe_one: vendor = 0x1022 device 0x7916 [ 1.045491] <5>rcraid_probe_one: vendor = 0x1022 device 0x7916 [ 1.045493] <5>rcraid_probe_one: Total adapters matched 2

@MarkLTZ I see you've jacked multiple issue threads to reference yours: your closed issue and fork holds up boot for minutes and then doesn't work.

If dmraid works for it, perhaps that's how I got it working before? I'd love to know how. Or else it's incompatible newer kernels? doesn't much make sense. Might install an older version and check tomorrow :|

I closed my fork because it does not work for NVMe RAID due an incompatible with x470/x570 amd chipsets.

New version provided from AMD does not support these chipsets.

To use this driver on impish I think you should compile from source the driver provided by @thopiekar on your OS

@dmiller423
Copy link

The PPA for ubuntu dkms module supports impish, it doesn't work tho.
Also, I have 4x sata III devices : not using nvme raid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants