A linux utility used to manage software RAID devices.
Questions tagged [mdadm]
895 questions
59
votes
10 answers
How to interrupt software raid resync?
I want to interrupt a running resync operation on a debian squeeze software raid. (This is the regular scheduled compare resync. The raid array is still clean in such a case. Do not confuse this with a rebuild after a disk failed and was…
Adam5
- 591
39
votes
5 answers
Recover RAID 5 data after created new array instead of re-using
Folks please help - I am a newb with a major headache at hand (perfect storm situation).
I have a 3 1tb hdd on my ubuntu 11.04 configured as software raid 5. The data had been copied weekly onto another separate off the computer hard drive until…
Brigadieren
- 491
35
votes
7 answers
How beneficial are self-healing filesystems for general usage?
I have recently looked into advanced filesystems (Btrfs, ZFS) for data redundancy and availability and got interested in the additional functionality they provide, especially their "self-healing" capabilities against data corruption.
However, I…
Prototype700
- 453
33
votes
5 answers
How do I move a Linux software RAID to a new machine?
I have a newly built machine with a fresh Gentoo Linux install and a software RAID 5 array from another machine (4 IDE disks connected to off-board PCI controllers). I've successfully moved the controllers to the new machine; the drives are detected…
romandas
- 3,432
26
votes
6 answers
Best way to grow Linux software RAID 1 to RAID 10
mdadm does not seem to support growing an array from level 1 to level 10.
I have two disks in RAID 1. I want to add two new disks and convert the array to a four disk RAID 10 array.
My current strategy:
Make good backup.
Create a degraded 4 disk…
Hans Malherbe
- 745
24
votes
4 answers
How do I list which drives are part of each RAID array?
I have a linux software RAID using md. I want to list all of my RAID arrays and each hard drive attached to them. Is there an easy way to do that?
fatal_error
- 1,204
22
votes
3 answers
How to re-add a drive when RAID is in degraded mode?
I am running an unmanaged Ubuntu server and due to recent performance issue and sent a request to the provider only to receive the following response:
"Dear Client,
as requested we have checked your drives. Both drives pass a test without any…
captain lizard
- 421
21
votes
4 answers
Can you change the metadata version on an existing array?
So grub requires metadata version 0.90 I'm wondering if I can change my existing arrays to use that instead of the default which is 1.2. That way I don't have to go about a reinstall. If yes, how can I do it?
xenoterracide
- 1,596
20
votes
4 answers
explain md's raid10,f2
I know how most of the various RAID's work. But I stumbled on the recommended raid10,f2
mode while researching linux software raid. I don't really understand how it works on 2 or 3 disks. could someone explain it to me? or point me to a really good…
xenoterracide
- 1,596
18
votes
4 answers
How to resize RAID1 array with mdadm?
I've running Ubuntu 11.04 (kernel 2.6.38-11). I replaced 2x160GB with 2x500GB drives. They are configured as RAID1.
The partition tables show the right sizes. Here's sfdisk:
# sfdisk -d /dev/sdb
# partition table of /dev/sdb
unit: sectors
/dev/sdb1…
Paul Schreiber
- 213
17
votes
4 answers
mdadm mdadm: cannot open /dev/sda1: Device or resource busy
I am having trouble going from a single disk to raid 10
The command issued is:
mdadm --create /dev/md0 --level=10 --raid-devices=8 /dev/sd[abcdefgh]1
The output is:
mdadm mdadm: cannot open /dev/sda1: Device or resource busy
I have verified this…
Backtogeek
- 607
16
votes
3 answers
mdadm - Remove disk from RAID0
So, I'd like to know, is is possible to do the following with mdadm:
I start with RAID0 configuration on 2 disks: sda and sdb.
I would like to add one more disk to array, sdc and move all data from sdb to it.
Disconnect sdb.
Right now I see only…
maniaque
- 760
16
votes
4 answers
Linux mdadm software RAID 6 - does it support bit corruption recovery?
Wikipedia says "RAID 2 is the only standard RAID level, other than some implementations of RAID 6, which can automatically recover accurate data from single-bit corruption in data."
Does anyone know if the RAID 6 mdadm implementation in Linux is one…
sa289
- 1,418
16
votes
3 answers
How do I rename an mdadm raid array?
I have assembled a new raid array to replace an old one. However, this new array got assigned an automatic name of /dev/md127 and I want to rename it to /dev/md3, so that I don't have to change various other settings. How do I rename an mdadm raid…
skolima
- 1,313
16
votes
2 answers
Verify A Partition is Aligned in Linux With RAID and LVM
Does anyone know the steps to verify that a XFS filesystem on top of LVM and md RAID is properly aligned on an array of 4096 Byte aka "Advanced Format" sectored disks?
Some references…
Kyle Brandt
- 85,693