Questions tagged [mdadm]
A linux utility used to manage software RAID devices.
867
questions
0
votes
1
answer
493
views
LVM "not starting" after upgrading physical disks in underlying RAID6 mdadm array
Before:
separate SSD boot drive
RAID6 4 x 2TB -> /dev/md0
LVM PV /dev/md0
LVM VG built on the PV above
LVM 2 data partitions formed in the VG
mounted at /home and /mnt/data
I upgraded from ...
0
votes
1
answer
898
views
How to convert mdadm raid1 to single driver and keep the data?
I have a raid1 created by mdadm in the root partition on /dev/nvme1n1p2 and /dev/nvme0n1p2, efi boot partition is on /dev/nvme1n1p1. Then I followed some commands to remove one of the disks and ...
0
votes
0
answers
85
views
Added wrong drive to raid1 via mdadm, partition recovery
My raid is functioning fine, but I accidentally added a USB drive to what is a sata RAID1 with mdadm.
I noticed this pretty quickly and removed the drive from raid, it was synced about half a percent. ...
1
vote
1
answer
56
views
mdadm using double disk space
My mdadm raid1 2 disks array seems to work good.
It is a 2 500GB array, shared over samba as proxmox bkup disk serving 2 nodes.
By the way, even if the size of the sum of the files is actually about ...
1
vote
1
answer
332
views
DegradedArray event after removing raid with mdadm
My new server (ubuntu22) from hetzner has 2 ssds and and an additional big hdd that is intended to be used for back-ups only. Initially 3 raids were preinstalled, and the biggest part of an hdd was ...
1
vote
3
answers
766
views
raid 0 made of drives of unequal sizes with mdadm
I want to create a raid0 array with mdadm from 3 physical drives: 8TB and 8TB and 16TB.
Is it okay to create 2 8TB partitions on the 16TB drive and simply create the raid0 array from 4 8TB partitions ...
1
vote
1
answer
1k
views
Creating a RAID 1 via mdadm ends with completely filled one of drives after sync
I have a server with 2x 1TB NVMe drives and I want them to work in software RAID 1 (mdadm) as a system drive.
After creating and waiting for sync of the array I'm ending with one of the drives in ...
0
votes
0
answers
22
views
Added drives to raid array, and changed it from 5 to 6 but it looks like I forgot to add a filesystem to them
mdadm --detail output
Version : 1.2 Creation Time : Tue Jul 21 15:52:43 2020 Raid Level : raid6 Array Size : 29298912768 (27941.62 GiB 30002.09 GB) Used Dev Size : 9766304256 (9313.87 GiB 10000.70 GB)...
3
votes
1
answer
167
views
Migrating on-premise server with RAID1 to EC2
I have an on-premise physical server running Debian 10 that I would like to migrate to AWS EC2. The server storage consists of two 1TB HDD drives on /dev/sda and /dev/sdb that have been set up as a ...
0
votes
0
answers
416
views
How to solve a system freeze when mounting a mdadm raid-5 array?
I recently set up a raid-5 array with 4 disks on Ubuntu 22.04. When I try to mount the array using
sudo mount /dev/md0 /mnt/md0
the entire system freezes. I can see the desktop but the mouse doesn't ...
0
votes
2
answers
131
views
System auto restart during the FIO stress test on a RAID0 array(6x SSDs) created by mdadm under Yocto OS
I met a problem when executing FIO stress test on a RAID0 which built from 6x SSDs thru mdadm under Yocto OS, below is the information:
6x PCIe NVMe SSD are the same vendor and model which is with 1....
14
votes
1
answer
3k
views
When adding a new disk to RAID 1, why does it sync unused space?
I recently set up RAID 1 on Linux with mdadm. When adding a new HDD to RAID 1, data started to sync between my drives which is expected. I didn't expect that it started syncing the entire drive, ...
0
votes
1
answer
184
views
Why do md array rebuilds start?
I've recently made mdadm report about the events and yesterday I received a number of rebuild events. Why was the rebuild started? I don't see anything relevant in the journal. Also I'm concerned ...
0
votes
1
answer
1k
views
mdadm raid1 irregular degraded without reason
My raid1 went to degrade state from time to time. Then my application crashes, because the raid is in read-only mode. After a reboot the raid is working fine again. Now I want to find out whats the ...
0
votes
0
answers
932
views
How to recover file system (ext4) on raid5?
I have an ext4 file system on a raid5 array, /dev/md0 built from mdadm.
I found it wasn't mounted after I reboot once. And I ran a fcsk on it but get a superblock error.
So I was going to run mke2fs -...
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 ...
2
votes
1
answer
1k
views
Kernel reports writeback errors on a RAID array
I have a RAID-6 array md0 for which I have recently started getting bursts of writeback errors in kernel log, like this:
[Thu Jun 9 11:56:49 2022] md0: writeback error on inode 1412769769, offset ...
15
votes
2
answers
3k
views
Unable to mount an XFS filesystem from Linux RAID6 array ("Log inconsistent")
First time poster - my apologies if I don't get the etiquette correct.
I have a ~200TB RAID6 array with 30 disks and I'm unable to mount it - I just get the message:
mount /dev/md125 /export/models
...
2
votes
1
answer
3k
views
Weekly RAID check affecting my system - any way to mitigate?
I recently got my webhost (Hetzner) to add a paid of 16TB SATA drives to my webserver. Currently using 2.5TB of them. They're RAID 1 mirrored.
I also have two 4TB nVME drives with 700GB currently on ...
0
votes
0
answers
250
views
centos7.9 mdadm raid0's performance which is only 50% of centos8 mdadm raid0
I use the same PC and same NVMe SSDs do the raid performance test on different OS. The steps are as follows:
mdadm -C -v /dev/md0 -l0 -n4 /dev/nvme[0123]n1
mkfs.xfs /dev/md0
mount -o discard /dev/md0 ...
0
votes
1
answer
101
views
What does `mdadm --manage /dev/md1` do? Do I need to "undo" it?
I ran this hoping to find out a bit about my array (I now know I should have used --detail). But I'm not clear what the --manage option does. It gave no output, and just put me back to the bash ...
0
votes
0
answers
569
views
mdstat mismatch cnt unsynchronized blocks
Both of our servers suffer from
mdstat mismatch cnt unsynchronized blocks
Every start of the month we got this error and we have to repair the raid using
echo 'repair' >/sys/block/<md id>/md/...
0
votes
0
answers
155
views
How to move a Linux software RAID setup from 1 server to another (Debian)
Currently, I have three USB drives running as a RAID-5 set on a Debian-9 server. All is well.
I would like to safely move them to a different server, running Debian-10.
The host name of the current ...
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 ...
0
votes
1
answer
205
views
Attempting to create an RAID array in Ubuntu server 20.10
I'm attempting to create a RAID 0 RAID array on Ubuntu server 21.10, but I keep getting the following error:
mdadm: An option must be given to set the mode before a second device
Here is the syntax I ...
0
votes
1
answer
188
views
FAILED md RAID10, confusing output
I'm testing a RAID10 array here with mdadm. I wanted to see how many failed devices it could tolerate, rebuild times, etc. At one point I had it doing a resync on 5 or 6 devices, then I rebooted it, ...
4
votes
1
answer
1k
views
Does Linux md-raid store backup metadata anywhere on the disk?
I know that with ext2/3/4 and other filesystems, copies of the superblock are stored throughout the disk in case the primary superblock is corrupted (https://ext4.wiki.kernel.org/index.php/...
0
votes
1
answer
1k
views
How do I resize the filesystem on a RAID array?
I've recently added a 5th drive to my software raid array -- and mdadm has accepted it:
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
nvme0n1 259:0 0 894.3G 0 disk
├─...
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 ...
3
votes
3
answers
5k
views
How to increase speed of RAID 5 with mdadm + luks + lvm
I think I am kinda lost with my current server setup.
It is an HP Proliant dl160 gen 6, and I put 4 spinning disks with a setup that has mdmadm + luks + lvm and on top of it btrfs (maybe I went too ...
3
votes
1
answer
1k
views
Properly Boot a Software-Based RAID1 with a Missing or Improperly Failed Drive
tl;dr. Is there a way to properly boot a software-based RAID1 with a missing or failed drive (that wasn't failed by the user first)?
To be clear, booting a software-based RAID1 without a hard drive ...
0
votes
1
answer
500
views
RAID1 Recovery after Degradation
Below is the output from lsblk, mdadm and /proc/mdstat for my 2 disk Raid1 array
anand@ironman:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 ...
0
votes
0
answers
168
views
Is it safe to use dmcrypt on top of software raid?
I'm designing a machine, to serve as a NAS. My interest is hobby-level.
I would use mdadm to software raid a couple of same-size hdds. At first I'd use raid1, but in the future I'd add another disk ...
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 ...
1
vote
1
answer
696
views
Have to manually build RAID array every boot and cannot add third drive - MDADM
I have a RAID1 array that I've had to manually rebuild every time the system boots for a long time. Never had time to figure out why. This is the command I've been using to rebuild it every boot:
sudo ...
0
votes
1
answer
156
views
Replaced all mdadm RAID1 drives with new, larger drives. Now can not boot from the RAID1
I have simply replaced all of my mdadm array hard drives with some larger drives. I then went to reboot the system and upon booting it comes up with a grub error. I'm not sure what is needed to be ...
3
votes
1
answer
2k
views
How to create LVM RAID 1 with 4 disks of 2 different sizes?
I have a system with
2 x 1TB (NVMe SSDs)
2 x 2TB (SATA SSDs)
disks and would like to create a RAID 1 system using all available disks (so I have a 3TB RAID1 system at the end). Unfortunately, most ...
1
vote
2
answers
358
views
Rebuild RAID5 with uncorrectable sectors on multiple disks
My software RAID5 (mdadm) system consists of five disks. Recently, I get I/O errors when reading certain files. Most of the other files are still readable.
At first, I was planning to find out which ...
0
votes
1
answer
33
views
Separating /boot from the rest of the System
I have a theoretical system configuration question; If I build my system on a software RAID1 but put /boot on a USB.. could there be problems if the RAID becomes dirty? The setup would be as follows:
...
1
vote
1
answer
1k
views
How can I migrate soft RAID array made by mdadm to new server and new OS?
I have a RAID array which level is raid0 and made by mdadm, in my old server. The member of this array is 6 NVMe SSD, and I create this array with below command:
sudo mdadm -C /dev/md0 -l 0 -n 6 /dev/...
14
votes
4
answers
2k
views
Why is mdadm unable to deal with an "almost failed" disk?
Multiple times in my career now I've come across mdadm RAID sets (RAID1+0, 5, 6 etc) in various environments (e.g. CentOS/Debian boxes, Synology/QNAP NASes) which appear to be simply unable to handle ...
0
votes
0
answers
62
views
RAID10 software raid converted as RAID0
On one of the server, The RAID10 software raid volume had became RAID0 after one the disks in the RAID10 disk group failed. Also the converted RAID0 volume has become inactive.
How can we recover the ...
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, ...
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 ...
4
votes
1
answer
1k
views
Linux mdraid resync speed on 36 drive array
I have some performance issue with mdraid. I have one 18x10TB soft raid6 array that is resyncing at ~70MB/s:
kernel 5.8.13-1.el8
/dev/md0:
Version : 1.2
Creation Time : Mon Oct 5 15:...
1
vote
1
answer
462
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 ...
2
votes
1
answer
197
views
mdadm partitions gone after reboot
I had a RAID 6 setup in Cockpit UI with multiple partitions. There was one partition in particular that I wanted to extend from 10TB to 11TB using available space and attempted on /dev/md127p6 using &...
0
votes
1
answer
91
views
Recover Linux RAID1 - FAT32 but shows ext2, can't assemble, but shows backup superblocks...I am STUCK
I have 2 physical disks in linux RAID1, I am not sure what happened, I think someone who should not have been in the system partitioned the md0 by mistake while the system was running while trying to ...
0
votes
2
answers
2k
views
Mount a HDD from a RAID to recover some data
I'm struggling to mount a HDD from a Synology DS214 RAID1 on my computer to backup some data from it.
I can't mount directly because this HDD come from a raid
mount /dev/sda1 /mnt
mount: unknown ...
2
votes
1
answer
2k
views
Rebuilding an inactive RAID5
I have a 7 x 14TB RAID5 in my workstation with Centos 7. Last week one of the drives was marked as faulty by SMART (/dev/sde). I used mdadm to mark this drive as faulty and to remove it from the array ...