Questions tagged [mdadm]
A linux utility used to manage software RAID devices.
558
questions
0
votes
0
answers
19
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/...
3
votes
1
answer
65
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 ...
0
votes
1
answer
21
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 ...
0
votes
0
answers
19
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,...
1
vote
1
answer
20
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/...
0
votes
1
answer
17
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-...
0
votes
0
answers
14
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 ...
0
votes
0
answers
23
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 /...
0
votes
0
answers
34
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 ...
0
votes
0
answers
28
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).
...
0
votes
0
answers
24
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 ...
0
votes
0
answers
62
views
How to reassemble s/w RAID 10 in ubuntu after a disk failure? Currently it has only 3 disks and is showing as RAID 0-Inactive
After a disk failure my RAID 10 system got degraded to RAID 0 - Inactive. It is running on ubuntu 18.04 with components (/dev/sda, /dev/sdb, /dev/sdc, /dev/sdd). How can I replace the failed disk (/...
0
votes
1
answer
115
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 ...
1
vote
1
answer
48
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 ...
2
votes
0
answers
57
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 ...
1
vote
1
answer
119
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 ...
1
vote
1
answer
123
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 ...
1
vote
1
answer
53
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 ...
0
votes
1
answer
271
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 ...
0
votes
1
answer
47
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]
...
2
votes
0
answers
66
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 ...
0
votes
0
answers
60
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 ...
1
vote
1
answer
95
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-...
1
vote
2
answers
172
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 ...
2
votes
2
answers
220
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]
...
2
votes
0
answers
378
views
Can't boot and stuck on BusyBox
When i try to boot on my Linuxmint laptop, i'm stuck on BusyBox with this message
-Boot args (cat /proc/cmdline)
-Check rootdelay= (did the system wait long enough?)
-Missing modules (cat /proc/...
2
votes
1
answer
87
views
Creating a new raid1 mdadm luks device creates two unwanted partitions
I am trying to create a raid1 (with mdadm) device with luks. However, it creates two partitions instead of one as you can see below:
sde 8:64 0 3,6T 0 disk
`-sde1 8:65 ...
0
votes
0
answers
55
views
RAID mirroring with mdadm: should I use a partition or the raw hard disk?
I have several RAID1 mirroring hard disks, I recently replaced one failed hard disk but now mdadm shows that the new device is not using any partition but the "raw" hard disk. To be more ...
1
vote
1
answer
1k
views
How do I make a spare device active in a degraded mdadm RAID5
A bit of history to start with. I had a 4 disk RAID5 and one disk failed. I removed it from the array and had it in a degraded state for a while:
mdadm --manage /dev/md127 --fail /dev/sde1 --remove /...
0
votes
0
answers
108
views
mdadm "superblock doesn't match others" when assembled with uuid, assembles fine with device names
I replaced the drives in a mdadm raid1 array by adding 2 new drives and then failing and removing the old ones, and now this command fails:
~ # mdadm --assemble /dev/md100 --uuid=325a2f12:18b827f7:...
2
votes
0
answers
119
views
Failed RAID 5 reshape after a sudden reboot
I was running a RAID 5 reshape process (growth from 4 to 5 drives) and at night a cooling fan failed and the server suddenly rebooted itself due to CPU overheat and one drive is now possibly out of ...
3
votes
1
answer
296
views
Why is my backup GPT partition table corrupt on my MD RAID 1? And why does the kernel only see 1 randomly picked member disk a time?
I have 2 disks, each 1TB in size, and both of them are a member of an MD RAID-1 array, as created by this command:
mdadm --create /dev/md0 /dev/sda /dev/sde --level=1 --metadata=1.0
The argument --...
0
votes
1
answer
73
views
Does adding 1 drive to an mdadm RAID5 with SSDs require writing all disks once?
I’m going to build a new storage with a few SSDs in RAID5 under Linux’ mdadm. I am considering buying 5 or 6 SSDs now.
If I add another SSD in the future does adding it to the RAID5 require a full ...
1
vote
0
answers
36
views
mdadm raid5 error during reshape
I first had a working 3 drive array (3 x 6TB drives) and added a 4th. It added as a spare so i ran the grow command. During this the machine rebooted and it did not recognize the 4th drive when it ...
2
votes
0
answers
54
views
Can reads from an MD RAID 1 be inconcsistent?
While a RAID 1 gives the benefit of redundancy I'm trying to understand whether using a RAID can lead to inconsistencies under any circumstances (I/O errors, not disk, ...).
In an effort to understand ...
1
vote
1
answer
231
views
Find file(s) contained in sector of a raid array
Today I way checking my raid6 array (with ext4 filesystem) and two kernel messages popped up:
mismatch sector in range 2842495632-2842495640
mismatch sector in range 2927793488-2927793496
As of now ...
0
votes
0
answers
30
views
Disks removed from raid
I have a raid 1 by Ubuntu software. One of the disks crashed, but also the raid system stopped working.
So I only have one disk but it doesn't work in the raid. I have checked with a software called ...
2
votes
1
answer
155
views
Recover files from Linux Raid1 member disk - as bad as it gets
I hope you´re doing well.
I work as a technician in an IT company focused on Windows systems and cloud stuff, hence my knowledge to Linux is sadly very limited. So please excuse any dumb questions but ...
1
vote
0
answers
112
views
mdadm RAID5 mismatch, which file(s) on ext4 filesystem are affected?
After a scrub of my 4-disk RAID5 mdadm array I got these log entries:
Dec 03 07:20:53 srv10 kernel: md1: mismatch sector in range 204340608-204340616
Dec 03 07:20:53 srv10 kernel: md1: mismatch sector ...
4
votes
1
answer
184
views
MDADM: Unable to grow raid-6 with journal?
In the past, I expanded/reshaped raid-6 arrays multiple times with mdadm.
Today I've added 2 disks to new raid-6 array, and was not able to reshape it.
It was different this time: now with journal and ...
1
vote
0
answers
113
views
Problems after creating mdadm RAID-1: disk identifier 0x00000000 and same serial number on both disks
I need your help with a problem that I’ve been trying to solve for days now.
I recently purchased a Western Digital (WD) My Book Duo, and after setting it to make it work as two independent disks I ...
0
votes
0
answers
60
views
How to replan a Linux LVM+mdadm setup to boot back the right way?
I own a Linux setup in a couple of mdadm mirrored (RAID 1) disks with LVM2 on the top. For whatever reasons I need to replan this system/storage structure from scratch which means to copy out the ...
1
vote
0
answers
142
views
RHEL 8 mdadm assembly: "No recogniseable superblock on /dev/sdb, /dev/sdb has no superblock - aborting"
I have a few different external drives that I would like to be interchangeable (not necessarily in content but in terms of how the system addresses them). When any of them are connected they appear as ...
2
votes
0
answers
141
views
Raid can be assembled but not mounted, issue is with the superblock
I moved tow drives which where mounted in a raid1 to another to a new system to be mounted there. One drive was detected instantly, the other one had issues with the super blocks.
After reading Kevin ...
1
vote
1
answer
102
views
Linux mdadm + LVM2: "Cloned" logical volume across three RAID1 blocks?
My disk setup in a Debian Linux box shows like this:
> lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931,5G 0 disk
├─sda1 8:1 0 ...
0
votes
1
answer
1k
views
mdadm raid inactive and missing a device after reboot
I have a machine which had a mdadm RAID1 array, consisting of 2 8TB disks (/dev/sdc and /dev/sdd). This worked fine, and I added a bunch of data on it.
I did many dry-runs on a different machine ...
0
votes
0
answers
377
views
mdadm shows wrong array size, and can not growing
I used 2 partitions to create a RAID1 array.
both of them are 967131168 sectors, 512 bytes per sector.
so the raid array size should be 483564544.
but it shows:
Array Size : 483433472 (461.04 GiB ...
1
vote
1
answer
117
views
mdadm raid6 has all 6 drives working, but was marked as failed after selinux blocked access during a system update
So, during a recent dnf update on my system, apparently according to the system logs at some point selinux suddenly disallowed write access to the kernel and it then marked the raid drive as "...
2
votes
2
answers
1k
views
Raid 1 on two partitions: is this a good thing to do?
So, I have a 2TB HDD (sda) and a 500GB one (sdb). I created a partition on sdb occupying the entire device (sdb1), noted how large it is, and then I created a partition on sda the same size (sda1).
...
1
vote
1
answer
236
views
How do I recover a broken software RAID5 array (mdadm)?
I had a working RAID5 array until I installed kvm and qemu and rebooted. After that the system wouldnt boot as /dev/md0 could not be mounted.
Running cat /proc/mdstat gives:
Personalities : [linear] [...