Questions tagged [mdadm]
A linux utility used to manage software RAID devices.
604 questions
5
votes
1
answer
221
views
conflicting reports using mdadm RAID Level 5
I'm using a RAID level 5 array on Kubuntu 25.10. It uses 5 HGST disks and has been active since 2015. This array have survived a hardware migration to a new motherboard as well as continual Linux ...
0
votes
0
answers
66
views
How to convert system partition raid 1 to 0 for the config
I have ordered few ubuntu servers from one provider and need to change raid 1 to raid 0 on system partition
Usualy new server has a disc structure
And I do a change by following commands from running ...
1
vote
1
answer
145
views
mdadm --monitor --program option not working
I am trying to make mdadm call into a simple bash script which writes a message in the kernel log in case of a state change.
I am running on a VM (qemu). The VM is running debian 12.5, and kernel ...
5
votes
1
answer
232
views
Replace Disk Raid 1 And Reconfigure to use full size - mdadm almalinux
I am facing an issue with my RAID 1 (mdadm softraid) on an AlmaLinux/CloudLinux OS server, which is a production server with live data. Here's the chronology of events:
Initially, I created a RAID 1 ...
0
votes
1
answer
74
views
Troubleshooting RAID1 unbootable disks after CMOS reset
I've been running a RAID1 setup using two Samsung 970 EVO 500GB NVMEs on an Asus Z390 Maximus XI Formula motherboard for the last two years. This is my home server running Ubuntu 22.04 and I chose ...
0
votes
0
answers
99
views
mdadm.conf multiple duplicate UUID Ubuntu 24.04
This is more informational than a question though someone may have a better answer than the solution I came up with. This was a fresh install of Ubuntu server, literally nothing done other than ...
1
vote
1
answer
73
views
Remove a disk from a Raid1 array and use it as cold backup?
My RAID1 array is currently running with 3 disks (2x6TB and 1x3TB). I want to remove the smaller disk and wonder if it makes sense to put it in the safe as cold backup. The idea is to be able to mount ...
1
vote
0
answers
76
views
No space left on device but only 50% space and 1% inodes used
This is on a Iomega IX200 NAS which had been expanded to 4TB disks from the original 2TB.
It all looks good.
But when I try to save data to a new file I get the "No space left on device error&...
1
vote
1
answer
431
views
procedure for mdadm in-place RAID5 to RAID6 upgrade
I have a debian host configured as a NAS using 6 disks in a RAID 5 setup. The current configuration is as follows:
# mdadm -D /dev/md0
/dev/md0:
Version : 1.2
Creation Time : Fri Mar ...
2
votes
0
answers
390
views
Mdadm array is inactive, how to fix?
I have a RAID5 array configured with MDADM in Ubuntu 24.04 LTS. The array consists of five 8TB drives, and there have been no changes to it recently.
Today I noticed that the array is not accessible.
...
0
votes
0
answers
54
views
mdadm raid 10 added to fstab shows as removable drive in dolphin. How to fix?
I'm still relatively inexperienced in Linux and this is my first post here. I configured mdadm raid 10 far acording to archlinux RAID wiki page but with custom chunk size 64K. It contains 2 older ...
2
votes
1
answer
102
views
Reassemble Raid5 Array after disabling TPM
Edit: Both /dev/sdd and /dev/sde are missing super blocks. I assume this cannot be fixed. I am whipping the drives and starting over.
I just finished coping 8TB worth of data to a new raid5 array. I ...
1
vote
0
answers
147
views
Can mdadm recreate the raid array - From just the Disks from a mdadm Raid Array?
I suspect that the answer is no.
I also had the UUID of /dev/md0 so I tried to update the mdadm.conf file by adding the line:
ARRAY /dev/md/0 metadata=1.2 UUID=b431e078-5d6d-43db-9631-fd1c827406d5
I ...
1
vote
1
answer
88
views
Is software raid5 created by mdadm in debian compatable with openbsd softraid
I have created software raid5 using mdadm in Debian Linux. Now I want to switch to OpenBSD and interested if I will be able to mount my raid5 under new system?
0
votes
1
answer
292
views
btrfs data integrity checksum under mdadm raid
I found several places suggesting to use btrfs under mdraid (mdadm) or LVM Raid. But nobody expands on how that works when you have data checksum issues!
My main concern of not using btrfs native raid,...
0
votes
1
answer
128
views
Is it possible to change from a LVM + Raid 1 setup to LVM on a live system?
This might be a silly question. But here goes -
Some time ago I setup a Ubuntu Server system which contained two identical drives. Both drives were setup during the installation process using LVM + ...
1
vote
0
answers
32
views
User space program for assembling Linux MD RAID disk images into a coalesced disk image, without using kernel implementation
I've been handed a set of disk images which apparently are Linux MD RAID, asking if I could "reassemble" them. Using a Linux kernel it's as easy as attaching them into partition scanned ...
0
votes
0
answers
203
views
kworker/u16:4+flush-252:4 slows down the system, is it a fragmentation issue?
If I restore a tar archive or do any other bulky filesystem operation I observe kworker running at close to 100% CPU utilization and operations which was done in 10-15 minutes takes a week. When the ...
1
vote
1
answer
470
views
mdadm RAID1: Unable to replace(--add) failed drive
I have a RAID1 array of two hard disks which recently lost one drive, but I can't seem to simply replace the broken one.
mdadm --detail has reported that the first drive slot sda has been removed (...
1
vote
1
answer
152
views
Failed to umount directory from my RAID1 device (device busy)
I have a system that has 1x SSD and 2x 4TB HDD working under software RAID1. (I'm currently upgrading from Linux Mint 20 to 22, another topic regarding that issue)
On my RAID1 I have LUKS encrypted ...
2
votes
0
answers
169
views
Rebuilding RAID1 with Luks after system reinstall
My current Linux Mint 20.3 is soon running out of support, so I figured it's time to install a fresh Linux Mint 22. Currently I have mdadm running two 4TB drives on RAID1 with LUKS. It's been very ...
4
votes
1
answer
743
views
mdadm - can't add back replaced drive due to "does not have a valid v1.2 superblock, not importing" error
I have an existing raid 6 array where one of the drives failed but, when I try to replace it using mdadm --manage /dev/md1 --add /dev/sde3, mdadm errors and I get the following message in the kernel ...
0
votes
2
answers
73
views
Reassembling RAID 5 when 1 disk has been overwritten
I was having trouble with my Ubuntu system that was running a Raid 5 setup with 4x4Tb drives: /dev/sda[1234]. The OS was installed on /dev/sde.
So I decided it was time to do a clean install of the OS....
1
vote
0
answers
185
views
How can I remove raid from my system? [duplicate]
I want to remove raid from my system as I am low on storage and I want to recover the second disk.
How can I recover the second disk, I tried but to no avail, here is my current state :
root@miirabox ~...
1
vote
2
answers
164
views
Converting sw md device from raid0 to raid1 with only one disk online
Is it possible to convert an existing raid0 md device with only one disk to a raid1 md device with one disk in order to add a second mirror disk later?
It should be possible online.
1
vote
0
answers
57
views
Failed Raid5 array with 5 drives - 2 drives removed
Synopsis
Healthy Raid-5 array had 1 drive removed, quickly reinserted and started rebuilding. Then a second drive was removed within 10 minutes. Original drive assignments (sda, sdb etc) have changed ...
1
vote
0
answers
127
views
Cannot rebuild Raid5 array with mdadm --assemble
I have somehow managed to corrupt my RAID 5 array. I am using Ubuntu 24.04, and my existing RAID5 array is on 3 x 240Gb SSDs, and my OS is on a 120Gb SSD. As far as I can tell the 3 raid discs are OK (...
2
votes
1
answer
64
views
"mdadm --grow" is stuck with faulty devices
I am not the first one with a stuck mdadm --grow but I think that mine is a bit different from the others. In my case all devices are faulty and the state says FAILED:
root@linux:~# mdadm --detail /...
0
votes
0
answers
199
views
Busy Disks and Mystery Removed Devices
I was a fool and built this mdadm raid5 targeting the device names. Yes, the ones that get randomly assigned at boot. It lasted a few months but is now in a quite odd state, with mdadm --detail ...
8
votes
1
answer
730
views
"mdadm --grow" is stuck. How can I safely cancel the operation?
I had raid5 8TB * 4
then ,now I added one more 8TB drive and try to make raid5 grow
$mdadm --grow /dev/md128 --raid-disks=5
It comes to 6.1% but it stuck for a few days, and number 482870548 doesn't ...
1
vote
0
answers
94
views
mdadm in script produces nonsesnsical error when muting output to /dev/null
Some really weird Voodoo magic is going on with mdadm in my script:
Creating RAID with: mdadm --create --run --level=1 --metadata=1.2 --raid-devices=2 /dev/md/4 /dev/nvme1n1p4 /dev/nvme0n1p4
mdadm: /...
5
votes
2
answers
679
views
join files/devices in linear mode together in a linux system
In order to test joining 3 files linearly on my Linux system, I do:
fallocate -l 100M file1.image
fallocate -l 150M file2.image
fallocate -l 50M file3.image
and then I run losetup:
losetup /dev/...
1
vote
1
answer
39
views
How do you look into sdb1 and sdc1 to make sure data is mirrored in RAID1 using mdadm?
I've spent hours fighting mdadm to the point I had to reinstall linux and do more fighting, mostly because of write-protected issues on the drives somehow (I still don't explain it), and also ...
1
vote
2
answers
232
views
mdadm RAID1 array only shows 1 drive in /proc/mdstat but --examine shows both drives as "Active" — is the array actually fine? Or has a drive failed?
I received a warning during bootup that a hard drive has failed.
My first thought was it's probably one of the two older HDDs I have configured as a software RAID1 array.
So as soon as the boot ...
0
votes
0
answers
53
views
Server restarts when I run the mdadm --create command
I am not an educated computer guy, so please be gentle with me :)
I have a server I use to run plex with sonarr and radarr. I am trying to create a raid array on it. I have 10x 12TB drives and I want ...
0
votes
1
answer
212
views
How to Persistently Map /dev/sd* Devices in Linux for RAID 0 Array
I'm facing an issue with my RAID 0 setup on Linux. I've created a RAID 0 array with 4 disks, but after a few hours of activity and several system reboots, Linux changes the /dev/sd* directives used in ...
4
votes
1
answer
376
views
RAID5 - Mark a disk faulty during reshape
Context
I have a software RAID5 array (mdadm) on 3 disks. Last week, one disk started to get reading issue:
# dmesg
ata3.00: exception Emask 0x0 SAct 0x30000001 SErr 0x0 action 0x0
ata3.00: irq_stat ...
1
vote
0
answers
125
views
Unable to add drive to raid
I have a 3 RAID arrays on my Linux server.
root@master:~# lsblk -b
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 21474836480 0 loop
loop1 7:1 ...
2
votes
0
answers
185
views
Deciding between raidz1, raidz2 and mdraid6 for JBOD Array
Have a new Linux server with a dual SAS attached 60 bay JBOD filled with 20TB (18.2 TiB) disks. I am definitely running ZFS but trying to figure out whether to use small raidz1's, bigger raidz2, or ...
0
votes
0
answers
125
views
Recover data from a raid 1 disk
i would like to recover some data from a disk which was part of a MD RAID 1 Array in an old fileserver.
Drive 1 had a HW issue and it seems that drive 2 stuck in a Rebuilding State.
My idea was to get ...
0
votes
1
answer
52
views
raid 5 mdadm replace with read errors
I have a software RAID 5 with 3 disks.
For a few days, sda has been giving errors, and today the new disk arrived.
I launched mdadm --replace and the process started correctly, but due to read errors ...
3
votes
1
answer
713
views
I want to shrink my OS's partition on my mdadm RAID-0 array, so that I can install another linux based OS on a new partition of the array
I setup my Raid-0 mdadm raid array a few years ago when I setup my arch install following this guide https://wiki.archlinux.org/title/RAID#Installation while also googling and asking questions ...
2
votes
1
answer
253
views
Accidentally used fdisk on mdadm RAID1 array, can I recover my data?
I installed a new disk today and was prepping it, before realizing that I'd done my "prep" work on an existing RAID1 array!! I'd LOVE to be able to recovered if possible.
My array was ...
0
votes
0
answers
806
views
/dev/md0 changed to /dev/md127
I have a Debian server (latest version and all security updates done) and 3 years ago I created a RAID-5 over 3 disks with mdadm. It still works but I now get an error from the tool logwatch. Just ...
0
votes
0
answers
406
views
Is it possible to recreate a RAID 1 array without destroying partitions?
I previously created a RAID 1 array using mdadm. One of the drives is failing and I have removed it. I would like to continue using the remaining disk while waiting for a replacement disk. I don't ...
0
votes
0
answers
164
views
Problems mounting old Iomega NAS drive in unrealated Ubuntu environment
I'm posting on the StackExchange Unix&Linux community board first, as it seams to be the most likely place for the type of answers I'm looking for. I'm hoping that someone can point me in the ...
1
vote
1
answer
440
views
Single drive added to mdadm RAID disappears after reboot
I have looked and looked for other people with my same problem, but all the questions here seem to be about entire RAIDs disappearing after reboots, whereas I have a problem with just one member drive....
0
votes
0
answers
442
views
Grow/resize RAID when upgrading size of disks
I have a server with 8 disks setup with Linux RAID where the boot partitions are RAID1 and the root and partition where I keep VM images are RAID10. I need to replace with larger disk and grow the ...
2
votes
1
answer
644
views
Migrate existing RAID1 volumes to LVM on Proxmox
Notes: I read How to convert SW MD RAID1 arrays to LVM mirrors? but wanted to pose the question as that is quite an old post. This is my first post.
I have a sw RAID1 (2 8TB HDDs that present to ...
2
votes
2
answers
809
views
Is possible to rename /dev/md126 to /dev/md0 and at the same time maintain the alias on /dev/md?
This is my /etc/mdadm/mdadm.conf
ARRAY /dev/md/root metadata=1.2 name=root UUID=331728d9:c4d12r4f:f589d3ze:01ab3c17
ARRAY /dev/md/backup metadata=1.2 name=backup UUID=429845f1:d5e24f5g:8135dgte:...