Questions tagged [mdadm]
A linux utility used to manage software RAID devices.
581
questions
5
votes
2
answers
513
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
26
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
20
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
25
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
28
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
171
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 ...
0
votes
0
answers
90
views
How can I resolve this error: "mdadm: Cannot open /dev/sd*: Device or resource busy" when adding a replacement drive to RAID5?
I have a RAID5 with 4 drives, looks like this:
[root@g1016637 ~]# mdadm -D /dev/md127
/dev/md127:
Version : 1.2
Creation Time : Wed Mar 8 16:35:25 2023
Raid Level : raid5
...
1
vote
0
answers
40
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 ...
1
vote
0
answers
45
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
43
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
17
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
125
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
143
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
163
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
89
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 ...