Questions tagged [mdadm]
A linux utility used to manage software RAID devices.
604 questions
3
votes
2
answers
3k
views
mdcheck_start Service Fails to Start
I've got a brand new Ubuntu 20.04 machine built out which is using a mdadm RAID5 configuration (3x 10TB). The system is throwing an error every time I log in. I can see from systemctl that the ...
0
votes
1
answer
3k
views
mdadm raid resync
i have a raspberry pi with two USB thumb drives that are in a mirror raid array and store my data that I share using Nextcloud. Now randomly, I caught today that one USB drive LED was flashing without ...
0
votes
1
answer
2k
views
MDADM with Encryption without losing files
Current setup is two 4TB hard drives in a RAID 1 setup using MDADM in Debian.
Would like to encrypt the MD0 mount with whatever encryption is good. I was going to use something like this:
sudo ...
0
votes
1
answer
1k
views
Problems with mdadm after resizing
I've had the same array for nearly 10 years and have been replacing disks with larger disks as the prices come down.
After my latest upgrade of 4 6TB disks in RAID 5 I have been having a strange ...
0
votes
1
answer
514
views
Accidentally executed luksFormat instead of luksOpen
I have two disks as RAID-1 encrypted via LUKS:
# blkid
...
/dev/md0: UUID="x-x-x-x-x" TYPE="crypto_LUKS"
Accidently I executed cryptsetup luksFormat /dev/md0 instead of cryptsetup luksOpen /dev/md0 ...
0
votes
1
answer
281
views
Access to N4100pro RAID array fails with message "unknown file system type LVM2_member"
My old NAS Thecus N4100pro NAS unfortunately broke down. Now I try to access the NAS via the Knoppix Linux live CD (http://www.knoppix.org/).
I connected the hard drives via USB using an UGREEN USB3 ...
0
votes
0
answers
377
views
Is it possible to shrink raid5 software array in a safe way?
Is it possible to shrink ext4 filesystem and the underlying raid5 array in a safe way?
I would like to shrink my 15 TB / 6 drive raid array that contains an ext4 filesystem.
Before I do that on live ...
0
votes
2
answers
744
views
raid 2 smaller drives with one larger drive
I have to re-setup my RAID array and I'm faced with some different sized disks. I'd like to do raid 1 mirror w/ 2x 5TB and 1 8TB drive. I'm not sure the best way to do this.
Two options I thought of ...
2
votes
2
answers
1k
views
Can the Volume Group be resized if I put LVM on top of mdadm and the md device size changes?
Due to my increasing amount of important data, I need a software RAID5 array for redundancy, flexibility and cost effectiveness.
ZFS is not an option for me, since my distro (OpenWrt) does not ...
0
votes
2
answers
20k
views
fsck: error 2 (No such file or directory) while executing fsck.ext4 for /dev/md0
I have a raid5 which is inaccessible after unexpeted power outage.
Details:
# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid1] [raid10]
md0 : active ...
0
votes
1
answer
876
views
find why mdadm dropped a disk
I have had mdadm drop a disk twice in the last month or two. I re-added it last time and it ran fine for a while, then I noticed it was running in degraded mode again. I wondered how I find the "...
3
votes
1
answer
1k
views
How to track the start and end time of a raid5 rebuild?
This is my first post on the forum, so bear with me.
I am new to the linux environment and also new to raid configurations.
I am doing a work project where for part of this project I am measuring ...
0
votes
1
answer
2k
views
fstab issue on mounted drives
I am running Ubuntu 18.04 and recently installed two new hard drives running a RAID 1 that I set up using mdadm. But when I shut down and unplug the computer, plug back in the power, then turn the ...
0
votes
1
answer
2k
views
Linux raid suddenly not assembling when rebooting
I had a very simple RAID0 set up with just two disks, and it was assembling fine for a long time after rebooting.
Then suddenly it is not loading anymore.
mdadm.conf:
DEVICE partitions
ARRAY /dev/...
1
vote
0
answers
2k
views
mdadm: How to create RAID50 on Ubuntu 16.04
I am unable to create a RAID50 with mdadm on Ubuntu 16.04. Every time I reboot the server, the RAID0 will disappear.
Here is how we proceeded to create the RAID50 :
Create two RAID5 (8 disks each) :
...
2
votes
1
answer
39
views
Help me understand the recovered file system
So I had a Synology machine that went bottoms up (motherboard). I built a debian system myself and installed the hard disks today. After some twiddling with mdadm I was able to mount the both hard ...
2
votes
0
answers
356
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
0
answers
2k
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: ...
2
votes
1
answer
1k
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
1
answer
136
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
1
answer
6k
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
0
answers
69
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 ...
2
votes
1
answer
2k
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
1
answer
357
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: ...
3
votes
0
answers
3k
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 ...
1
vote
1
answer
406
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
0
answers
221
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 ...
3
votes
1
answer
265
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
1
answer
815
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-...
6
votes
1
answer
3k
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 ...
1
vote
1
answer
2k
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
0
answers
331
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
1
answer
2k
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 ...
1
vote
1
answer
287
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
1
answer
2k
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
0
answers
247
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
0
answers
497
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
1
answer
358
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
...
1
vote
1
answer
900
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 (...
11
votes
2
answers
10k
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
1
answer
505
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 ...
2
votes
1
answer
3k
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 ...
3
votes
2
answers
3k
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
1
answer
3k
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
0
answers
608
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
1
answer
570
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
2
answers
448
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
1
answer
1k
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
2
answers
154
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
0
answers
332
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 (/...