Page 1 of 1

Reading a Windows based Raid 5 with LM

Posted: Mon Sep 14, 2020 5:00 pm
by Axel Larator
I have one PC with a Raid 5 HD set. Works pretty well with Win10. With LM20 I see 4 separated HD, but can't access them as a Raid.How to get read access with LM, without touching them?
The Raid is connected via a separate card. W10 sees only one drive, no special driver required.
<code>
System:
Kernel: 5.4.0-47-generic x86_64 bits: 64 compiler: gcc v: 9.3.0
Desktop: MATE 1.24.0 info: mate-panel wm: marco 1.24.0 dm: LightDM 1.30.0
Distro: Linux Mint 20 Ulyana base: Ubuntu 20.04 focal
Machine:
Type: Desktop Mobo: ASUSTeK model: PRIME B350-PLUS v: Rev X.0x
serial: <filter> UEFI [Legacy]: American Megatrends v: 5602
date: 07/14/2020
Battery:
Device-1: hidpp_battery_1 model: Logitech MX Ergo Multi-Device Trackball
serial: <filter> charge: 100% (should be ignored) rechargeable: yes
status: Discharging
CPU:
Topology: 6-Core model: AMD Ryzen 5 1600X bits: 64 type: MT MCP arch: Zen
rev: 1 L2 cache: 3072 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
bogomips: 86226
Speed: 2568 MHz min/max: 2200/3600 MHz boost: enabled Core speeds (MHz):
1: 2221 2: 1854 3: 1825 4: 2569 5: 1854 6: 1824 7: 1855 8: 2548 9: 2324
10: 1860 11: 1857 12: 1825
Graphics:
Device-1: NVIDIA TU106 [GeForce RTX 2060 Rev. A] vendor: Gigabyte
driver: nvidia v: 450.66 bus ID: 08:00.0 chip ID: 10de:1f08
Display: x11 server: X.Org 1.20.8 driver: nvidia
unloaded: fbdev,modesetting,nouveau,vesa compositor: marco v: 1.24.0
resolution: 1920x1080~60Hz, 1920x1080~60Hz, 1920x1080~60Hz
OpenGL: renderer: GeForce RTX 2060/PCIe/SSE2 v: 4.6.0 NVIDIA 450.66
direct render: Yes
Audio:
Device-1: NVIDIA TU106 High Definition Audio vendor: Gigabyte
driver: snd_hda_intel v: kernel bus ID: 08:00.1 chip ID: 10de:10f9
Device-2: AMD Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel
v: kernel bus ID: 0a:00.3 chip ID: 1022:1457
Device-3: Creative VF0560 Live! Cam Optia AF type: USB
driver: snd-usb-audio,uvcvideo bus ID: 1-1:2 chip ID: 041e:406d
serial: <filter>
Sound Server: ALSA v: k5.4.0-47-generic
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: ASUSTeK driver: r8169 v: kernel port: e000 bus ID: 04:00.0
chip ID: 10ec:8168
IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
IF-ID-1: virbr0 state: down mac: <filter>
IF-ID-2: virbr0-nic state: down mac: <filter>
Drives:
Local Storage: total: 6.40 TiB used: 133.97 GiB (2.0%)
ID-1: /dev/nvme0n1 vendor: Crucial model: CT1000P1SSD8 size: 931.51 GiB
speed: 31.6 Gb/s lanes: 4 serial: <filter> rev: P3CR013 scheme: MBR
ID-2: /dev/sda vendor: Samsung model: SSD 860 EVO 1TB size: 931.51 GiB
speed: 6.0 Gb/s serial: <filter> rev: 1B6Q scheme: MBR
ID-3: /dev/sdb vendor: Samsung model: SSD 860 EVO 1TB size: 931.51 GiB
speed: 6.0 Gb/s serial: <filter> rev: 3B6Q scheme: GPT
ID-4: /dev/sdc vendor: Seagate model: ST1000DM010-2EP102 size: 931.51 GiB
speed: 6.0 Gb/s rotation: 7200 rpm serial: <filter> rev: CC43
ID-5: /dev/sdd vendor: Seagate model: ST1000DM010-2EP102 size: 931.51 GiB
speed: 6.0 Gb/s rotation: 7200 rpm serial: <filter> rev: CC43 scheme: PMBR
ID-6: /dev/sde vendor: Seagate model: ST1000DM010-2EP102 size: 931.51 GiB
speed: 6.0 Gb/s rotation: 7200 rpm serial: <filter> rev: CC43
ID-7: /dev/sdf vendor: Seagate model: ST1000DM010-2EP102 size: 931.51 GiB
speed: 6.0 Gb/s rotation: 7200 rpm serial: <filter> rev: CC43 scheme: PMBR

ID-8: /dev/sdg type: USB model: General USB Flash Disk size: 28.91 GiB
serial: <filter> rev: 1.00 scheme: MBR
RAID:
Hardware-1: Marvell 88SE9230 PCIe SATA 6Gb/s Controller driver: ahci
v: 3.0 port: d000 bus ID: 07:00.0 chip ID: 1b4b.9230 rev: 02

Partition:
ID-1: / size: 441.94 GiB used: 119.47 GiB (27.0%) fs: ext4
dev: /dev/nvme0n1p2
ID-2: swap-1 size: 31.51 GiB used: 0 KiB (0.0%) fs: swap
dev: /dev/nvme0n1p3
ID-3: swap-2 size: 15.26 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sdb2
Sensors:
System Temperatures: cpu: 45.1 C mobo: N/A gpu: nvidia temp: 41 C
Fan Speeds (RPM): N/A gpu: nvidia fan: 0%

Info:
Processes: 340 Uptime: 14h 07m Memory: 31.36 GiB used: 5.75 GiB (18.3%)
Init: systemd v: 245 runlevel: 5 target: graphical.target Compilers:
gcc: 9.3.0 alt: 9 Shell: bash v: 5.0.17 running in: mate-terminal
inxi: 3.0.38
</code>

Re: Reading a Windows based Raid 5 with LM

Posted: Mon Sep 14, 2020 7:07 pm
by antikythera
Is dmraid installed? If so you should be able to access the RAID. If not, don't start messing with the drives because you will lose anything already saved on the RAID.

Re: Reading a Windows based Raid 5 with LM

Posted: Tue Sep 15, 2020 3:02 pm
by Axel Larator
dmraid is installed. Reading the man pages makes me not wiser. I'll search for more info.

<c>
dmraid -l delivers this
asr : Adaptec HostRAID ASR (0,1,10)
ddf1 : SNIA DDF1 (0,1,4,5,linear)
hpt37x : Highpoint HPT37X (S,0,1,10,01)
hpt45x : Highpoint HPT45X (S,0,1,10)
isw : Intel Software RAID (0,1,5,01)
jmicron : JMicron ATARAID (S,0,1)
lsi : LSI Logic MegaRAID (0,1,10)
nvidia : NVidia RAID (S,0,1,10,5)
pdc : Promise FastTrack (S,0,1,10)
sil : Silicon Image(tm) Medley(tm) (0,1,10)
via : VIA Software RAID (S,0,1,10)
dos : DOS partitions on SW RAIDs
</c>

more infos: So controller exists ion LM

<c>
cat /usr/share/misc/pci.ids | grep -i "9230"
9230 88SE9230 PCIe SATA 6Gb/s Controller

/sbin/modinfo /lib/modules/*/kernel/drivers/ata/ahci.ko | egrep -i "filename|9230"

filename: /lib/modules/5.4.0-26-generic/kernel/drivers/ata/ahci.ko
alias: pci:v00001B4Bd00009230sv*sd*bc*sc*i*
filename: /lib/modules/5.4.0-42-generic/kernel/drivers/ata/ahci.ko
alias: pci:v00001B4Bd00009230sv*sd*bc*sc*i*
filename: /lib/modules/5.4.0-45-generic/kernel/drivers/ata/ahci.ko
alias: pci:v00001B4Bd00009230sv*sd*bc*sc*i*
filename: /lib/modules/5.4.0-47-generic/kernel/drivers/ata/ahci.ko
alias: pci:v00001B4Bd00009230sv*sd*bc*sc*i*
</c>

Re: Reading a Windows based Raid 5 with LM

Posted: Fri Sep 18, 2020 3:18 am
by Petermint
Expensive intelligent RAID cards have an internal computer to create and maintain the RAID array. All the OS sees is a single disk. 99.875% of Windows "RAID" cards are just SATA interfaces with a bit of extra processing in the SATA chip. Most of the RAID processing is handled in Windows, not in the adapter card. The OS sees the separate disks.

You can use software to pretend to be Windows. This can be very release sensitive. Slight changes in settings in Windows might not reproduce. I watched lots of Windows RAID arrays die just with Windows updates. Using another OS adds another layer of problems.

I suggest merging the RAID into one large fast disk. You can add memory to cache the files better. Move the more active files to one of your SSDs. You then remove the RAID problem and can use the spare disks for work files, logs, backups.

Re: Reading a Windows based Raid 5 with LM

Posted: Fri Sep 18, 2020 7:42 am
by Axel Larator
Could do that, but it won't solve the problem. I have already a partition with the stuff. I want to know the why and the path to the answer.

lspci

Code: Select all

07:00.0 RAID bus controller: Marvell Technology Group Ltd. 88SE9230 PCIe SATA 6Gb/s Controller (rev 02)
I am a little bit closer now

Code: Select all

[b]lspci -vvnn -s 07:00.0[/b]
07:00.0 RAID bus controller [0104]: Marvell Technology Group Ltd. 88SE9230 PCIe SATA 6Gb/s Controller [1b4b:9230] (rev 02)
	Subsystem: Dawicontrol GmbH 88SE9230 PCIe SATA 6Gb/s Controller [dc93:624e]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 49
	Region 0: I/O ports at d050 [size=8]
	Region 1: I/O ports at d040 [size=4]
	Region 2: I/O ports at d030 [size=8]
	Region 3: I/O ports at d020 [size=4]
	Region 4: I/O ports at d000 [size=32]
	Region 5: Memory at f6510000 (32-bit, non-prefetchable) [size=2K]
	Expansion ROM at f6500000 [disabled] [size=64K]
	Capabilities: <access denied>
	Kernel driver in use: ahci
	Kernel modules: ahci
So the external Marvell board is running the raid5, MB BIOS is set to AHCI and can't be changed to Raid. Can't boot the other drives.

Re: Reading a Windows based Raid 5 with LM

Posted: Fri Sep 18, 2020 5:48 pm
by Petermint

Re: Reading a Windows based Raid 5 with LM

Posted: Sat Sep 19, 2020 6:34 am
by Axel Larator
No, ldmtool reports [].
The problem is that: Marvell 88SE9230 PCIe SATA 6Gb/s Controller driver: [u]AHCI[/u] v: 3.0 port: d000 bus ID: 07:00.0 chip ID: 1b4b.9230 rev: 02

It should be RAID. With Win 10 everything is fine, Raid 5 works. Following the manufacturer's manuals, it could be that the secure boot function prevents the access. I have to install the signature key DAWICONTROL.CER somewhere in BIOS. Found four keys, but no place to install another-one. There are some suggestions to do it via a new UEFI shell. I try that first.

Re: Reading a Windows based Raid 5 with LM

Posted: Sat Sep 19, 2020 11:23 am
by Axel Larator
How to change the kernel driver from AHCI in RAID for this card?

Code: Select all

RAID bus controller [0104]: Marvell Technology Group Ltd. 88SE9230 PCIe SATA 6Gb/s Controller [1b4b:9230] (rev 02)
	Subsystem: Dawicontrol GmbH 88SE9230 PCIe SATA 6Gb/s Controller [dc93:624e]
	Flags: bus master, fast devsel, latency 0, IRQ 47
	I/O ports at d050 [size=8]
	I/O ports at d040 [size=4]
	I/O ports at d030 [size=8]
	I/O ports at d020 [size=4]
	I/O ports at d000 [size=32]
	Memory at f6510000 (32-bit, non-prefetchable) [size=2K]
	Expansion ROM at f6500000 [disabled] [size=64K]
	Capabilities: <access denied>
	Kernel driver in use: ahci  :?: 
	Kernel modules: ahci[ :?: