Questions tagged [mdadm]

A linux utility used to manage software RAID devices.

241 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
1 answer
1k 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 ...
TylerDurden's user avatar
1 vote
0 answers
1k 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 ...
Roberto Iglesias's user avatar
1 vote
0 answers
1k 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 ...
Prince220888's user avatar
1 vote
0 answers
2k 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 ...
JackFrost's user avatar
1 vote
0 answers
449 views

Openmediavault assemble raid6 with mdadm

I have a raid 6 with 1 hot spare. I the initial config was with 5 6TB drives then I added 2 more 6TB drives with the openmediavault web interface. Everything was fine after that. But the last time ...
Sanaf's user avatar
  • 148
1 vote
0 answers
381 views

mdadm RAID: Stuck at 0% Grow (Shrink) reshape due to bad geometry

I have a linux software Raid5 array (md1), containing 4 x 16TB + 2 x 8TB hard drives. 2 x 8TB hard drives were merged together (Raid0 array; md0), working as a (fifth) 16TB device. This is just for ...
Konstantin's user avatar
1 vote
1 answer
150 views

RAID 10 not showing full capacity

I am currently in the process of trying to setup a software raid using mdadm on my linux machine. My system has 4x 8TB (all are exact same model) which I would like to put into a RAID 10. However, ...
RononDex's user avatar
  • 111
1 vote
2 answers
2k views

mdadm - cant read superblock - can I zero the superblocks without erasing data and recreate a raid?

Today I had to fix a Server Fan by disassembling and rebuild it. After booting the server I had the problem that all disks where not at the same location they have been yesterday. So the system ...
G4nja Wizard's user avatar
1 vote
1 answer
461 views

How to delete an inactive RAID array - Centos 6

I have recently resized a logical volume group and a logical volume to fit into a RAID-0 configuration on Centos 6.10 system. Everything seems to be working fine. However, the disk utility shows two ...
Jack BeNimble's user avatar
1 vote
1 answer
6k views

mdadm : assemble raid5 created with missing disk

2 years ago i've created a raid5 array with 2 disks like this : mdadm --create /dev/md0 --level=5 --raid-devices=3 /dev/sdb1 /dev/sdc1 missing Now i've rebuilt my system with latest ubuntu server LTS,...
Alexandre Barth's user avatar
1 vote
0 answers
254 views

High avgqu-sz & utilisation on madadm RAID 0 in AWS EC2 I3.8x large instance

I have an AWS EC2 i3.8xlarge with 4x1.9TB ephemeral storage volumes tied in mdadm RAID-0 (Yes, RAID 0) with XFS file system mounted using noatime and inode64 options. I am running an IO intensive ...
SVH's user avatar
  • 11
1 vote
0 answers
1k views

From mdadm raid to LVM (raid or mirror) decisions and how to monitor

We are migrating some server from linux raids (0 and 1) to LVM with stripe or mirrors. At the moment our systems are mainly configured something like | /tmp - /home - /others |------------------------...
luison's user avatar
  • 282
1 vote
0 answers
191 views

Debian 10: mdadm raid superblocks "dissappear" after reboot?

I'm very confused by some issues I'm having with a raid setup with mdadm. I have a Debian 10 system, which I installed a KVM VM on, to use as a NAS server. I had problems with the raid superblocks ...
user3728501's user avatar
1 vote
0 answers
285 views

Possible solutions for Linux mdadm "raid5" over devices with different sizes?

I have server with 5 disks of 4TB, 2 with 8TB, and 1 10TB. I'd like to bundle them all together into Raid5/Raid6. As far as I understand one cannot do it nicely with disks of varying sizes. But I ...
eijeze's user avatar
  • 457
1 vote
2 answers
1k views

MDADM RAID-1 "not large enough to join array" on identical partition tables

I have two disks with identical partition tables (sudo sfdisk -d /dev/sda | sudo sfdisk /dev/sdb) that mdadm refuses to merge as a RAID-1 array. $ sudo mdadm --manage /dev/md0 --add /dev/sdb1 mdadm: /...
Suuuehgi's user avatar
  • 113
1 vote
0 answers
513 views

Virtual disks raid 10 array with ramdisk cache using bcache

I was trying to simulate a scenario with mdadm and bcache. I created 4 raw img files using qemu-img. I have created raid 10 using mdadm and created tmpfs on /mnt/ramdisk and created a raw ramdisk.img ...
Gediz GÜRSU's user avatar
1 vote
2 answers
273 views

Why Megaraid-sas and mdadm Raid 1+0 = Raid 10 Slow actual read speeds?

One of raid cards were giving multibit ecc ram module failure , thats why I am moving 60TB of data from one server to another ... Getting 60-100 Mb/s read speeds 3 Megaraid sas raid1 s 8+8+6 x 10TB ...
Gediz GÜRSU's user avatar
1 vote
0 answers
226 views

RAID 5 reshape halted after hardware failure, tried to add disk again but, now it is added as spare

I have a 4 disk RAID5 (at a system with centos7). Space was all used up, so decided to add another disk and grow the array. So purchased a SATA card, added it to the machine and added disk on it. Then ...
Sandesh Wanjari's user avatar
1 vote
0 answers
1k views

Linux MD RAID with btrfs stuck and consume 100 % CPU

The issue During last several weeks, I am experiencing annoying issue on my physical server with Linux software RAID 6 (md, mdadm) with btrfs file system on it. Once in several days (irregularly, as ...
Vojta Myslivec's user avatar
1 vote
1 answer
480 views

How to resolve a DegradedArray event when one drive has been permanently removed from RAID array?

When I installed my VPS some months ago (Ubuntu 18.04), the default RAID configuration was relying on 3 disks. I removed /dev/sdc from the array to create a new partition. RAID array is now as below: ...
Ken Addams's user avatar
1 vote
0 answers
905 views

How to Install CentOS8 on LVM on Software RAID

I'm trying to do something that should in my mind be simple - I've done this plenty of times on other distros, but can't make any headway. I'm trying to Install CentOS8 on an LVM partition on ...
davidgo's user avatar
  • 6,302
1 vote
0 answers
42 views

Single software RAID partition missing after replacing failing HDD

I have a raid-1 with 5 partitions (md0 - md4). Last night one of the HDDs failed (the faulty RAID partition was md4), I removed it, replaced it with a new one and now in the rescue system suddenly ...
Tek's user avatar
  • 111
1 vote
2 answers
266 views

Debian10 , RAID : did it changed since Debian9?

I'm installing a backup server with a Debian10 installed and running on its NVMe disks. It also has 4x6TB SATA hard drives, and I'm trying to set these up as a RAID0 array. I'm usually following the ...
BxlSofty's user avatar
  • 753
1 vote
0 answers
37 views

mdadm doesnt't work in secure mode

Im trying to mount /dev/sda1 in secure mode (cause of troubles with boot loader), but i cant do it without mdamd. root@rescue / # mdadm mdadm will not execute and completion _mdadm exists. So, how ...
user1964654's user avatar
1 vote
0 answers
157 views

How to configure RAID-5 for OS root (Ubuntu Server 18.04)

I have a fresh dedicated server I have provisioned running Ubuntu Server 18.04 and with 3x480GB SSDs (no hardware RAID controller though). The UI of the hosting provider will not allow the “/boot” or “...
nickz's user avatar
  • 11
1 vote
0 answers
377 views

How create RAID 1 on working Slackware 14.2?

I use Slackware 14.2 (with kernel 4.4.14-smp) on sda and I'm trying to create the RAID 1 with additional sdb. I'm using the VM VirtualBox. First, I have cleaned the sdb: dd if=/dev/zero of=/dev/sdb ...
infernalcucumber's user avatar
1 vote
0 answers
175 views

usb jbod enclosure, software raid1; after reboot, mdraid using wrong devices

I mirrored two disks in a USB enclosure on my Arch box, created a filesystem, mounted it, copied a bunch of data over. Everything was great. Then I waited until the md sync was done and rebooted... #...
John Cholewa's user avatar
1 vote
0 answers
177 views

Recover a linux raid array after running "mdadm --create"?

So I did something stupid and I'm wondering if I have any options. I lost my OS drive (centos 7) but was able to keep my 4x 3tb raid drives. So I reinstalled centos on another drive and tried to ...
Bryan's user avatar
  • 11
1 vote
0 answers
180 views

Replaced raid controller, raid config missing, server not booting

My raid controller went bust, and my hoster OVH replaced it. They only offer hardware support, so after replacing the controller they left the machine in Rescue mode. When I put it in normal HD boot ...
Mr.Boon's user avatar
  • 1,481
1 vote
0 answers
739 views

Broken RAID Array, no superblock detected

I run a CentOS system with 2x SSD in RAID1 and 4X SAS drives in RAID10. Linux is installed on the RAID1 array. This morning I noticed that my RAID10 array (md4) had gone missing, and that my RAID1 ...
Mr.Boon's user avatar
  • 1,481
1 vote
2 answers
244 views

Degraded soft raid1 not booting and showing raid0

I created a server setup with uefi boot and encrypted lvm partitions as you may can see here: root@debian:~# lsblk -o name,uuid,type,size NAME UUID ...
user543229's user avatar
1 vote
0 answers
1k views

Mdadm Create array on partitioned disks - failed to write metadata to disk

I'm trying to setup a raid array for a server. The array is going to be RAID 5, consisting of 4 disks, sdc, sdd, sde, sdf I need three partitions of specific sizes (2gb 200gb 700gb) and they need to ...
Sgt_Breakneck's user avatar
1 vote
0 answers
206 views

Dismounting MD RAID1 LUKS-encrypted volume with partitions

Fedora 29. I created a 5TB RAID1 volume using mdadm. I then encrypted the volume with cryptsetup luksFormat. I then created ext4 partitions on the encrypted volume. (I did it this way so I can add ...
RoUS's user avatar
  • 141
1 vote
0 answers
56 views

How can I find a broken disc?

I have a problem. I got 1 broken disc in RAID6. How can I find which one broke down? I've tried # cat /proc/mdstat <--- to check condition of raid. I want to know if this command mdadm –...
kernels's user avatar
  • 11
1 vote
0 answers
376 views

mdadm array does not assemble correctly

After a hard reboot, my raid10 array (made of 4 disk partitions) failed to reassemble. After many trials, i attempted the "nuclear" option of zeroing the superblocks and re-creating the array with the ...
orionbelt's user avatar
1 vote
0 answers
565 views

raid not spinning down - mdadm issuing syncs?

I have an issue with an archival server that is running a RAID 5. The server is being accessed only every couple of days, so I want these disks to spin down when there is no activity for a while. ...
Philipp Unterbrunner's user avatar
1 vote
1 answer
714 views

mdadm RAID configuration changes disk sdXX naming randomly on reboot

I have an issue with software raid i build over 2 expanders with disks loaded as JBOD. After every reboot of server, the naming of virtual drives changes and also the array numbers and logic are ...
J B's user avatar
  • 93
1 vote
0 answers
805 views

Debian software raid 50

I was given task to build large SW RAID 50 array on debian 9. Since now i was using mainly HW controllers to do so, which managed a lot of by them selfs. I have few question now I managed to build ...
J B's user avatar
  • 93
1 vote
0 answers
556 views

mdadm/ext4 chunk size on raid 1

Sorry for my noob question. I have a raid 1 system on mdadm in Debian, with the resulting partition formatted as ext4. Looking at the resulting share in Windows, it reports: Size: 618GB Size on disk:...
GoldieLocks's user avatar
1 vote
0 answers
332 views

mdadm raid5 disk disabled, state clean, smart passed

i'm running a raid5 array with 5 disks. One disk got disabled. dmesg : ... [Tue Dec 5 01:02:08 2017] md/raid:md0: read error NOT corrected!! (sector 15263288 on sdb1). [Tue Dec 5 01:02:50 2017] ...
t.joe's user avatar
  • 11
1 vote
0 answers
117 views

Avoiding same batch of drives being mirrored in a mdraid 10 Linux array

root@RS3617RPxs:~# cat /proc/mdstat Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [raidF1] md3 : active raid10 sde3[8] sdl3[7] sdk3[6] sdj3[5] sdi3[4] sdh3[3] sdg3[2] sdf3[...
ujjain's user avatar
  • 4,033
1 vote
0 answers
26 views

Is it safe to test and erase a drive after removing it from a RAID1 array with mdadm?

I have a faulty drive in my RAID1 array (SMART errors, data corruption). I have marked it as failed and removed it from the array with mdadm: # mdadm --manage /dev/md0 --fail /dev/sdb1 # mdadm --...
kontextify's user avatar
1 vote
0 answers
280 views

MDADM RAID expand underlying partitions but has subpartitions

I have a box that I configured to use MD RAID during the install process for the OS and boot drive. It's this weird /dev/md0p# structure that confuses me. The installer produced /dev/md0p1 (/boot), /...
Justin Edmands's user avatar
1 vote
0 answers
2k views

How to re-add removed drive to raid 1 mdadm array on another machine?

I recently was having trouble with a server randomly shutting down. I figured it was signs of disk failure, so I went about removing and swapping a drive from the raid 1 mdadm array. There were two ...
Hugo K's user avatar
  • 11
1 vote
0 answers
291 views

Which disks in an mdadm-managed RAID-10 near-layout array mirror each other? How to distribute it on multiple SATA controllers?

I'm running a small raid10 mdadm array that looks like follows: # cat /proc/mdstat Personalities : [raid10] md0 : active raid10 sdd[3] sdc[2] sda2[0] sdb2[1] 5859211264 blocks super 1.2 512K ...
Natanji's user avatar
  • 11
1 vote
0 answers
327 views

Debian 8.7 mdadm - Can't re-add spare disk to RAID1 after having removed it and reinstalling image

Trying to change two disks from raid1 to raid0 I removed one of them from the array after marking it as failed, and later as I couldn't remove the second I had the bad idea of reinstalling the linux ...
estornes's user avatar
  • 111
1 vote
0 answers
453 views

Linux software raid (mdadm) 3-disk RAID5 array, 2 devices "out of date"

I'm having issues trying to bring back a RAID5 3 disk array, where it seems 2x disks are out of date. root@mindstorm4: mdadm -E /dev/sd[bcd] /dev/sdb: Magic : a92b4efc Version : 1....
xconspirisist's user avatar
1 vote
0 answers
71 views

raid5 disk degraded partition detached

I'm having a problem with my raid5 disk. I already had disk failures and replaced disks without any problem, but this time I'm having a hard time fixing it. Here is the situation : I am running ...
Hedi's user avatar
  • 11
1 vote
1 answer
360 views

Safely restore disk labels and raid0 in Linux (CentOS 7) from external disk enclosure failure

The SAS cable connecting my external disk enclosure to the server was broken so I replaced it with a new one. However, after the re-connection all the disks came back with a different label, for ...
roymaztang's user avatar
1 vote
0 answers
213 views

Recovering Linux Soft Raid6 with mismatching superblocks?

My home lab server was half way through a RAID5 to RAID6 transform operation when one of my SAS cards decided to throw a fit in the middle of the night and cause 2 of the drives to be marked as ...
Seri Al-Najjar's user avatar