Questions tagged [mdadm]

A linux utility used to manage software RAID devices.

Filter by
Sorted by
Tagged with
2
votes
0answers
22 views

Mdadm Raid6 Re(assemble|build|create) from 6x disk images of original array

I have 6 1TB drives from several years ago. There was a problem with the Seagate drives's microcode, so I updated it. Unfortunately, this reset the UUID of two drives and the RAID6 array was broken....
2
votes
0answers
28 views

How to recover journal superblock on mdadm RAID5 array

Yesterday my raid5 array with 3 disks was suddenly unmounted. After examining it, it seemed it had become degraded and one of the disks had a much lower event count than the rest. I started running: ...
0
votes
0answers
13 views

How can I change the name of an unencrypted LUKS partition mounted as the root filesystem?

When I installed Linux, the block-device-path of my root LUKS device was /dev/md125 and the unencrypted partition was /dev/mapper/md125_crypt. I have since renamed the MD device to /dev/md0, and now I'...
0
votes
1answer
25 views

Added space to LVM, shows up in Size, but as Used

My root partition is XFS on LVM. Before I did anything, I had two physical disks which were combined using md as /dev/md126 into a PV. That PV was the only member of a VG centos_x5backup, and there ...
0
votes
1answer
45 views

Simple mdadm RAID 1 setup for booting degraded and reverting upgrades?

I have searched extensively for this answer and cannot find it... might anyone please know how to set up a linux software mdadm RAID 1 array, such that the computer will still be bootable and ...
0
votes
0answers
21 views

Investigating a failed drive in a raid array

Is there any way to determine what may have happened in the following scenario? We have a RAID5 that should have been originally built with 5 drives. As it stands, this is some of the state that I'm ...
1
vote
1answer
62 views

What are the md partitions under a mdadm array?

I'm setting up two RAID 1 arrays using mdadm, it seems to be working fine but when I do a check in lsblk I see the following: sda 8:0 0 5,5T 0 disk └─md127 ...
1
vote
1answer
41 views

mdadm create raid 5 stopped after ony few hours

I'm trying to setup a raid 5 for my Nextcloud but when I run the mdadm --create command it stops. Here is my configuration : Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, 732566646 sectors Units: ...
1
vote
0answers
53 views

Slow write speed on encrypted drive, while benchmark shows much higher encryption / raw disk write rates

I currently setup a NAS with Ubuntu 18.04 on a Netgear ReadyNAS 102device. The machine has a Armada Marvell 370/XP SoC with a hardware encryption accelerator called "CESA". The kernel drivers for CESA ...
0
votes
0answers
22 views

How to mount a RAID1 drive?

I have a 2TB drive from my two-bay Synology NAS that I want to access via Linux Mint. fdisk shows: root@HUB:/# fdisk -l Disk /dev/sda: 111.8 GiB, 120033041920 bytes, 234439535 sectors Units: ...
1
vote
1answer
50 views

Getting an error “appear to have very similar superblocks”. Ways to fix it?

So something strange is with my partitions. root@rescue ~ # mdadm -A --scan mdadm: WARNING /dev/sdb1 and /dev/sdb appear to have very similar superblocks. If they are really different, please --...
1
vote
0answers
65 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 ...
0
votes
0answers
10 views

Soft Raid5 failed, bad sectors

I have a Soft Raid 5 managed with mdadm on a ubuntu 16.04.02. 3 disks WD Red 3TB, for data only (system is on ssd). sdb, sdc and sdd Last week, after reboot, the system did not startup, after a while ...
0
votes
0answers
38 views

Fix mdadm RAID1 inconsistencies using btrfs/zfs checksums

I prefer mdadm RAID1 vs btrfs RAID1 because: With btrfs, all read requests from the same PID go to the same device bcache coverage is doubled using a single mdadm RAID1 device vs btrfs with 2 ...
3
votes
1answer
54 views

RAID5 repair froze on NAS, trying to restore with mdadm now

I am running a Zyxxel NAS540 with 4x4TB Hard Drives. A few days ago the NAS started beeping and I saw that the RAID is in a degraded state. Since one of the drives had really bad SMART values, I shut ...
0
votes
1answer
46 views

Can't create filesystem on a freshly made raid5 using mdadm

I connected a 4-bay enclosure with 4 new 8TB disks to my rPi. This disks appeared in lsblk as sda to sdd. Following this tutorial I created the array doing mdadm -C /dev/md0 --level=raid5 --raid-...
0
votes
1answer
69 views

mdadm RAID1 array - is it required to partition?

I've been using an mdadm RAID1 array with 2 2TB disks for a few years without issues. Recently I needed to upgrade it to 4TB so I bought 2 new disks of 4TB and plan to replace one, wait for the ...
0
votes
0answers
25 views

Moving RAID5 to new system

I have a RAID5 with 3 drives currently running on a 14.04 install. Everything is ok, but the system is a bit underpowered. Therefore I have gathered together some new hardware and installed 18.04 on ...
0
votes
0answers
32 views

RAID device won't mount in OpenWRT

I'm trying to get my RAID 1 device to work after I upgraded my router's OS (based on OpenWRT). The RAID device is listed as /dev/md0: # lsblk -o NAME,SIZE,MOUNTPOINT,STATE,FSTYPE,MODEL,SERIAL,UUID,...
1
vote
1answer
81 views

can not shrink raid1 size with mdadm

I want to reduce a soft raid1 disk size, but the following cmd shows an error, root@GalensSynology:~# mdadm --grow /dev/md2 --size=83886080 mdadm: Can't read enough disk from md2 mdadm: component ...
1
vote
0answers
63 views

Recreating a RAID4 / RAID0 array

At first, there was a RAID0 array, to which I've added a new disk by issuing mdadm --add but when I've done that, the drive started to fail because of the power issues and the array has not started ...
1
vote
1answer
95 views

Linux md config changes after reboot

My Ubuntu RAID configuration changes during a reboot and I don't understand why. Problem 1: /dev/md/host:name device is not created at boot. I don't understand how, when, or why the descriptive names ...
0
votes
0answers
27 views

Error with Vagrant creating 2 HDDs and installing mdadm for the later configuration of a RAID1

WHAT I WANT TO DO Raid1 configuration on debian buster, with 2 HDDs of 1GB. Also, I want to automatically install mdadm so then I can access the machine and configure the RAID1. IMPORTANT The RAID1 ...
1
vote
1answer
27 views

mdadm software raid question

Hoping someone can help! Never used software raid before and I've noticed the 2 disk RAID 1 is showing as degraded [U_] : # cat /proc/mdstat Personalities : [raid1] md1 : active raid1 sda3[0] ...
0
votes
0answers
17 views

How can I speed up mdadm integrity check stuck at USB 2.0 speeds?

I have an array (/dev/md2) that is constructed with mdadm as a RAID5. The drives are connected in an external enclosure over USB 3.0 and when tested with hdparm show a read speed of 225MB/s. However,...
0
votes
1answer
112 views

How effective is a Linux mdadm RAID 1 against silent data corruption?

Assuming I've stored an image file on a regular hard drive. Years later, I may not be able to fully display this image file because of a hardware error. Would a Linux RAID 1 disk array created with ...
0
votes
0answers
46 views

mdadm RAID5 to RAID6 migration thrown exceptions, access to data lost

After a dozen of hours waiting for my array reshape to move on I think it's finally the right time to ask you for some advice. Recently I bought 4th WD Red 4TB drive to migrate my 3-disk RAID5 setup ...
0
votes
0answers
46 views

mdadm RAID arrays missing devices

I am running a home server with three RAID1 arrays, each with two drives: md0, md1 and md127. After an accidental reboot, md0 and md1 are running on one device only, and I cannot add back the ...
0
votes
1answer
32 views

RAID1 recovery process skipping bad blocks

I have a RAID1 array with one sligtly damaged disk /dev/sdb. I put a fresh hard disk /dev/sda into this array in order to mirror sdb (then I’m gonna replace sdb with a fresh HDD). # cat /proc/mdstat ...
0
votes
1answer
101 views

MDADM creates additional block devices

I noticed a strange issue when creating RAID array with mdadm. As far as I see, it creates additional devices of md type. According to the kernel.org documentation, the md device type is Metadisk (...
5
votes
1answer
591 views

MD device name changing to include “HOSTNAME:” after first reboot. How do I get a consistent name?

On Ubuntu 18.04 I create a RAID 1 array like this: mdadm --create /dev/md/myarray --level=1 --run --raid-devices=2 /dev/sdc /dev/sdd I then add the output of mdadm --detail --scan /dev/md/myarray to ...
2
votes
1answer
42 views

How to bind hard disks to /dev/sd* names statically?

Maybe it's an XY Problem, so here's a full situation: We have lots of servers now which will be used as storage/databases. All of them have similar setup: SSD drive for OS (Ubuntu 18.04.2 LTS) and 6 ...
1
vote
1answer
168 views

How to check mdadm RAID5 integrity after power failure/random reboot

So I'm currently building an mdadm RAID5 array attached to my home server. The hardware is an Odroid N2 SBC with a Mediasonic Probox 4 bay enclosure attached. The array is currently rebuilding and ...
2
votes
2answers
248 views

Drive failure(s) in linux mdadm raid array. Help!

It looks like my system is suffering from some sort of catastrophic failure, and I'm panicking at the moment, not sure what to do. I had a 3 drive raid 10 array. I noticed this morning that I was ...
2
votes
1answer
269 views

mdadm RAID5 with bad sectors and bad blocks

I have a 4 disk RAID5 setup with mdadm in Ubuntu 16.04. sdb : good sdc : 8 bad sectors according to SMART, 8 pending, 4 reported errors sdd : bad blocks present according to mdadm --examine sde : ...
2
votes
0answers
56 views

Why do my software RAID1 superblocks keep getting corrupted and how can I prevent this?

How might I be repeatedly corrupting my superblocks on RAID1 I have had two occasions in the past six months of RAID1 root arrays becoming unusable because of problems with the superblock. ...
2
votes
1answer
70 views

LVM Shrink to remove a device

I have Centos 7 I have a 7 drive RAID6 Array created using mdadm. (This is composed on WD 4TB Red drives) I have setup the RAID array as a LVM PV - all this has been working well for ages. I have ...
3
votes
2answers
117 views

Corrupted file system after adding a disk to mdadm raid 6

I have a mdadm raid 6 file system, which only has 3 disks out of 4 running. I have 4x2tb disks, whenever I add the 4th disk (I tried all week) and do a ls it gives me some file system errors: $ ll /...
2
votes
1answer
169 views

mdadm external bitmap not used

I've place the bitmap on an external EXT4 drive (1xHDD) but I would expect the file to be written too whenever data is changed on my RAID10 array, right? I even did checksum of the bitmap file, and it'...
1
vote
2answers
60 views

Can I Increase raid 1 capacity by changing to raid 5?

My initial raid setup was 2x2TB RAID 1 using mdadm. I have bought a 3rd 2TB drive in the hopes to upgrade the RAID's total capacity to 4 TB using mdadm. I have already run the following two ...
3
votes
0answers
57 views

Hybrid RAID (SDD+HDD) gives unexpected results

I am doing some experiments with hybrid RAID in Linux. My test consists of the following: 2x256GB SSD in RAID 0 (/dev/md1) 2x256GB HDD in RAID 0 (/dev/md2) Then I made md1 and md2 into a RAID 1 (/...
4
votes
1answer
193 views

Shrink MDADM Raid 5 containing LVM

The plan: I've been growing a Raid5 array in a personal server for some years, and the time has come to move to something more suited to this application. I've accumulated 6x 8tb drives containing ...
3
votes
1answer
789 views

How to check/fix nvme health?

I'm running debian stable with a 2 x nvme Raid 1. Here is the hardware/hoster it's running on https://www.hetzner.com/dedicated-rootserver/ex62-nvme?country=us Almost every second day mdadm monitoring ...
0
votes
1answer
34 views

RAID 5 crash… trying to save what I can [closed]

I have a QNAP server with 8 disks. I have 2 backup/extra disks that are not in use. (I had the money an knew eventually the running ones would need replaced) The full array was across the 8 disks @6TB ...
5
votes
0answers
782 views

State of LVM raid compared to mdadm

LVM and mdadm / dmraid are both offering software RAID functionality on Linux. This is pretty much a follow-up post to this question from 2014. Back then, @derobert recommends to prefer mdadm over LVM ...
1
vote
0answers
67 views

Disk utilization on mdadm raid 5 is 100% even though none of the member disks is at 100%

I am currently confused about the disk utilisation of one of my machines. The setup: I have a machine containing 4 2TB HDDs. For those HDDs I used mdadm to configure a RAID 5 (called md2) On MD2, I ...
0
votes
0answers
220 views

MDADM can't automount existing RAID1 array

I recently reformatted my system and cannot get my RAID 1 array to load on boot. Would appreciate some help figuring out why this is. Using ubuntu 14 with MDADM. Its a very simple RAID1 array ...
-1
votes
1answer
225 views

mdadm RAID 1 partitions on sda1 and sdb1

Quick background: I have a RAID 1 array, created using mdadm. Both drives are hard-drives. The RAID array is called md127. There are 3 partitions in this RAID array: 20G for /var, 20G for /opt and 891....
2
votes
0answers
161 views

Reducing disks from a RAID5 mdadm with LVM

Checking a system, I found a server with 12 4TB drives in Raid5, with LVM on top. Single VG, single PV, and a few LGs that wouldn't need more than 6TB of space (currently only 4TB). Read speed is no ...
2
votes
1answer
241 views

Why isn't a disconnected and then reconnected mdadm RAID1 disk automatically re-attached and re-sync?

I'm doing the following test with Debian 9 under Hyper-V: I have two (virtual) disks, each with one partition, and /dev/md0 defined as RAID1 of /dev/sda1 and /dev/sdb1. The root EXT4 file system ...

1 2 3 4 5 8