A linux utility used to manage software RAID devices.

learn more… | top users | synonyms

19
votes
8answers
71k views

How to get an inactive RAID device working again?

After booting, my RAID1 device (/dev/md_d0 *) sometimes goes in some funny state and I cannot mount it. * Originally I created /dev/md0 but it has somehow changed itself into /dev/md_d0. # mount ...
16
votes
3answers
33k views

How can I make mdadm auto-assemble RAID after each boot?

I successfully created a RAID (mirroring) by utilizing mdadm. However, I must run the following commands after each boot: mdadm --stop --scan // to stop /dev/md127 - I don't know where the number 127 ...
16
votes
7answers
18k views

Simple mdadm RAID 1 not activating spare

I had created two 2TB HDD partitions (/dev/sdb1 and /dev/sdc1) in a RAID 1 array called /dev/md0 using mdadm on Ubuntu 12.04 LTS Precise Pangolin. The command sudo mdadm --detail /dev/md0 used to ...
9
votes
3answers
16k views

How-to change the name of an MD device (mdadm)

Here is the output from mdadm -Esv: ARRAY /dev/md127 level=raid0 num-devices=2 UUID=d89d9d45:9a420812:c44c77eb:7ee19756 devices=/dev/sdb8,/dev/sda8 This is a v0.90 array. The question is as ...
7
votes
2answers
2k views

Btrfs on top of a mdadm raid10, or btrfs raid10 on bare devices?

I have a RAID10 managed by the mdadm and I have EXT4 filesystem on top of it. However, I like BTRFS and would like to convert the EXT4 filesystem to BTRFS, but I was thinking about performance and ...
6
votes
3answers
11k views

Creating a RAID1 partition with mdadm on Ubuntu

I'm trying to set up a RAID1 partition on my Ubuntu 9.10 workstation. On this dual-boot system, Ubuntu is running from a separate drive (/dev/sdc - an SSD that is quite small, which is why I need ...
6
votes
2answers
3k views

mdadm RAID Fast Setup with Empty Drives?

I am recreating some RAID5 disks as RAID6 with mdadm. There is no data on the drives that I care about. Setting up RAID takes a while to setup the shape - I accept that when there there is data that ...
6
votes
2answers
1k views

Is it safe to put harddisks of a md-software-raid to standby?

I have a home-fileserver with 6 desktop harddisks in a md-raid. The server isn't accessed a lot, so I think it would be good for the harddrives to go in standby-mode after some idle time (e.g. with ...
6
votes
4answers
6k views

mdadm volume works, but won't assemble/mount on startup?

I have an mdadm/lvm2 volume with 4 HDs that I created in Ubuntu 10.04. I just upgraded the computer to Ubuntu 10.10. I redid the mdadm commands to get volume up and running, did mdadm --detail --scan ...
6
votes
3answers
4k views

Raid1 with active and spare partition

I am having the following problem with a RAID1 software raid partition on my Ubuntu system (10.04 LTS, 2.6.32-24-server in case it matters). One of my disks (sdb5) reported I/O errors and was ...
5
votes
2answers
316 views

ext4 on mdadm reverting data

I have a problem with my home server setup. The problem is that sometimes, but really rarely, it reverts (for a lack of a better term) all my data back to an earlier state (somewhere between months ...
5
votes
2answers
2k views

Resize underlying partitions in mdadm RAID1

I have a home built NAS, and I need to slightly reconfigure some of my drive usage. I have an mdadm RAID1 composed of two 3TB drives. Each drive has one ext3 partition that uses the entire drive. ...
5
votes
1answer
113 views

Is it safe to “use” to disk if extended smart check is in progress?

As simple as the title suggests. /dev/sda is a unit from /dev/md127 - RAID1 drive. I'm currently running a test - started a smartctl -t long /dev/sda. Afterwards, I started to copy files over ...
4
votes
5answers
7k views

Adding drives to a RAID 10 Array

How would I grow a RAID10 array using mdadm? Obviously I would need to add 2 drives at a time, or would it have to be 4 drives? I have a feeling its just a bad idea. Or would be just wiser to just ...
4
votes
4answers
5k views

Does RAID1 increase performance with Linux mdadm?

I have a cheap 2-bay NAS with a 2TB HDD. To be robust against disk failure, I'm thinking of buying a second 2TB HDD and putting it in RAID1 with Linux mdadm. The file system is ext4. Will this ...
4
votes
2answers
2k views

How does one enable --write-mostly with Linux RAID?

Unfortunately the mdadm and mdadm.conf man pages are not quite up to par. I would like to enable the --write-mostly flag for my RAID, but neither the man pages nor the internet will tell me how. I am ...
4
votes
1answer
3k views

Possible mdadm RAID states?

I'm writing a monitoring plugin for a home server RAID, mdadm on Ubuntu 10.4. Using sudo mdadm --detail /dev/md0 I get output like this: /dev/md0: Version : 00.90 Creation Time : Thu Dec ...
4
votes
2answers
1k views

Fault tolerant RAID6 / RAID10 design for home server - not performance critical

I want to balance disk space against fault tolerance. I would like fault tolerance to be able to handle multiple disk failures (as I may not be able to afford replacements disks or have the time for ...
3
votes
2answers
128 views

Can a non-redundant RAID5 cause any serious problems (compared to RAID0)?

I used to have a three-disc RAID5 (mdadm) in my computer for personal media storage (music, videos, photos, programs, games, ...). It had three discs with 750 GB each, resulting in an array capacity ...
3
votes
2answers
250 views

What would you see if you tried to mount a single drive from a RAID 5 Array?

The title pretty much sums it up - if someone were to mount a single drive from a software RAID 5 array, what would they see? Would it point to being part of a RAID array, appear as encrypted data, or ...
3
votes
3answers
161 views

Can RAID5 drives be defective while passing self-tests?

I have a 4-drive RAID5 in Ubuntu 10.10 with mdadm. One of the disks seems to be problematic. It dropped from the RAID, and I re-added it and it was fine for a while, but now when I re-add it I get a ...
3
votes
1answer
595 views

mdmda raid 1 - spare drive after SATA cable change

Yesterday my hoster changed a SATA cable of one of my hdds, when my server came back up again cat /proc/mdstat showed this Personalities : [raid1] md124 : active raid1 sda1[0] 4193268 blocks ...
3
votes
2answers
9k views

How do I reactivate my MDADM RAID5 array?

I've just moved house which involved dismantling my server and re-connecting it. Since doing so, one of my MDADM RAID5 arrays is appearing as inactive: root@mserver:/tmp# cat /proc/mdstat ...
3
votes
0answers
46 views

mdadm: Win7-install created a boot partition on one of my RAID6 drives. How to rebuild?

My problem happened when I attempted to install Windows 7 on it's own SSD. The Linux OS I used which has knowledge of the software RAID system is on a SSD that I disconnected prior to the install. ...
3
votes
2answers
1k views

mdadm: safest way to grow RAID 5 (4x2TB) with 2x4TB

My situation:I am currently running a RAID 5 with 4x2 TB disks and would like to grow the array with 2 x 4 TB disks. The goal would be that there is a RAID 5 with 4 x 4 TB (the two 4 TB disks and two ...
3
votes
1answer
1k views

Need to find which drives are mirrored within RAID-10 array

I have a home media server running on openSUSE 12.2. I'm using eight 2TB drives in a RAID-10 configuration. I deliberately bought two different types of drives: four Seagate Barracuda Green and four ...
2
votes
4answers
899 views

Linux software RAID robustness for RAID1 vs other RAID levels

I have a RAID5 array running and now also a raid1 that I set up yesterday. Since RAID5 calculates parity it should be able to catch silent data corruption on one disk. However for RAID1 the disks are ...
2
votes
2answers
765 views

Can I use an entire drive for as a software raid member?

Can I use /dev/sda and /dev/sdb for my RADI1 configuration? Or do I first have to partition both with a single Linux raid partition?
2
votes
4answers
517 views

Solution for storing sata drives outside of case

I have a system that has 8 sata disks in a software raid 5 array using mdadm. My issue is that I want to move the drives from inside of the computer case in order to cool more efficiently. I have ...
2
votes
3answers
2k views

mdadm Ubuntu 12.04 fails to assemble RAID6 during boot

I will try to keep this short. I have a mdadm RAID 6 with 11 drives. This has for years "just worked" across reinstalls and such, without any issues. I have not even had the need for configuring ...
2
votes
1answer
87 views

Why make a partition at all for mdadm/raid?

i have 4 disks, sd[a,b,f,g] of various sizes that I want to 'merge' together. I am using mdadm to achieve this. my question is, what's the difference between -- mdadm --create /dev/md0 ...
2
votes
1answer
1k views

Degraded RAID5 and no md superblock on one of remaining drive

This is actually on a QNAP TS-509 NAS. The RAID is basically a Linux RAID. The NAS was configured with RAID 5 with 5 drives (/md0 with /dev/sd[abcde]3). At some point, /dev/sde failed and drive was ...
2
votes
1answer
819 views

How to remove a drive from a non-standard 2-drive RAID 5 array?

There is some information available on shape changes in RAID arrays but I'm a little nervous and would like confirmation: Problem: I have 2 500GB drive as software raid 5 (mdadm). I would like to ...
2
votes
1answer
271 views

convert full-disk RAID5 array to partition-based array?

I have a RAID 5 array, md0, with three full-disk (non-partitioned) members, sdb, sdc, and sdd. My computer will hang during the AHCI BIOS if AHCI is enabled instead of IDE, if these drives are plugged ...
2
votes
1answer
1k views

how can fsck to recover from hardware failure?

I have a RAID 5 array using mdadm and ext4 as its filesystem. We got a strong power surge and one of the drive faulted, while another one got a bit flakky, aka "click of death". I replaced the disks ...
2
votes
2answers
654 views

Linux drive permissions for disk used by two systems

I've got a large mdadm-based RAID5 array that I've been using with an Ubuntu 8.04 system. I'm setting up a new 9.10 (alpha 6) system on the same hardware. mdadm does a great job automagically ...
2
votes
1answer
794 views

Optimal raid array on Centos 6

I have 4x2TB disks and I want to create a well-performing RAID5 array (server is HP N40L microserver with 8GB RAM, booting from a 64GB SSHD). The OS is Centos 6.3, x86_64. I created the raid array ...
2
votes
1answer
283 views

Recover from failed recovery of software RAID5 failure

I have the pleasure ;-) to have been handed the task to try to get data off a server that had a RAID5 array problem and a failed attempt to recover it. Background: the computer in question is some ...
2
votes
3answers
991 views

RAID-1 and regular drive removal (using RAID-1 as a backup measure)

Is using mdadm's RAID-1 of 2 partitions (one on laptop's internal HDD, one on external HDD) a good idea. I want the system to work as RAID-1 if both drives are present, work as regular volume ...
2
votes
0answers
462 views

mdadm RAID monitoring no DegradedArray email

So, I have a couple of MDADM RAID arrays and I want to set up monitoring with email notifications for drive failures through sSMTP but I can't seem to get it working. The system in question is a ...
2
votes
1answer
595 views

Mounting a raid1 device - no suitable drives found

I'm having some problems with my disks; long story.. but right now I'm trying to mount a device that was part of a 2-disk raid1. For that, I tried to assemble it into a new array, but... % mdadm -Av ...
2
votes
0answers
384 views

Cloning Ubuntu mdadm RAID1

I would like to clone a pair of RAID1 drives created with mdadm. I've tried Clonezilla, but there's no native support for mdadm, so it resorts to using dd which is incredibly slow. I've looked for ...
2
votes
0answers
1k views

Does TRIM avoid the performance impact of mdadm RAID 1 on SSD?

It has already been mentioned in other questions that Red Hat recommends against using mdadm RAID 1 on SSD. Red Hat also warns that software RAID levels 1, 4, 5, and 6 are not recommended for use ...
2
votes
0answers
6k views

How to force mdadm to stop RAID5 array?

I have /dev/md127 RAID5 array that consisted of four drives. I managed to hot remove them from the array and currently /dev/md127 does not have any drives: cat /proc/mdstat Personalities : [linear] ...
2
votes
1answer
199 views

Gentoo Linux -> Ubuntu: Can I Preserve My LVM/RAID Devices, Or Do I Need To Reformat?

I've got a Gentoo box that I'm interested in switching over to an Ubuntu box. I currently have the partitions laid out using a mixture of RAID (mdadm) and LVM2, as specified in this document [1]. ...
1
vote
2answers
56 views

What are the risks of running a software RAID 1 array in degraded mode?

I'm replacing my workstation's system drive and would like to in the future be able to easily add a second drive to form a proper (although software) RAID 1 mirror. For the time being, however, I'm ...
1
vote
2answers
298 views

/dev partition missing, so mdadm broken. How to get Linux to see partition?

Upgraded a Linux box and changed out the root drives. There was a RAID-5 array of three SATA drives that I moved over (not root). Reinstalled the OS but was CentOS 6.4 before and after. # mdadm ...
1
vote
2answers
1k views

Recover data from RAID 0 disk images

I have four (4) disks which are in RAID 0, but the (Lacie) hardware enclosure failed and I'm trying to recover the data stored. I'm now trying to rebuild the RAID to access the data stored, but can't ...
1
vote
1answer
1k views

Auto-rebuild RAID6 with MDADM

I have an openSUSE 11.3 Linux computer with 5 disks of 1TB (WD enterprise disks) in it. With mdadm I configured a RAID6 device. Now, after a lot of thorough testing, I've noticed that when the ...
1
vote
1answer
2k views

mdadm: superblock on /dev/sdd1 doesn't match others - assembly aborted

OS: Debian Squeeze Kernel: 2.6.32-5-amd64 mdadm version: 3.1.4 (31 August 2010) mdarrays md1 = raid1 (this is working) (devices: /dev/sd[fg]1) md0 = raid6 (previously raid5, ...