Skip to main content

All Questions

Tagged with
36 votes
10 answers
238k 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 /...
Jonik's user avatar
  • 5,790
34 votes
3 answers
207k 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 ...
Jon Cage's user avatar
  • 2,607
28 votes
4 answers
65k 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 ...
XXL's user avatar
  • 1,469
11 votes
3 answers
16k 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 ...
Paul's user avatar
  • 60.3k
9 votes
3 answers
4k 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?
Kaurin's user avatar
  • 740
8 votes
3 answers
21k views

How do I mount a software RAID1 (mirror) created by Windows in Linux using mdadm?

I'm switching my Windows server to Ubuntu and am trying to get my software RAID1 (mirror) that I created in Windows to show up in Ubuntu. I have read that this is possible here using mdadm, but I'm ...
Grezzo's user avatar
  • 972
8 votes
3 answers
7k 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 ...
Daniel Baron's user avatar
6 votes
3 answers
24k 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 ...
Jonik's user avatar
  • 5,790
6 votes
1 answer
504 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. ...
swalog's user avatar
  • 191
5 votes
4 answers
15k views

New mdadm RAID vanish after reboot

I have problems with mdadm after reboot, I can't reassemble /dev/md0 . I work on debian wheezy. I have done the following steps:: sudo mdadm --create --verbose /dev/md0 --level=6 --raid-devices=4 /...
peon's user avatar
  • 51
5 votes
2 answers
11k views

Convert RAID 1 to RAID 10 in mdadm

In my current Ubuntu server, I have 2x 2TB Western Digital RED hard drives in a RAID 1, using mdadm. I would like to add 2 more 2TB RED drives, and convert it to a RAID 10. I realize I would have to ...
Canadian Luke's user avatar
5 votes
0 answers
2k 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 ...
Glader's user avatar
  • 171
4 votes
1 answer
4k views

MDADM RAID-0 does not increased size after grow on AWS Linux with EBS

I wanted to grew a Raid0 from 2 disks to 3 (each 1TB EBS on Amazon AWS) but the size did not change thereafter. The RAID started with two disks sdc and sdd and the new one was sdf. Here is the grow-...
Jörg Rech's user avatar
4 votes
1 answer
2k views

Can I create a degraded mdadm raid10-near (raid 1e) array?

I have three drives in my current system (all 1TB). The current setup is: sdb - raid0 member (failing soon) sdd - raid0 member sde - backup I'd like to change it so all three drives are part of a ...
Violet's user avatar
  • 191
4 votes
1 answer
13k views

Does mdadm record array event history?

I received an automated email from the mdadm daemon: A Fail event had been detected on md device /dev/md0. It could be related to component device /dev/sdh. I find the wording strange. "could be"? ...
superboot's user avatar
  • 358
4 votes
0 answers
3k views

How to prevent an mdadm array check from consuming excessive system resources?

Once a month I've been doing echo check > /sys/block/md2/md/sync_action in order to force a software raid consistency check. The problem is this is a 7.2T RAID 5. The consistency check takes ...
pgoetz's user avatar
  • 181
4 votes
1 answer
758 views

Raid Spare Spin Down

I have a software RAID 5 array (mdadm under Debian Linux) that has been up for the better part of a decade and has seen it's fair share of drive failures. I've always been leery about setting up a "...
julienj's user avatar
  • 183
3 votes
4 answers
10k views

MDADM reshape really slow

To sum up : My raid reshape with mdadm is really slow. The complete story : 3 days ago I realized that one of my disks from a raid 5 array was faulty. I removed it and replaced it with a brand new ...
Okeur's user avatar
  • 63
3 votes
1 answer
2k views

mdadm RAID 1 - spare drive after SATA cable change

Yesterday, my hosting provider 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] ...
supernova's user avatar
  • 275
3 votes
0 answers
3k views

Synology DiskStation: How to stop/interrupt a running reshape (RAID5 -> RAID6)

The short of it: I have a running reshape from RAID5 with 5 disks to RAID6 with 6 disks which needs to be stopped, so I can power off the system. I do not care if the reshape needs to start fresh once ...
synouser's user avatar
3 votes
0 answers
1k views

mdadm RAID 1 not activating spare after replacing faulty drive

Have issue with mdadm similar to Simple mdadm RAID 1 not activating spare: have replaced faulty HDD in RAID 10 fdisked and added new hdd to mdadmn mdam resynced array After that I see following: ......
user2650367's user avatar
3 votes
0 answers
185 views

Metadata of the assambled raid inconsistent with the metadata of the individual drives?

We have a raid 10 with two failed drives, with one drive from each set still functional. When booting into rescue system the metadata seems to be fine and consistent with the expected state. The ...
user910763's user avatar
3 votes
1 answer
2k views

Documentation for mdadm bad block support

I've read a bit about that mdadm (and the kernel) now have bad block support but I am having a hard time finding any useful documentation on this subject. Is the bad block list for disk X duplicated ...
Waxhead's user avatar
  • 1,260
2 votes
2 answers
20k views

How do I tell mdadm to start using a missing disk in my RAID5 array again?

I have a 3-disk RAID array running in my Ubuntu server. This has been running flawlessly for over a year but I was recently forced to strip, move and rebuild the machine. When I had it all back ...
Jon Cage's user avatar
  • 2,607
2 votes
1 answer
4k views

Assemble 3 drive software RAID5 with one disk missing

Is it possible to assemple a three drive software RAID5 with only two disks? I have one failed disk in my setup which i could not read at all but the two other disks are fine. So i created a dump of ...
Maximilian Ruta's user avatar
2 votes
2 answers
3k views

Removing a disk from an Ubuntu mdadm RAID marks the array as inactive, instead of degraded

I'm setting up a mdadm raid 1 array on Ubuntu 14.10 under VirtualBox. Everything works fine: The raid 1 is set up with /dev/sdc1 and /dev/sdd1: Personalities : [linear] [multipath] [raid0] [raid1] [...
reljam's user avatar
  • 63
2 votes
2 answers
1k 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 --level=...
Hari Sundararajan's user avatar
2 votes
1 answer
5k 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 ...
ark1214's user avatar
  • 23
2 votes
1 answer
6k views

Assembling an mdadm array with "possibly out of date" disks

I've recently moved house and have had some power problems after switching on my file server that's using a mdadm RAID5 set up. The file system I'm using is ext4. It seems that at some point two (of ...
Travis's user avatar
  • 21
2 votes
1 answer
3k 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 ...
user65632's user avatar
2 votes
1 answer
4k views

Understanding /proc/mdstat [U_] VS [_U]

My server is set up with raid1. A few nights ago sda fell out completely and data was corrupted. I replaced the drive, cloned the partition table and added the respective arrays. While adding sda3 (...
user1224344's user avatar
2 votes
2 answers
423 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 ...
Daniel's user avatar
  • 21
2 votes
0 answers
143 views

Mounting External Intel Raid Device on Linux Failing, No Suitable Superblock and Read Past End

I have a hard-disk from a dead machine that I'm trying to mount on my Linux machine. For reference, I'm using Fedora 39 and mdadm v4.2. First, I tried just mounting it, correctly showing it's a RAID ...
Alex Huszagh's user avatar
2 votes
1 answer
3k views

mdadm shows inactive raid0 array instead of degraded raid6 after disk failure

I've been running an Ubuntu 18.04 system with an 8-disk raid 6 array, that crashed while having a faulty disk (I only noticed that there was a faulty disk after the crash). The raid array has survived ...
D.F.'s user avatar
  • 21
2 votes
1 answer
943 views

mdadm re-added a removed disk to my RAID1 and skipped re-sycning it, what went wrong?

I ran into what is a true mystery to me today, and would love if someone could give me an idea of how what happened is even possible. We had physically removed a disk from our software RAID1 (Ubuntu ...
Andrew Bent's user avatar
2 votes
2 answers
2k views

raid 1 badly detected as raid 0 when one drive is missing

I'm learning raids, so maybe this is some basic question, but it's not covered anywhere... When I create raid 1, update /etc/mdadm/mdadm.conf as[1], run update-initramfs -u, I can reboot and mount it....
Martin Mucha's user avatar
2 votes
1 answer
534 views

RAID5 mdadm faulty / blk_update_request: I/O error

I have five raw images of a server's disks (stored on one external HDD). Each of those disks contains two partitions which are "Linux raid autodetect" (fd) and are members of RAID1 (boot-related; 3 ...
user3388087's user avatar
2 votes
0 answers
947 views

RAID5 fails while recovering (mdadm): Any chance to resync?

My RAID5 is going to die because, while restoring a failed HDD, on another HDD read errors occurred and a restore is impossible. I just want to know whether it's possible to restore only a part of ...
swat's user avatar
  • 21
2 votes
1 answer
4k views

mdadm --examine displays something different than --detail

Who should I trust to fill my /etc/mdadm/mdadm.conf ? mdadm --examine --scan returns /dev/md/0 while obviously it's /dev/md0 that is currently rebuilding What should I put in my /etc/mdadm/mdadm.conf ...
euri10's user avatar
  • 441
2 votes
0 answers
885 views

Redundancy: LVM+mdadm or LVM internal RAID

The task is to create LVM storage for virtual machine images. So LVM will be used in any case. There are two ways LVM providing redundancy: block mirroring lvcreate -m 1 --mirrorlog mirrored -n ...
eugene-bright's user avatar
2 votes
1 answer
6k views

Unable to reassemble md raid on drives pulled from ReadyNas Duo v1

I'm toying with a ReadyNAS device that I've recently acquired. It is a SPARC-based box, and it runs linux. As device is pretty slow, I've pulled one drive out of array, hoping to populate it with ...
mr.b's user avatar
  • 361
2 votes
0 answers
3k views

mdadm raid5 read error not correctable

I have a software raid5 setup existing of 4 disks. sda, sdb, sdc, sdd Since everything was up and running I wanted to test the array. To do this I pulled the plug on one of the disks (sdd). Everything ...
siebz0r's user avatar
  • 456
2 votes
2 answers
1k views

Recover Linux software RAID5 array after server upgrade

I recently upgraded a server from Fedora 6 to Fedora 14. In addition to the main hard drive where the OS is installed, I have 3 1TB hard drives configured for RAID5 (via software). After the upgrade, ...
jstevej's user avatar
  • 121
1 vote
3 answers
9k views

MDADM raid "lost" after reboot

I am kind of scared right now, so I hope you can bring light on my problem! A few weeks ago, I bought a new 2TB drive and decided to setup a software RAID 5 with MDADM on my HTPC (drive sdb, sdc and ...
Patrick Pruneau's user avatar
1 vote
1 answer
747 views

btrfs ontop of mdadm raid - calculating stripes for corrupt sectors for use with raid6check

I've got a setup with btrfs running on top of mdadm raid6 as btrfs's RAID5/6 code isn't stable yet. I figured this way I'd get the benefits of snapshotting and checksumming with a few extra hoops to ...
ultramancool's user avatar
1 vote
3 answers
1k views

Disable warning from mdadm for “degraded” RAID1 with missing drive

I recently had a server outage due to a failed drive. Because of that I set up the server with a new SSD in RAID1 this time but until I managed to get another SSD drive the mdadm-based RAID1 runs with ...
Daniel Böhmer's user avatar
1 vote
1 answer
2k views

Software RAID Nonfunctional after power outage

My server lost power yesterday. It automatically booted up when power came back, but my RAID is now nonfunctional. The RAID array is a software RAID6 built with mdadm. Originally, the array used 8 ...
Uze's user avatar
  • 31
1 vote
1 answer
4k views

Linux MD software raid stripe cache size

From what I can piece together the /sys/block/md0/md/stripe_cache_size is for raid5 and 6 set at a very low default value to avoid starving machines for memory. By increasing this value you can get a ...
Waxhead's user avatar
  • 1,260
1 vote
1 answer
2k views

Can I pass disks through Hyper-V to a Linux VM for md RAID on any hardware?

I toyed with the idea in the past few months of virtualizing a workstation machine (with ESXi/Xen/etc), basically having it run some very basic server stuff behind the scenes; this was more of an ...
jski's user avatar
  • 235
1 vote
1 answer
9k views

How can one setup RAID 1 in Linux Mint 13?

I am trying to setup a Linux Mint 13 system using mdadm, with 2 1TB hard drives for a software mirror. I have tried following instructions found for Linux Mint 12, but the instructions fail to mention ...
Canadian Luke's user avatar

15 30 50 per page