A linux utility used to manage software RAID devices.

learn more… | top users | synonyms

5
votes
3answers
6k views

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 ...
31
votes
4answers
13k views

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 ...
2
votes
2answers
908 views

Linux RAID 1: How to make a secondary HD boot?

I have the following RAID 1 on a Centos 6.5 server: # cat /proc/mdstat Personalities : [raid1] md0 : active raid1 sdb1[3] 974713720 blocks super 1.0 [2/1] [_U] bitmap: 7/8 pages [28KB], ...
13
votes
4answers
10k views

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 ...
10
votes
2answers
13k views

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 ...
1
vote
1answer
73 views

Disabling damaged RAID 1 to read from healthy HDD

One of the HDDs in my software RAID 1 on a dedicated server is damaged. The customer support is slow to respond. I would like to transfer all data I need to another server, but file access is ...
8
votes
4answers
3k views

Using 4k drives with md/LVM/dm-crypt

I know that I have to align my 4k drives by a multiple of 8 sectors, but what about md-RAID / LVM / dm-crypt? How do I tell these layers that my drive is 4k? If they don't respect the 4k sector size, ...
6
votes
4answers
12k views

How to create a software raid5 array without a spare

I am trying to create a software raid5 array using mdadm: $ linux # mdadm --create --verbose /dev/md0 --level=5 --raid-devices=4 --spare-devices=0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 mdadm: ...
3
votes
2answers
1k views

Odd mdadm output: --examine shows array state failed, --detail shows everything clean

The setup: 8 disks in a mdadm-managed RAID5 array (/dev/md0, made from /dev/sdc through /dev/sdj). One disk (/dev/sdh) is showing SMART errors (increasing pending sector count) so I'm looking to ...
6
votes
1answer
4k views

mdadm and 4k sectors (advanced format)

There are numerous questions on Serverfault about aligning 4k sectors disks, but one thing is not really clear to me yet. I successfully aligned my RAID1+LVM. One of the things I did was use mdadm ...
4
votes
1answer
377 views

3 drives fell out of Raid6 mdadm - rebuilding?

i had an mdadm raid6 array with 13x1TB drives. Within 10 minutes 3 of these drives fell out of the array... we assume bad cable to the controller card and replaced, however now we need to get the ...
2
votes
1answer
312 views

Cannot install grub, segmentation fault, unable to identify filesystem, superfluous RAID member, found two disks with same index — Debian 7

A server was recently transported from location A to B, a long journey that took six months. Things have gone wrong due to nothing being labeled prior to shipment. Yes, I know --- it was done by ...
2
votes
0answers
2k views

How to recover an mdadm array on Synology NAS with drive in “E” state?

Synology has a customized version the md driver and mdadm toolsets that adds a 'DriveError' flag to the rdev->flags structure in the kernel. Net effect - if you are unfortunate enough to get a array ...
1
vote
1answer
681 views

How to boot after RAID failure (software RAID)?

Previously I had a software raid set up using (mdadm) of drives sda and sdb. sdb failed and the only way to reboot the system was by unplugging the second hard drive. Now I've added fresh sdb and sdc ...
1
vote
2answers
330 views

Ubuntu 12.04 Server Software RAID1 - Faulty Spare - Smart Output Passed - Confused

I think I'm having an issue with one of the hard drives on my array and I'm just trying to troubleshoot what's happening. Its saying Faulty Spare and then after reboot it just says removed: ...
1
vote
3answers
2k views

Creating a partitioned raid1 array for booting a debian squeeze system

I'd like to have the following raid1 (mirror) setup: /dev/md0 consists of /dev/sda and /dev/sdb I created this raid1 device using mdadm --create --verbose /dev/md0 --auto=yes --level=1 ...
4
votes
4answers
2k views

apt-get update mdadm scary warnings

Just ran an apt-get update on one of my dedicated servers to be left with a relatively scary warning: Processing triggers for initramfs-tools ... update-initramfs: Generating ...
3
votes
3answers
1k views

Slow disk I/O in KVM with LVM and md raid5

I have been battling with a kvm setup under debian for two weeks now, specifically with guest I/O disk performance. The system: -Supermicro 1018d-73mtf (X10SL7-F motherboard) -16GB ECC/UB -Intel ...
3
votes
1answer
1k views

Removing a device in “removed” state from Linux software RAID array

My workstation has two disks(/dev/sd[ab]), both with similar partitioning. /dev/sdb failed, and cat /proc/mdstat stopped showing the second sdb partition. I ran mdadm --fail and mdadm --remove for ...
3
votes
1answer
880 views

Growing a RAID5 using mdadm with multiple drives?

I have a RAID5 array that consists of 3, 2TB drives. I want to add 2 more drives. The tutorials involve adding a single drive to an array, such as this: https://raid.wiki.kernel.org/index.php/Growing ...
2
votes
2answers
491 views

Remake SW RAID1 from a new HDD and an old HDD with bad blocks

I have a SW RAID1 and I just replaced /dev/sda with a new HDD as the old one failed. Now, upon trying to recreate the RAID array I discovered that the "good" HDD (/dev/sdb) has bad blocks with prevent ...
2
votes
2answers
471 views

mdadm fail, disk won't show up

One of my disks failed in my raid array: cat /proc/mdstat: Personalities : [raid1] md1 : active raid1 sda2[2](F) sdb2[1] 488086720 blocks [2/1] [_U] md0 : active raid1 sda1[0] sdb1[1] ...
2
votes
1answer
123 views

Is there anyway to build a raid system without all drives?

I'm building a raid1 (ok it will probably be a raid10,f2 but the difference with 2 drives... isn't much) system with 2 1TB drives. However, 1 of the drives I've ordered is bad so I'm RMA-ing it. I'm ...
1
vote
1answer
165 views

How to display/define Mirror/Stripping pairs with mdadm

I want to make a standard linux software Raid10 over 4 HDD. The server has 4HDDs, 2 pairs from different vendors in order to avoid batch problems. I want to have the mirror over two different ...
1
vote
2answers
7k views

mdadm rebooted, array missing? can't assemble?

Not sure what is going on with my Array. I rebooted ubuntu 12.04.1 and got a error on startup that fstab couldn't mount the filesystem UUID I have for my mdadm array. After running a few commands a I ...
1
vote
1answer
356 views

mdadm superblock hiding/shadowing partition

Short version: Is it safe to do mdadm --zero-superblock /dev/sdd on a disk with a partition (dev/sdd1), filesystem and data? Will the partition be mountable and the data still there? Longer ...
1
vote
1answer
683 views

What parameters to mdadm, to re-create md device with payload starting at 0x22000 position on backing storage?

I try to recover from mdadm raid disaster, which happened when moving from ubuntu server 10.04 to 12.04. I know the correct order of devices from dmesg log, but given this information, I still cannot ...
1
vote
4answers
2k views

mdadm assembles with drives instead of partitions

I have a RAID 5 array built from partitions on 5 drives - /dev/sda1, /dev/sdb1, /dev/sdc1, /dev/sdd1, and /dev/sde1. When I assemble the array manually, it works fine. Unfortunately, there seem to ...
0
votes
1answer
937 views

Grub rescue, will not boot from mdadm RAID, no such disk or device — mduuid wrong?

I am running a 14 disk RAID 6 on mdadm behind 2 LSI SAS2008's in JBOD mode (no HW raid) on Debian 7 in BIOS legacy mode. Grub2 is dropping to a rescue shell complaining that "no such device" exists ...
0
votes
1answer
106 views

System wont boot from degraded RAID6

I have a Debian Wheezy with 3 Partitions as RAID6. MD0 is for Root and OS, MD1 is for SWAP and MD2 for Files. While copy files to MD2 the system reports kernel panic and halts. I have had shutdown on ...
0
votes
1answer
78 views

Growing mdadm raid1 live; metadata 1.1 and 1.2

I can find a lot of posts about growing a mdadm RAID1 array on a live system. After growing the partitions, everybody simply says to do: mdadm --grow /dev/md1 --size=max But that doesn't work, ...
0
votes
2answers
1k views

2nd drive in RAID 1 keeps failing

I have a bit of a problem here. I have a Ubuntu Linux server set up with 2 SAS drives in a software RAID 1 (created with mdadm). The RAID will run fine for a day, I can do cat /proc/mdstat and it ...