Questions tagged [mdadm]

A linux utility used to manage software RAID devices.

844 questions
0
votes
0 answers

How to solve a system freeze when mounting a mdadm raid-5 array?

I recently set up a raid-5 array with 4 disks on Ubuntu 22.04. When I try to mount the array using sudo mount /dev/md0 /mnt/md0 the entire system freezes. I can see the desktop but the mouse doesn't respond. Ctrl+F1 doesn't work, the system appears…
0
votes
2 answers

System auto restart during the FIO stress test on a RAID0 array(6x SSDs) created by mdadm under Yocto OS

I met a problem when executing FIO stress test on a RAID0 which built from 6x SSDs thru mdadm under Yocto OS, below is the information: 6x PCIe NVMe SSD are the same vendor and model which is with 1.02TB automotive grade. FIO parameter used for the…
Jacky Lee
  • 1
  • 2
0
votes
1 answer

Why do md array rebuilds start?

I've recently made mdadm report about the events and yesterday I received a number of rebuild events. Why was the rebuild started? I don't see anything relevant in the journal. Also I'm concerned about the "mismatches found: 128 (on raid level 1)"…
x-yuri
  • 2,141
  • 2
  • 24
  • 29
0
votes
1 answer

mdadm raid1 irregular degraded without reason

My raid1 went to degrade state from time to time. Then my application crashes, because the raid is in read-only mode. After a reboot the raid is working fine again. Now I want to find out whats the root-cause for this error. Maybe someone has a tip…
Mark
  • 13
  • 1
  • 5
0
votes
0 answers

How to recover file system (ext4) on raid5?

I have an ext4 file system on a raid5 array, /dev/md0 built from mdadm. I found it wasn't mounted after I reboot once. And I ran a fcsk on it but get a superblock error. So I was going to run mke2fs -n /dev/md0 to get the information of backup…
Programus
  • 101
  • 1
0
votes
0 answers

centos7.9 mdadm raid0's performance which is only 50% of centos8 mdadm raid0

I use the same PC and same NVMe SSDs do the raid performance test on different OS. The steps are as follows: mdadm -C -v /dev/md0 -l0 -n4 /dev/nvme[0123]n1 mkfs.xfs /dev/md0 mount -o discard /dev/md0 /data fio --bs=128k --ioengine=libaio …
0
votes
1 answer

What does `mdadm --manage /dev/md1` do? Do I need to "undo" it?

I ran this hoping to find out a bit about my array (I now know I should have used --detail). But I'm not clear what the --manage option does. It gave no output, and just put me back to the bash prompt. Do I need to run some command to undo…
Codemonkey
  • 1,086
  • 4
  • 19
  • 41
0
votes
0 answers

mdstat mismatch cnt unsynchronized blocks

Both of our servers suffer from mdstat mismatch cnt unsynchronized blocks Every start of the month we got this error and we have to repair the raid using echo 'repair' >/sys/block//md/sync_action This check is caused by…
0
votes
0 answers

How to move a Linux software RAID setup from 1 server to another (Debian)

Currently, I have three USB drives running as a RAID-5 set on a Debian-9 server. All is well. I would like to safely move them to a different server, running Debian-10. The host name of the current server is stored in the metadata for that RAID…
0
votes
0 answers

PCI NVMe mdadm RAID1 performance too slow

I know this has been discussed multiple times but I have not found any solution so far that worked so posting here hoping there is some solutions in Dec 2021… I have a Dell R640 server with dual Xeon Gold processors and 384gb ram. The chassis is…
JackFrost
  • 1
  • 1
0
votes
1 answer

Attempting to create an RAID array in Ubuntu server 20.10

I'm attempting to create a RAID 0 RAID array on Ubuntu server 21.10, but I keep getting the following error: mdadm: An option must be given to set the mode before a second device Here is the syntax I used: ~$ sudo mdadm –create –verbose /dev/md0…
Glenn T
  • 11
  • 1
  • 1
  • 2
0
votes
1 answer

FAILED md RAID10, confusing output

I'm testing a RAID10 array here with mdadm. I wanted to see how many failed devices it could tolerate, rebuild times, etc. At one point I had it doing a resync on 5 or 6 devices, then I rebooted it, Now it is showing inactive and I'm not sure what…
clarknova
  • 11
  • 3
0
votes
1 answer

How do I resize the filesystem on a RAID array?

I've recently added a 5th drive to my software raid array -- and mdadm has accepted it: $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT nvme0n1 259:0 0 894.3G 0 disk ├─nvme0n1p1 259:4 0 512M 0 part │ └─md0 …
James
  • 25
  • 5
0
votes
1 answer

RAID1 Recovery after Degradation

Below is the output from lsblk, mdadm and /proc/mdstat for my 2 disk Raid1 array anand@ironman:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 465.8G 0 disk |-sda1 …
newbie
  • 103
  • 3
0
votes
0 answers

Is it safe to use dmcrypt on top of software raid?

I'm designing a machine, to serve as a NAS. My interest is hobby-level. I would use mdadm to software raid a couple of same-size hdds. At first I'd use raid1, but in the future I'd add another disk and convert it to raid5. My understanding is…
kd8azz
  • 101
  • 1