Questions tagged [software-raid]
The software-raid tag has no usage guidance.
339 questions
0
votes
1
answer
27
views
Where is the documentation for /sys/block/md*/md/fail_last_dev
What can we do with this file: /sys/block/md0/md/fail_last_dev?
I cannot find any information about it in the md man page. In the section SYSFS INTERFACE it says: This interface is documented more ...
1
vote
0
answers
14
views
Not sure if lsblk showing correct partitions after restoring RAID1
One of my disk (nvme0n1) fails, so it was replaced. Now lsblk shows
nvme0n1 259:0 0 476.9G 0 disk
├─nvme0n1p1 259:5 0 511M 0 part
├─nvme0n1p2 259:6 0 475.9G 0 part
│ └─md2 9:2 ...
1
vote
1
answer
34
views
Failed to umount directory from my RAID1 device (device busy)
I have a system that has 1x SSD and 2x 4TB HDD working under software RAID1. (I'm currently upgrading from Linux Mint 20 to 22, another topic regarding that issue)
On my RAID1 I have LUKS encrypted ...
0
votes
0
answers
33
views
How to Remove encrypted(LUKS) soft RAID forcely in Linux?
I built a soft RAID0 with two SSDs(Samsung-980Pro), and encrypted it with LUKS, since I had only one PC a few years ago.
Now I bought a server, and directly disassemble one SSD from the old PC(without ...
2
votes
0
answers
54
views
Rebuilding RAID1 with Luks after system reinstall
My current Linux Mint 20.3 is soon running out of support, so I figured it's time to install a fresh Linux Mint 22. Currently I have mdadm running two 4TB drives on RAID1 with LUKS. It's been very ...
0
votes
0
answers
30
views
RAID10: Help, how did I configure this thing? Data is there, but my knowledge is not
First off, I'm certainly a moron. I created a RAID 10 array a number of months ago and I hadn't rebooted my computer to ensure that it would startup properly. At this point, I don't even remember what ...
2
votes
1
answer
161
views
mdadm - can't add back replaced drive due to "does not have a valid v1.2 superblock, not importing" error
I have an existing raid 6 array where one of the drives failed but, when I try to replace it using mdadm --manage /dev/md1 --add /dev/sde3, mdadm errors and I get the following message in the kernel ...
1
vote
0
answers
69
views
How can I remove raid from my system?
I want to remove raid from my system as I am low on storage and I want to recover the second disk.
How can I recover the second disk, I tried but to no avail, here is my current state :
root@miirabox ~...
1
vote
0
answers
39
views
Failed Raid5 array with 5 drives - 2 drives removed
Synopsis
Healthy Raid-5 array had 1 drive removed, quickly reinserted and started rebuilding. Then a second drive was removed within 10 minutes. Original drive assignments (sda, sdb etc) have changed ...
0
votes
0
answers
60
views
Problem to re-add faulty device to raid5 with mdadm
I have the situation as follows:
$ cat /proc/mdstat
md125 : inactive sdb4[4] sda4[1](F) sdc4[3](F)
470937607 blocks super 1.2
then in details:
$ sudo mdadm --detail /dev/md125
/dev/md125:
...
0
votes
1
answer
57
views
mdadm RAID5 array became "active, FAILED" and now no longer mounts
Today my RAID5 array status from mdadm --detail /dev/md0 became active, FAILED (I have mobile notifications setup)
Most of the files were present but some were missing. This happened before and I ...
2
votes
2
answers
163
views
Does RAID always read/write an entire chunk?
Many resources on the internet contain conflicting information regarding read/write logic for RAID chunks.
This answer contains the following (seemingly conflicting) pieces of information:
A 512 KB ...
1
vote
1
answer
67
views
Maintaining consistency of ESP on a pair of software RAIDed drives
If a Debian-based server is set up with two mirrored drives, done using mdadm,
How do you keep the EFI System Partition consistent across drives? As most BIOSes cannot read off of MDRaid partitions.
...
1
vote
1
answer
74
views
what are the steps to run Grub Hook Script in Debian 12.5
I have installed Software RAID 1 in Debian 12.5. I want if 1st HDD fails the automatically my system should be able to boot from 2nd HDD and visa versa.
What steps I should take for the same?
My ...
4
votes
1
answer
223
views
RAID5 - Mark a disk faulty during reshape
Context
I have a software RAID5 array (mdadm) on 3 disks. Last week, one disk started to get reading issue:
# dmesg
ata3.00: exception Emask 0x0 SAct 0x30000001 SErr 0x0 action 0x0
ata3.00: irq_stat ...
1
vote
0
answers
65
views
Unable to add drive to raid
I have a 3 RAID arrays on my Linux server.
root@master:~# lsblk -b
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 21474836480 0 loop
loop1 7:1 ...
0
votes
1
answer
148
views
RAID home directory setup
I have ubuntu 24.04 LTS on a SSD. I setup a software RAID5 with 3 HDDs. The RAID is mounted on /mnt/md0
Here is my questions:
I want the home directory to be in the RAID drives instead of the SSD. ...
0
votes
3
answers
239
views
How to extend LVM RAID5
This is the first time I'm posting here; usually, I always find someone who has had the same problem as me. But I'm facing an issue with my RAID5 setup using LVM and could really use some help.
...
0
votes
1
answer
25
views
raid 5 mdadm replace with read errors
I have a software RAID 5 with 3 disks.
For a few days, sda has been giving errors, and today the new disk arrived.
I launched mdadm --replace and the process started correctly, but due to read errors ...
3
votes
1
answer
320
views
I want to shrink my OS's partition on my mdadm RAID-0 array, so that I can install another linux based OS on a new partition of the array
I setup my Raid-0 mdadm raid array a few years ago when I setup my arch install following this guide https://wiki.archlinux.org/title/RAID#Installation while also googling and asking questions ...
1
vote
0
answers
89
views
Arch Linux RAID working, but won't mount on bootup. Bootup broken now
I have a headless server running Arch and sharing a software RAID.
After what looked to be a successful system upgrade, bootup now fails due to a timeout when trying to load the RAID. I get the ...
1
vote
1
answer
183
views
Single drive added to mdadm RAID disappears after reboot
I have looked and looked for other people with my same problem, but all the questions here seem to be about entire RAIDs disappearing after reboots, whereas I have a problem with just one member drive....
0
votes
3
answers
2k
views
Ubuntu RAID Configuration Devices list is empty
I want to install Ubuntu Server 22.04.
During the installation process, I want to do the storage configuration for the software RAID as mentioned in this YT-Video (https://www.youtube.com/watch?v=...
0
votes
1
answer
60
views
Extending a software RAID1 configuration
There is a system with 2 equivalent HDDs (both are 4TB), and they are "bind" together with raid1:
$ sudo mdadm --query --detail /dev/md0
/dev/md0:
Version : 1.2
Creation Time ...
0
votes
2
answers
132
views
Extensible software production-ready RAID in Linux?
My #1 goal with RAID, is redundancy from failure. My #2 concern is scalability. Because ZFS's RAID doesn't yet allow you to add a disk to the raid pool, and BTRFS RAID6 isn't stable what are my ...
2
votes
2
answers
1k
views
Problems accessing files on a RAID1+LVM from failed QNAP
Brief context
I have a QNAP TS-451. The NAS has failed, but I'm pretty sure the drives are still fine. I have a new QNAP TS-462 to try to replace it and I'd like to ensure my data is intact in the ...
-3
votes
1
answer
4k
views
Which Raid and Raid similar levels and related are supported by bcachefs and how to configure?
2023-10-31, Bcachefs Merged Into The Linux 6.7 Kernel:
https://www.phoronix.com/news/Bcachefs-Merged-Linux-6.7
https://web.archive.org/web/20231103095158/https://www.phoronix.com/news/Bcachefs-Merged-...
2
votes
0
answers
147
views
linux mdadm dm0 assembly error: md: cannot handle concurrent replacement and reshape. (machine reboot while reshaping)
I have an issue with my linux raid setup and I hope somebody here could help me get my raid active again without data loss.
I have a debian 11 system with one raid array (6x 1TB hdd drives, raid level ...
0
votes
0
answers
124
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 ...
2
votes
1
answer
293
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 ...
-1
votes
1
answer
449
views
What software alternatives are there to ECC storage under Linux Mint and Linux Mint Debian Edition LMDE to protect against a bit flip problem?
It is known that there are other approaches besides ECC memory that can help avoid data loss due to e.g. flipping of RAM memory cells by cosmic rays (bit flip problem):
What the Bit Flip Problem is:
...
1
vote
1
answer
598
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 ...
1
vote
0
answers
283
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 ...
0
votes
0
answers
523
views
Problem mounting a raid 0 array with two disks:
I am trying to back up data of my Ubuntu system that's not booting. The data was on an ext4 partition with a raid0 arry of two SSD disks (/dev/nvme0n1p3 and /dev/nvme1n1p3). But I am not able to mount ...
0
votes
0
answers
717
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 ...
2
votes
2
answers
2k
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
2
answers
6k
views
How to configure mdadm.conf properly
I have 2 mdadm arrays.
Long time ago, when there was only one raid, i wrote mdadm.conf and it looked like this:
# mdadm.conf written out by anaconda
MAILADDR root
AUTO +imsm +1.x -all
ARRAY /dev/md/...
0
votes
1
answer
4k
views
Is there a GUI to handle LVM and software RAID operations?
Are there any free graphical tools to manage advanced Linux storage schemes such as
software RAID
and
LVM arrays
in a similar fashion to how
GParted handles partitions?
Unfortunately, it seems most ...
1
vote
1
answer
1k
views
Checking a HDD's health in Raid?
I have a few HDDs in an Ubuntu SW-RAID array, and now I came across to quite a number of questions sticking together:
1.) Is it safe to do smartctl -t (SMART selftest) while the drive is part of an ...
0
votes
2
answers
332
views
Modifying files on partition mounted both on host and in KVM guest, understanding the caused corruption
I have a server to which I added two SSDs. On the host I created a RAID 1 with both of them by using mdadm.
The RAID was created by first creating partitions on the SSDs, and using the partitions to ...
1
vote
1
answer
2k
views
MDADM RAID-1 arrays always do automatic check after booting from a several-day long shutdown
I have multiple PCs with Fedora 35 and RAID-1 MDADM arrays.
Among them, only one is facing a weird problem:
If I leave it shutdown for more than 2~3 days, it will definitely perform an automatic check ...
1
vote
1
answer
248
views
mdadm DegradedArray, is that sofware a problem or hardware defect?
On a dedicated server at the hoster i received the email message for all raid arrays md0/md1/md2 :
This is an automatically generated mail message from mdadm running on cn.com
> `This is an ...
0
votes
0
answers
134
views
Is it possible to have nested striping (besides RAID10) in LVM?
I want to put one RAID on top of other RAIDs. This can easily be done with MDADM by using an existing MD device as one of the members for the new MD device. Similar functionality could probably be ...
17
votes
3
answers
3k
views
How does RAID0 work underneath, when the devices have different sizes?
To my surprise the CentOS 7 installer allowed me to create a RAID0 device consisting of roughly a 17 GB disk and a 26 GB disk. I would've expected that even if it allows that, that the logical size ...
0
votes
0
answers
108
views
mdadm raid1 arrays different size on same size partitions
I just noticed something very odd. I have two systems with Ubuntu 18.04 Server. They are partitioned exactly the same down to the byte. I verified the partition sizes with blockdev --getsize64. ...
2
votes
0
answers
1k
views
Mdadm Raid 5 not starting after reboot (IO Error & Dirty Degraded)
I added a new 3TB Drive to my working Raid5 Array yesterday and left it to rebuild overnight. Today I got the following error in journal:
Jan 16 07:49:42 iHugo kernel: INFO: task md0_resync:854 ...
0
votes
0
answers
164
views
temporary removing device /partition from RAID5 - getting "Device or resource busy"
Here is a current state of my RAID5:
And it is rebuilding....
/dev/md10:
Version : 1.2
Creation Time : Sun Dec 19 13:28:26 2021
Raid Level : raid5
Array Size : ...
5
votes
1
answer
839
views
Can a RAID5 disk be moved to a different slot?
I have a healthy RAID5 array with 5 disks:
# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid5 sdb1[6] sdd1[0] sdh1[5] sdf1[2] ...
1
vote
1
answer
737
views
Mismatch in disk size between lsblk and df
I have recently upgraded two soft raid1 2TB disks with a set of two 4TB raid 1 disks.
(see Replacing soft RAID1 LUKS disks with larger ones)
The guide was amazing, however I find myself with two ...
0
votes
0
answers
93
views
Duplicated saves with borgbackup
I need to backup data using Borg Backup from a remote server to a local server (raspberry-pi like - it is actually Yunohost) equipped with a 2 slots storage bay. I would like to have identical copies ...