Questions tagged [mdadm]
A linux utility used to manage software RAID devices.
841
questions
0
votes
1
answer
62
views
Convert MDADM RAID disk to non-raid disk
I have an existing RAID1 disk that is my boot & root drive locally. I want to convert this disk to a non-RAID disk and allow boot & root to be mounted without mdadm. What is the best way to ...
0
votes
2
answers
163
views
Restore 4-Drive RAID5 array after accidentally reinitializing last 2-Drive as RAID0
I have an Asustor NAS with RAID 5 4-Drive running, after system update it reboot into the initialize page in web console, I think it's part of the upgrade process so I started the initialize progress, ...
0
votes
1
answer
52
views
Cancel `md --grow` operation
I added drives to an md RAID5 array, and quickly realized that I forgot to create a partition as is best practice (something I’ve also learned from bitter experience). How can I cancel this operation ...
1
vote
1
answer
66
views
RAID arrays failed, now will not restart; mdadm --examine shows drive healthy but --assemble fails missing two disks
This is a Mint 21.1 x64 Linux system, which has over the years had disks added to RAID arrays until we now have one array of 10 3TB and one array of 5 6TB. Four HDs dropped out of the arrays, two from ...
0
votes
0
answers
244
views
/dev/md0 - wrong fs type, bad option, bad superblock on /dev/md0, missing codepage or helper program, or other error
I recently had issues with a raid filesystem I created and had some bad luck.
I started creating a raid0 one one disk with the intent to expend it afterwards. I had data on two drives and had only one ...
0
votes
1
answer
90
views
Temporary disconnect of HDD in RAID 0 array
I have a blade server on Rocky Linux 8 with 5 18TB WD Gold HDDs in a software RAID0 built with mdadm. I will accept all the lectures on this and change my ways if you all can help. I needed coffee ...
0
votes
0
answers
22
views
Why is existing RAID1 boot array not working in new PC
This question maybe related to this: https://askubuntu.com/questions/1347710/disappeared-raid-1-array-after-replacing-motherboard
I created a software RAID1 array with 2 SSDs on an HP Z800 and ...
2
votes
0
answers
85
views
Transferring RAID1 to a new motherboard after HDD failure, and no "Superblock" found
First an OS SDD failure followed by a mobo failure, new mobo/cpu/ram later, and I have a RAID1 with a single working disk, and I am trying to get it remounted so that I can add in a new replacement ...
0
votes
0
answers
51
views
Raid6 mdadm reshape operation interrupted - now cannot mount or examine
Edit: Once the reshape finished the drive became fully accessible again.
I had a power failure while a raid6 array was being reshaped, and now certain operations cannot be run against it, including ...
0
votes
0
answers
43
views
qemu virtual machines slow during RAID5 check
Operating system: CentOS 7.9 (on both host and guests)
Host specs:
CPU - AMD EPYC 7502P 32-Core Processor
RAM - 250 GB (only 22G used by all VMs)
Disk - Four Samsung SSD 870 QVO 4TB, grouped in a ...
1
vote
0
answers
61
views
Recreation of mdadm RAID backing store for drbd yields *The peer's disk size is too small!*
Some years ago, I've set up a storage cluster with stock Debian Linux using mdadm RAID as backing store by using the Debian provided drbd 0.8. Currently there are two RAID6 volumes, comprised of some ...
0
votes
0
answers
63
views
mdadm RAID1 degraded but shows active partition on non-present drive
I ran into an issue with a degraded mdadm RAID1 array on a server I inherited:
The server has two identical M.2 SSD drives with 256GB capacity each in a RAID1 config via mdadm for the operating system ...
1
vote
1
answer
92
views
md Raid6 array disapeered on reboot
my raid6 array disappeared on reboot after I grew it. I believe the issue was growing 2x with the full disk not partition. It has been suggested a possible other reason the drives were not correctly ...
0
votes
0
answers
31
views
mdadm resync slows down to 0K/s over time
I have a problem with resyncing my raid1. Everything worked fine until now and I don't know what the problem is.
When I reboot my machine the speed of the resync is at about 100000K/sec but over the ...
0
votes
0
answers
171
views
mdadm RAID5 mismatch, which file(s) on ext4 filesystem are affected?
After a scrub of my 4-disk RAID5 mdadm array I got these log entries:
Dec 03 07:20:53 srv10 kernel: md1: mismatch sector in range 204340608-204340616
Dec 03 07:20:53 srv10 kernel: md1: mismatch sector ...
0
votes
1
answer
29
views
Removed failed disk from
I have a problem with a software raid running mirror. One disk is dead and the server cannot find it. Normally I would have removed it as well.
mdadm --manage /dev/md0 --remove /dev/sda1
But after it ...
0
votes
1
answer
294
views
Growing a RAID-10 on Synology NAS?
I was hoping to add two additional disks to my Synology NAS. Currently it is configured as a four disk RAID-10, no SHR, BTRFS, single volume system. Unfortunately extending a RAID-10 is not possible ...
-1
votes
1
answer
118
views
mdadm array state not fully active - faulty device
I use 4 drives as a raid 5 on my Raspberry Pi. I shutdown my Pi every night and start the next morning. Sometimes the array appears to be faulty. Maybe the Pi doesn't properly mounts the drives ...
0
votes
0
answers
35
views
Can I make hotremove/add on raid5 with mdadm?
I created and assembled software RAID5 array (mdadm), 15 SSD disks.
If I physically remove several disks and add them back, RAID doesn't assembles back. Disks stays in "spare" mode. Even ...
0
votes
0
answers
23
views
Mdadm syncs disks on reboot and performance drops
I have a server debian 11 with 3 disks in raid, it happens that I have to restart it to do an update or other maintenance, when I restart it after days or months it synchronizes the disks and becomes ...
0
votes
0
answers
974
views
MDADM Nvme raid Slower than traditional HDD, need enlightenment
I have setup server about 20 days ago with new nvme, before setup raid mdadm the two Nvme samsung 980 pro 1TB i test bench have IO speed average 1.5G/s each nvme, but after creating raid 1, IO nvme ...
1
vote
0
answers
437
views
mdadm RAID10 disks layout
I've been trying to understand how disks are distributed in a mdadm RAID10, but i'm not completly sure. AFAIK, a native RAID10 is similar to RAID0+RAID1, i.e. data splitted in two chunks, each one ...
0
votes
1
answer
245
views
LVM "not starting" after upgrading physical disks in underlying RAID6 mdadm array
Before:
separate SSD boot drive
RAID6 4 x 2TB -> /dev/md0
LVM PV /dev/md0
LVM VG built on the PV above
LVM 2 data partitions formed in the VG
mounted at /home and /mnt/data
I upgraded from ...
0
votes
1
answer
285
views
How to convert mdadm raid1 to single driver and keep the data?
I have a raid1 created by mdadm in the root partition on /dev/nvme1n1p2 and /dev/nvme0n1p2, efi boot partition is on /dev/nvme1n1p1. Then I followed some commands to remove one of the disks and ...
0
votes
0
answers
49
views
Added wrong drive to raid1 via mdadm, partition recovery
My raid is functioning fine, but I accidentally added a USB drive to what is a sata RAID1 with mdadm.
I noticed this pretty quickly and removed the drive from raid, it was synced about half a percent. ...
1
vote
1
answer
39
views
mdadm using double disk space
My mdadm raid1 2 disks array seems to work good.
It is a 2 500GB array, shared over samba as proxmox bkup disk serving 2 nodes.
By the way, even if the size of the sum of the files is actually about ...
1
vote
1
answer
174
views
DegradedArray event after removing raid with mdadm
My new server (ubuntu22) from hetzner has 2 ssds and and an additional big hdd that is intended to be used for back-ups only. Initially 3 raids were preinstalled, and the biggest part of an hdd was ...
0
votes
2
answers
296
views
raid 0 made of drives of unequal sizes with mdadm
I want to create a raid0 array with mdadm from 3 physical drives: 8TB and 8TB and 16TB.
Is it okay to create 2 8TB partitions on the 16TB drive and simply create the raid0 array from 4 8TB partitions ...
1
vote
1
answer
381
views
Creating a RAID 1 via mdadm ends with completely filled one of drives after sync
I have a server with 2x 1TB NVMe drives and I want them to work in software RAID 1 (mdadm) as a system drive.
After creating and waiting for sync of the array I'm ending with one of the drives in ...
0
votes
0
answers
18
views
Added drives to raid array, and changed it from 5 to 6 but it looks like I forgot to add a filesystem to them
mdadm --detail output
Version : 1.2 Creation Time : Tue Jul 21 15:52:43 2020 Raid Level : raid6 Array Size : 29298912768 (27941.62 GiB 30002.09 GB) Used Dev Size : 9766304256 (9313.87 GiB 10000.70 GB)...
3
votes
1
answer
97
views
Migrating on-premise server with RAID1 to EC2
I have an on-premise physical server running Debian 10 that I would like to migrate to AWS EC2. The server storage consists of two 1TB HDD drives on /dev/sda and /dev/sdb that have been set up as a ...
0
votes
0
answers
225
views
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 ...
0
votes
0
answers
68
views
mdadm automatically fail disk when bad sectors reach threshold
I'm currently running Ubuntu 22.04 with raid1.
Is there a way to configure mdadm to automatically fail disks with over 50 bad blocks but only when there is a spare present?
Ideally, I would like for ...
0
votes
2
answers
62
views
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....
14
votes
1
answer
2k
views
When adding a new disk to RAID 1, why does it sync unused space?
I recently set up RAID 1 on Linux with mdadm. When adding a new HDD to RAID 1, data started to sync between my drives which is expected. I didn't expect that it started syncing the entire drive, ...
0
votes
1
answer
122
views
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 ...
0
votes
1
answer
580
views
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 ...
0
votes
0
answers
592
views
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 -...
0
votes
0
answers
82
views
Recover inactive raid5 array (disk not included in array?)
I have a 4-disk raid5 setup, and after a power outage one of the disks suddenly thinks it doesn't belong to the array.
Each of the disks are /dev/sdb-e, with the raid at /dev/md0.
mdadm --examine /dev/...
1
vote
0
answers
695
views
Removing removed disk from Raid-1 in MDADM
I have a server where 2 disks were in Raid-1. Disk-1 went faulty and due to some reasons I had to take reboot of the server and below is the current status after that. Now, I am unable to remove the ...
2
votes
0
answers
579
views
Kernel reports writeback errors on a RAID array
I have a RAID-6 array md0 for which I have recently started getting bursts of writeback errors in kernel log, like this:
[Thu Jun 9 11:56:49 2022] md0: writeback error on inode 1412769769, offset ...
15
votes
2
answers
2k
views
Unable to mount an XFS filesystem from Linux RAID6 array ("Log inconsistent")
First time poster - my apologies if I don't get the etiquette correct.
I have a ~200TB RAID6 array with 30 disks and I'm unable to mount it - I just get the message:
mount /dev/md125 /export/models
...
1
vote
1
answer
1k
views
Weekly RAID check affecting my system - any way to mitigate?
I recently got my webhost (Hetzner) to add a paid of 16TB SATA drives to my webserver. Currently using 2.5TB of them. They're RAID 1 mirrored.
I also have two 4TB nVME drives with 700GB currently on ...
0
votes
0
answers
191
views
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 ...
0
votes
1
answer
82
views
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 ...
0
votes
0
answers
331
views
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 id>/md/...
0
votes
0
answers
106
views
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 ...
0
votes
0
answers
1k
views
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 ...
0
votes
1
answer
156
views
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 ...
0
votes
1
answer
76
views
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, ...