A linux utility used to manage software RAID devices.

learn more… | top users | synonyms

1
vote
2answers
19 views

mdadm metadata: should i take precautions to prevent superblock overwrite?

Situation: I'm creating a new RAID1 array using mdadm. I won't be using additional layers, such as LVM or dm-crypt. I've noticed that metadata version 1.2 is now the default. I understand it's the ...
0
votes
1answer
129 views

mdadm raid doesn't mount

I have a raid array defined in /etc/mdadm.conf like this: ARRAY /dev/md0 devices=/dev/sdb6,/dev/sdc6 ARRAY /dev/md1 devices=/dev/sdb7,/dev/sdc7 but when I try to mount them, I get this: # mount ...
0
votes
1answer
21 views

Recovering a (not yet created) RAID5 with URE (Unrecoverable read errors)

I wan't to create a RAID5 array at home, the OS is Linux (Kernel 3.15.7) and the array will be created with mdadm. I wan't to create the array with eigth or ten 1TB discs. Let's assume a single drive ...
2
votes
1answer
48 views

mdadm inconsistencies when run programmatically

Update #1: I just gave an extra layer of testing, writing a shell script (.sh, #!/bin/bash) and a php script to be executed by php's cli. Bash works. It seems that it's not the Apache's HTTP ...
2
votes
3answers
57 views

Reassemble mdadm-raid5

A friend of mine has a mdadm-raid5 with 9 disks which does not reassemble anymore. After having a look at the syslog I found that the disk sdi was kicked from the array: Jul 6 08:43:25 nasty ...
3
votes
1answer
65 views

RAID-1 mirror has become a single hard disk

I have an HP N40L microserver, with 2 identical drives, I used the system to hardware-RAID them as a mirror. I then installed mint on the system about a year ago. This has been running perfectly, ...
3
votes
1answer
87 views

How to speed up migration from Raid 5 to Raid 6 with mdadm?

Today I started the migration of my Raid 5 to Raid 6 by adding a new disk (going from 7 to 8 disks, all 3TB). Now the reshape is in progress: Personalities : [raid6] [raid5] [raid4] md0 : active ...
1
vote
0answers
21 views

Is it reliable to assemble md from two machines at the same time

Say we have the same disks accessible from two machines. I want to do assembling md from two machines. Is it possible/reliable ? The disks are connected through SAS. All I need to have is reliable ...
0
votes
0answers
39 views

Moved Raid from NAS box to PC running Ubuntu hdparm shows drives frozen

So I had a RAID5 setup in a Partriot S4 Javelin (a NAS box). I'm now migrating it to a proper server running Ubuntu 14.04. NOTE: There are 4 drives. All the drives show up in Ubuntu. Two show ...
0
votes
0answers
85 views

Understanding iostat with Linux software RAID

I'm trying to understand what I see in iostat, specifically the differences between the output for md and sd devices. I have a couple of quite large Centos Linux servers, each with E3-1230 CPU, 16 GB ...
2
votes
2answers
32 views

mdadm - exclude drive from monitor

I have created a RAID 1 array with a single drive (in order to add a second drive later). # mdadm --create /dev/md5 --level=1 --raid-devices=2 /dev/sdc1 missing But, I execute /sbin/mdadm --monitor ...
1
vote
0answers
136 views

Help with lost software RAID5 on CentOS 6.5

I've been searching for hours and giving up / too scared to delete all my data. I have a file server running CentOS 6.5 which has 4 WD RED 2TB drives (all > 1 year old) in software raid 5 with mdadm, ...
1
vote
1answer
45 views

mixed raid types

I am about to reinitialise my (SW) raid array. Previously the array was raid5 with 4 disks. I've removed one disk in order to install a new additional (larger) drive. What I'd ideally like to do is ...
1
vote
0answers
50 views

How do you migrate from dmraid to mdadm on a working 14.04?

I installed 14.04 LTS the other day on two Samsung 840 Pro's in RAID0 on my Intel FakeRAID BIOS setup (NO efi). It is running great, however during the initial boot the system seemed to have a broken ...
3
votes
0answers
30 views

RAID6 scrubbing mismatch repair?

You can initiate a scrub of a mdadm array with echo 'check' > /sys/block/mdX/md/sync_action, and if a bad sector is found, it'll rewrite it automatically (from a mirror or from parity information ...
2
votes
1answer
54 views

How do I know if software raid is running or setup correctly

This is what I pulled: mdadm --monitor --scan -f --pid-file=/var/run/mdadm/mdadm.pid cat /proc/mdstat Personalities : [raid1] md0 : active raid1 sda1[0] sdb1[1] 262080 blocks super 1.0 [2/2] ...
6
votes
1answer
62 views

Should I use `mdadm --create` to recover my RAID?

There's this guy that keeps telling me that we shouldn't use mdadm --create to recover our RAID arrays, that it's worse than evil, is an error. Why is that? I mean I should get my RAID working again, ...
1
vote
0answers
148 views

mdadm raid 5 missing partitions after reboot

I had a working raid 5 array that had a whole debian install on it (I set it up during a debian install). I'd been using it a couple of days, all was fine, but since I created it during debian ...
8
votes
3answers
683 views

Difference between UUID from blkid and mdadm?

Can someone explain the difference between the UUID's reported by blkid and mdadm? On one of our CentOS systems, for example: [root@server ~]# blkid | grep /dev/md1 /dev/md1: ...
1
vote
0answers
17 views

Linux software raid assembled “itself” with failed drive. Why?

I have two raid1 arrays: md3 (sda3 + sdb3) and md5 (sda5 + sdb5). I deliberately failed the sdb disks because I wanted to change the partition table: # mdadm /dev/md3 --fail /dev/sdb3 # mdadm ...
0
votes
1answer
98 views

Is it useful to setup RAID0 on laptop? [closed]

I have a Dell laptop, which I am going to replace the CD-ROM hub with a HDD. I am thinking if I setup a RAID0 on my original HDD and the new HDD, would I have some I/O performance improvement? ...
2
votes
1answer
54 views

mdadm: Is PROGRAM always run by the user root?

I have an mdadm-RAID and want to get notified about events, for example a failing HDD. I can use MAILADDR and PROGRAM in the mdadm config file to achieve this. I decided to use the latter. So I wrote ...
0
votes
0answers
40 views

Change Initramfs script

I made RAID 0 by mdadm'ing partition located on dmraid VIA VT6421 and Western Digital hdd. Installed Ubuntu on that RAID. Now, when I boot, I get (initramfs) ash prompt. There, I have to write mdadm ...
1
vote
1answer
77 views

mdadm : difference in metadata versions

Can anyone tell me the difference between the different metadata versions for mdadm? When I try the command mdadm --examine /dev/sda1, I can't seem to find "preferred superblocks" on version 1.2. ...
1
vote
2answers
112 views

Gentoo XEN host + EFI + MDADM + IMSM RAID5

I have a workstation with a working Gentoo setup. It uses IMSM FakeRAID (level 5) with 4 disks. Booting done without bootloader using Linux kernel EFI STUB. System works fine. Now I need to setup XEN ...
3
votes
1answer
222 views

How to open multiple LUKS volumes with key entered in initramfs?

I have a Debian 7.4 (stable) based server configured to use an encrypted (RAID1 + LVM) root partition (/boot is un-encrypted regular partition) to which I installed dropbear SSH server so I can ...
2
votes
1answer
67 views

Transfer 2 drive raid0 / lvm2 system to new drive pair

I have a multi-boot, multi-drive system that I want to transfer onto 2 bigger drives. Currently pc has 2x1TB drives with Fedora 19 running, using RAID0 drive mirroring, with LVM2 on top of the md. I ...
0
votes
2answers
109 views

Two arrays have slightly different array size with same size disks/partitions, why?

I created a software RAID 5 array one year ago using mdadm v3.2.x which shipped from CentOS 6.3, after few months, I moved/assembled the array to/in Fedora 19 (now Fedora 20). It had three 3TB disks ...
1
vote
0answers
80 views

RAID5 Arrary disappeard with no HW or SW changes made

I have a R-Pi running XBMC (Linux CaribNAS 3.10.24 #2 PREEMPT Mon Dec 23 05:18:12 UTC 2013 armv6l GNU/Linux) with a 3 disk raid 5 array that has been working up till yesterday when is stopped running ...
2
votes
1answer
271 views

Proper way to setup RAID in linux

I have installed Debian 7.4 on a server, and through the installer I setup both RAID and LVM for the drive that the OS is installed on. However, now I want to add two 4TB drives in a RAID-1 array to ...
2
votes
1answer
46 views

Linux software-RAID and bootloader

How is it ensured that Linux software-RAID superblock(for example version 1.2) can be created at 4KiB from the beginning of the drive? According to manual of mdadm it is. I mean isn't there a hazard ...
3
votes
1answer
44 views

understanding the “chunk size” in context of RAID

Am I correct that chunk size in context of RAID is essentially the same thing as cluster in file-system context? In other words, chunk size is the smallest unit of data which can be written to a ...
1
vote
1answer
65 views

understanding Linux software-RAID superblock

According to mdadm manual, --zero-superblock option will overwrite the superblock with zeros. As I understand, superblock is a 256 byte block on HDD/SSD describing the RAID level used, name of the ...
3
votes
2answers
289 views

Grow LVM RAID10?

RHEL LVM has supported RAID4/5/6 as of 6.3 and RAID10 as of 6.4. It's well-known that mdadm won't let you --grow raid10, my question is whether this is a limitation of LVM RAID10 too? If it is ...
0
votes
1answer
108 views

mdadm large memory consumption [closed]

I am building a RAID 6 with mdadm (8 WD Red 3 Tb) on Ubuntu 13.10x64 server with ext4 filesystem. When I download torrent on the array, server RAM is filled for maximum cap (8 Gb) memory is free when ...
2
votes
1answer
442 views

Software RAID 10 + LVM on mixed drives, sector alignment?

I have 4 2.5" 7.2k drives lying about and I'd like to build some RAID arrays for a bit of VM storage on my KVM lab box. There are 2x 320GB drives and 2x 500GB drives. I'm looking to create a RAID 10 ...
2
votes
1answer
540 views

mdadm - RAID5 array size vs. actual disk size mismatch

I have 4x 3TB WD RED disks that are in mdadm RAID5, which should total an array size of 9TB usable space, however I only have 6TB. I have confirmed all disks are in the array, the only strange thing ...
0
votes
0answers
971 views

Linux md RAID: /dev/md0 vs. /dev/md/0

On newer systems /usr/share/mdadm/mkconf (the script that is used to generate /etc/mdadm/mdadm.conf) tends to use the device name /dev/md/0 instead of /dev/md0: new-system ~ # /usr/share/mdadm/mkconf ...
0
votes
0answers
150 views

Tuning a CentOS VM running on an MDRAID-based XenServer storage repository

I've run out of ideas for tuning disk write speeds on a handful of CentOS VMs running on a lab XenServer 6.2 host. Running under the free license (so vendor support not a concern), the lab host is a ...
1
vote
1answer
235 views

Why is my ext4 filesystem recognizable only on the machine it was formatted on?

Xubuntu liveCD 11.04 running on "bad machine" with mdadm RAID1 array with an unrecognizable ext4 filesystem: To rescue some files, I installed a new hard drive and formatted it to ext4. I copied ...
1
vote
1answer
146 views

Removing failed disk from raid 1

my server (Debian Wheezy) has a failed disk. I have sda and sdb and according to the support of my hoster, sdb needs a replacement. I send them this information with the mdstat: ...
8
votes
1answer
1k views

bit rot detection and correction with mdadm

I'm about to re-organise all my HDDs in my linux box nas and would like to use mdadm raid for data protection and its flexibility for reshaping the arrays. However, before I use mdadm for this I'd ...
2
votes
2answers
117 views

raid5 exchange 1 of 3 harddrives [duplicate]

I want to exchange a Harddrive which is in a pre-failing state, (some reallocated sectors) which is used in a raid5 array with 3 disks (software raid with mdadm). Is it possible to set a new ...
6
votes
1answer
248 views

md raid1 ext3 and 4k sectors slow with directory operations

I recently moved from a hardware RAID1 enclosure to using two eSATA drives with md. Everything seems to be working fine, except for the fact that directory traversals/listings sometimes crawl (on the ...
5
votes
1answer
4k views

New md array is auto-read-only and has resync=PENDING

I've created a new md array with the following command: mdadm --create /dev/md1 -l 1 -n 2 /dev/sd[ed]1 But now /proc/mdstat shows the array as "auto-read-only" with resync=PENDING: ~ # cat ...
2
votes
1answer
536 views

Gentoo/mdadm: Remove 1 disk from RAID 0 array

The server has a 7-disk RAID 0 array, and sdf is starting to die. Is there a way to remove sdf while keeping the array intact? # df -h Filesystem Size Used Avail Use% Mounted on /dev/md1 14T ...
1
vote
1answer
249 views

mdadm + lvm2: destroyed all superblocks accidentally

I accidentally overwrote all my RAID1 superblocks with garbage. I think this happened because I ALT-CTRL-DEL booted when the Ubuntu had put me in some kind of hard disk recovery mode. My display ...
3
votes
1answer
265 views

mdadm; previously working; after “failure”, cannot join array due to disk size

Abstract I had a functional Raid 5 array, I rebooted the box, and then mdadm couldn't re-assamble one part. Seeing that it was only one part, I thought it would be easy to just re-sync. But that ...
3
votes
1answer
2k views

recovery data from RAID and disk failure (Linux)

Some background A friend of mine was using in his office a NAS Buffalo-LS-WVL with two disks of 1TB each. It seems that the two disks were mounted as raid 1, but, as you will read, probably they have ...
5
votes
2answers
373 views

RAID 5 with 4 disks fails to operate with one failed disk?

I found a question about mdadm spare disks which almost answers my question, but it isn't clear to me what is happening. We have a RAID5 set up with 4 disks - and all are labeled in normal operation ...