Questions tagged [mdadm]
A linux utility used to manage software RAID devices.
604 questions
1
vote
1
answer
144
views
Debian, how to change md name using initramfs script and not livecd?
Is possible to change an md name while the md is still active? AFAIK is not possible
mdadm -A --update=name --name=ibmlinux-root /dev/md126
ls /dev/md/126_0
/dev/md/126_0
ls /dev/md/ibmlinux-root
...
0
votes
0
answers
91
views
Raid0+1 - Unexpected results with dmraid
I have 4x 1.8 TB HDD ( 2 TB ) in an existing Raid0 array. /dev/md127
/dev/md127:
Version : 1.2
Creation Time : Fri Mar 31 21:34:58 2017
Raid Level : raid0
Array Size : ...
0
votes
1
answer
341
views
Best way to swap out two drives in Linux software RAID6 array
I've been running an 8x2TB RAID 6 mdadm array on Debian for several years. Last array check found no errors, but SMART data for a couple of the drives is indicating some bad sectors. I'd like to swap ...
0
votes
1
answer
89
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
1
answer
132
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
108
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 ...
1
vote
1
answer
136
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 ...
1
vote
1
answer
379
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
283
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
174
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]
...
0
votes
0
answers
173
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
2
answers
905
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
0
answers
1k
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
2
answers
7k
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 /...
3
votes
1
answer
759
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 --...
1
vote
0
answers
65
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 ...
1
vote
1
answer
752
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 ...
2
votes
0
answers
374
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 ...
1
vote
0
answers
206
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 ...
1
vote
0
answers
300
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 ...
1
vote
1
answer
131
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
0
answers
814
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 ...
3
votes
2
answers
3k
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).
...
0
votes
1
answer
387
views
mdadm raid 6 array decrease error Cannot set new_offset for /dev/sda1
I tried to decrease the size of a mdadm raid6 array from 10 to 8.
So I followed these steps :
pi@raspbian-x64:~ $ sudo mdadm --grow /dev/md0 --raid-devices=8
mdadm: this change will decrease the size ...
0
votes
0
answers
312
views
mdadm.conf, `PROGRAM` arguments documentation
I want to write a bash script that i can pass as the "PROGRAM" in the mdadm config file.
But i cant find what possible arguments get passed to the program.
Where can i find the documentation ...