Questions tagged [mdadm]
A linux utility used to manage software RAID devices.
604 questions
5
votes
1
answer
213
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 ...
1
vote
1
answer
141
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 ...
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 ...
1
vote
1
answer
72
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
1
answer
409
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 ...
0
votes
0
answers
53
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 ...
1
vote
0
answers
140
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 ...
0
votes
1
answer
268
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,...
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 ...
1
vote
1
answer
455
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 (...
2
votes
0
answers
166
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 ...
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
2
answers
160
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
125
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 (...
0
votes
0
answers
196
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 ...
1
vote
0
answers
92
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: /...
1
vote
1
answer
38
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 ...
0
votes
0
answers
45
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 ...
4
votes
1
answer
372
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 ...
2
votes
0
answers
183
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
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 ...
2
votes
1
answer
248
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
394
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 ...
1
vote
1
answer
425
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....
2
votes
1
answer
636
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 ...