Skip to main content

Questions tagged [mdadm]

A linux utility used to manage software RAID devices.

Filter by
Sorted by
Tagged with
1 vote
1 answer
16 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 ...
Mister Mystère's user avatar
1 vote
2 answers
18 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 ...
1337ingDisorder's user avatar
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 ...
armybill's user avatar
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 ...
Josué Suptitz's user avatar
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 ...
BiBzz's user avatar
  • 43
0 votes
0 answers
67 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 ...
Rail24's user avatar
  • 141
1 vote
0 answers
39 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 ...
Daniele Testa's user avatar
1 vote
0 answers
43 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 ...
raines's user avatar
  • 314
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 ...
csiko's user avatar
  • 1
0 votes
1 answer
16 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 ...
Gabriel Rolland's user avatar
3 votes
1 answer
122 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 ...
Gabe Spound's user avatar
2 votes
1 answer
142 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 ...
Vince's user avatar
  • 41
0 votes
0 answers
152 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 ...
Marco's user avatar
  • 893
0 votes
0 answers
87 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 ...
mdhuke's user avatar
  • 1
0 votes
0 answers
28 views

Need help rebuilding synology system outside of synology in ubuntu

I've got a synology 12 bay system (8 6TB drives and a 9th hotswap) that died and it didn't feel like it was worth it to rebuy synology, so I built out a big tower with all the drives, but one of the ...
mchammer1974's user avatar
0 votes
0 answers
51 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 ...
Xyhfna's user avatar
  • 1
0 votes
0 answers
31 views

Mounted point for a RAID drive not available when logging in via SSH

In my machine, I mounted a mdadm RAID array using sudo mount /dev/md0 /mnt/raid. Mounting is successful and I able to access the drive. RAID assembly is also successful and has a clean state. I used ...
ricardo3889's user avatar
1 vote
1 answer
70 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....
schtocker's user avatar
0 votes
0 answers
78 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 ...
rwfitzy's user avatar
  • 101
2 votes
1 answer
243 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 ...
stauntonjr's user avatar
2 votes
2 answers
370 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:...
elbarna's user avatar
  • 12.8k
1 vote
1 answer
71 views

Debian, how to change md name using initramfs script and not livecd?

Is possible to change an md name while the md is still active? AFAIK is not possible mdadm -A --update=name --name=ibmlinux-root /dev/md126 ls /dev/md/126_0 /dev/md/126_0 ls /dev/md/ibmlinux-root ...
elbarna's user avatar
  • 12.8k
0 votes
0 answers
80 views

Updating NAS distro from Debian 9 to 12 while preserving software raid

I need to upgrade my pc used as nas from debian 9 to 12, but I would like to do a fresh installation rather than an upgrade. My machine have: 1 ssd for boot (sda) 2 hd raid 1 (sdb + sdc) 2 hd raid 1 (...
user3450548's user avatar
  • 2,974
0 votes
0 answers
47 views

Raid0+1 - Unexpected results with dmraid

I have 4x 1.8 TB HDD ( 2 TB ) in an existing Raid0 array. /dev/md127 /dev/md127: Version : 1.2 Creation Time : Fri Mar 31 21:34:58 2017 Raid Level : raid0 Array Size : ...
Bob R's user avatar
  • 303
0 votes
0 answers
61 views

Recover data from old working RAID 1 disk

I am running a system with Debian 12. /root/ is on a RAID1 array with mdadm with 2 mirrored SSD (let's call them disks A and B). All disks are perfectly functioning. I wanted to replace the two A and ...
giovi321's user avatar
  • 907
0 votes
1 answer
126 views

Best way to swap out two drives in Linux software RAID6 array

I've been running an 8x2TB RAID 6 mdadm array on Debian for several years. Last array check found no errors, but SMART data for a couple of the drives is indicating some bad sectors. I'd like to swap ...
Swechsler's user avatar
  • 147
0 votes
0 answers
31 views

Did my array go away or is the partion not mounting correctly after reboot

I had created a raid-1 array for two drives (sde and sdf) using the normal mdadm process and had created it under md1 and mounted it to /mnt/storage. After a reboot md1 no longer exists. My /mnt/...
Adam's user avatar
  • 1
3 votes
1 answer
329 views

Using mdadm to create RAID1 mirror warns "Fail create" but completes successfully

When I create an mdadm RAID 1 array the command completes successfully but I get a warning. System characteristics (Debian/Raspbian "bullseye" on a Pi 3): uname -a Linux pi 4.9.35-v7+ #1014 ...
Chris Davies's user avatar
0 votes
1 answer
61 views

Unable to mount Full "md3" System Partition on CentOS Server, preventing Boot

I'm facing an issue with my server running CentOS. The system partition "md3" (raid1) is full due to a backup script error that failed to delete old data. As a result, my CentOS system has ...
node's user avatar
  • 1
0 votes
0 answers
25 views

mdraid in weird state after failed rebuild

So my NAS (mdraid level5) mainboard died and I built a new system - there I reassembled the raid and the rebuild started: md0 : active raid5 sde4[3] sdc4[0] sdd4[2] sdb4[4] 8634123072 blocks level 5,...
Funky Luke's user avatar
1 vote
1 answer
66 views

Linux RAID1 replace disks with higher capacity

I have a server which has two 256GB SSDs. They were partitioned as following: /dev/sda1 100GB linux-raid-autodetect /dev/sda2 100GB linux-raid-autodetect /dev/sda3 23,6GB linux-raid-autodetect /dev/...
DF8OE's user avatar
  • 33
0 votes
1 answer
68 views

Is it safe to use device name such as sda to create md and ZFS RAID array?

In md we can scan or assemble an array using UUID: mdadm --assemble "/dev/md/raid5" --uuid "b9a09187:a1ac838f:b4e90395:d6293c19" And in ZFS, we have a service for that purpose: rc-...
Livy's user avatar
  • 455
0 votes
0 answers
33 views

MDADM Configuration

I have two RAID-1 arrays using mdadm. The first Sunday of each month the arrays start running a check (as can be seen in /proc/mdstat). They also seem to stop this check if it has run for some ...
A. Que's user avatar
  • 643
0 votes
0 answers
51 views

replace an SSD disk in RAID5 with bigger one

Some years ago I created a RAID5 array with mdadm. It consists of 3 1TB SSD (Samsung SSD 860). Here is how I created it: mdadm -E /dev/sd[a-c] fdisk /dev/sda fdisk /dev/sdb fdisk /dev/sdc mdadm -C /...
Marco's user avatar
  • 893
0 votes
0 answers
75 views

Unable to mount Raid 5+0 EXT4 partition

My server has a raid 5+0 configuration which is a raid 0 device made up of 2 x raid 5 devices. md1 is made up of md10 and md11. md1 : active raid0 md10[0] md11[1] 15627286528 blocks super 1.2 ...
Gareth Hastings's user avatar
0 votes
0 answers
105 views

How to move a mdadm software raid-5 attached to a 5 bay NAS enclosure from one PC to another?

I have a 40TB (32TB available, RAID-5) 5-bay Yottamaster NAS enclosure that I was able to setup on one of my work linux stations. The NAS enclosure uses a USB type C to transfer data (up to 10Gbps). ...
Karl Herbine's user avatar
0 votes
0 answers
54 views

RAID array setup - same drives in different arrays

I'm trying to finish configuring and mounting a RAID array on a machine I've become responsible for. I feel the previous owner tried and failed to set up the array, but I don't know how to be sure. My ...
Vanilla_Brys's user avatar
0 votes
1 answer
293 views

Recover Synology JBOD disk in Ubuntu VM

I know there are already many topics about this but none of these work for me because I have many different problems. I got a 18TB hard drive that I was running in a Synology. Now I want to use it in ...
CptDayDreamer's user avatar
1 vote
1 answer
76 views

Recovering data from old RAID 1 NAS drive

I'm trying to recover data from an old NAS drive that failed. I'm not sure of the cause of failure, but the files are relatively intact on the drive, and I've been able to pull some stuff off in the ...
grenademoose's user avatar
2 votes
0 answers
177 views

specifying linux kernel md not checking v1.2 superblock

I am trying to boot a Linux software raid array without an initramfs. I am passing md=0,/dev/nvme0n1p1,/dev/nvme1n1p1 root=/dev/md0 to the kernel. I have also tried md=d0,.. to no avail. Examining the ...
tim's user avatar
  • 121
1 vote
1 answer
213 views

How to extend madam RAID1 with LUKS and ext4 filesystem on Debian 10

I am trying to expand an existing RAID1 array with an ext4 filesystem on a LUKS volume on Debian GNU/Linux 10 (buster). This is my disk layout from lsblk: NAME MAJ:MIN RM SIZE RO TYPE ...
Ellen Trendy's user avatar
1 vote
1 answer
302 views

RAID6 unable to mount EXT4-fs: bad geometry: block count exceeds size of device

On my server, I had an SSD as the boot drive with 11 6TB HDDs in a RAID6 setup as additional storage. However, after running into some issues with the motherboard, I switched the motherboard to one ...
jameszp's user avatar
  • 53
1 vote
1 answer
120 views

mdadm super slow

had some old 2.5" SATA 500gig drives lying around and decided to turn them into a raid1 for nextcloud. /dev/sdd1: Timing cached reads: 2476 MB in 1.99 seconds = 1241.37 MB/sec Timing ...
widarddd's user avatar
0 votes
1 answer
1k views

How should the EFI partition be handled in a software raid?

I am trying to install Arch onto a computer, I have two storage devices. I partitioned the drives identically as I would if I were installing to one storage device on efi dekstop. sda sda1 (boot ...
Ambre's user avatar
  • 5
0 votes
1 answer
108 views

Is it possible to expand a RAID 0+1 created with mdadm?

I have this raid, it is a raid01 (a mirror of two stripes). This is the original situation: cat /proc/mdstat Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] ...
elbarna's user avatar
  • 12.8k
2 votes
0 answers
163 views

Recover data from deleted (still intact) raid 5

So through a shell script gone sideways I accidentally deleted my mdadm raid5 (3 HDDs) and the partitions from the disks (so disks still connected according to lsblk as {sdb|sdc|sdd}). I have not ...
50x's user avatar
  • 21
0 votes
0 answers
109 views

Will sfdisk partition copy touch RAID data

A recent Ubuntu server reboot caused two of the SOFT RAID5 disk (/dev/sdd and /dev/sdf) losing its partition table (/dev/sdd1 and /dev/sdf1), I have tried to use R-Studio that can directly connect to ...
Twinkiestar's user avatar
1 vote
1 answer
372 views

mdadm configuration partitions vs by uuids vs automatic

I'm trying to setup a RAID6 on my Ubuntu machine with mdadm. I read a few tutorials and all of them use partition names directly like: $ sudo mdadm \ --create /dev/md0 \ --level=6 --raid-...
Marco's user avatar
  • 158
1 vote
2 answers
416 views

Recover mdadm raid1 built with full disks (overwritten partition data)

While setting up my new PC I also setup a new RAID 1 with 2 drives with LUKS on top. After copying all the data to it I made sure everything was usable and afterwards shredded the old drive. But now I ...
felix jochems's user avatar
2 votes
2 answers
523 views

Multiple mdadm raid rebuild in parallel

I wonder is there any procedure to initiate concurrent rebuild of two or more separate arrays? while one is rebuilding, another stays in status: md2 : active raid10 sdf5[4] sdd5[6] sdc5[5] sda5[7] ...
Arunas Bart's user avatar

1
2 3 4 5
12