a utility to administrate Linux Software RAID devices
Questions tagged [mdadm]
513 questions
48
votes
1 answer
I don't have a RAID but get the warning mdadm.conf defines no arrays
I installed 16.04 Server and I have had a similar message in my logs and this message when I upgrade initramfs packages through normal package upgrade.
...
Setting up initramfs-tools (0.122ubuntu8.3) ...
update-initramfs: deferring update (trigger…
Paul
- 4,606
31
votes
6 answers
How do I rename an mdadm raid array?
For some reason, when I try to rename an mdadm raid array to a textual name, the change doesn't take.
I tried the advice from this serverfault question, but to no avail.
~$ mdadm --version
mdadm - v3.1.4 - 31st August 2010
~$ sudo mdadm --detail…
Zaz
- 1,129
30
votes
4 answers
Why is my RAID /dev/md1 showing up as /dev/md126? Is mdadm.conf being ignored?
I created a RAID with:
sudo mdadm --create --verbose /dev/md1 --level=mirror --raid-devices=2 /dev/sdb1 /dev/sdc1
sudo mdadm --create --verbose /dev/md2 --level=mirror --raid-devices=2 /dev/sdb2 /dev/sdc2
sudo mdadm --detail --scan returns:
ARRAY…
mmorris
- 1,022
24
votes
5 answers
Can the EFI system partition be RAIDed?
I'm setting up a HTPC with Ubuntu 64-bit, using UEFI and RAID with GPT disks.
Is it possible for the EFI system partition (partition type 0xEF00) to be part of a RAID1 array using mdadm? I'm hoping that metadata version 1.0 (at the end of the disk)…
Andrew
- 507
22
votes
4 answers
How can I create one logical volume over two disks using LVM?
Hi. I've got a working Ubuntu 12.04 server, which is going to serve as media server. I've added two disks of size 3TB to put my data on, and I wish to combine these as one 6TB logical volume which I could mount under /media.
So far, I have created…
Hydrosine
- 323
21
votes
4 answers
How do I align my partition table properly?
I am in the process of building my first RAID5 array. I've used mdadm to create the following set up:
root@bondigas:~# mdadm --detail /dev/md1
/dev/md1:
Version : 00.90
Creation Time : Wed Oct 20 20:00:41 2010
Raid Level : raid5
…
Jorge Castro
- 73,717
19
votes
3 answers
How to Install Ubuntu 14.04 with RAID 1 using desktop installer?
Many people claim that it is impossible to install Ubuntu onto RAID 1 with the Desktop CD. Is this really true? If not, how can it be done?
Sunday
- 803
19
votes
9 answers
Making stripe_cache_size permanent
I did
echo 8192 > /sys/block/md0/md/stripe_cache_size
to improve my RAID performance, and it did helped alot.
But I still can't figure out how to make it permanent.
I was trying to set it in /etc/rc.local - other commands are executed, but it was…
BarsMonster
- 549
18
votes
2 answers
RAID (mdadm) - What happens if drives are mismatched in size?
Question 1 - Before you answer with "it just takes the smaller disk", hear me out quick. My 3TB WD Reds come out to be 3001 GB in size. Let's say I set up a mirror via mdadm for sdb1 and sdc1 which span 100% of the drive. But suddenly, one of the…
JaSauders
- 567
16
votes
4 answers
How to enable degraded RAID1 boot in 16.04LTS?
In previous ubuntu versions, adding BOOT_DEGRADED=true to /etc/initramfs-tools/conf.d/mdadm allowed the system to automatically boot when the root filesystem is on a degraded array. This no longer seems to work in 16.04 LTS.
The documentation…
vdyvp
- 161
16
votes
1 answer
Setting up RAID 1 on 14.04 with an existing drive
I have a currently installed Seagate ST3000DM001 (about 90% full) and a new Seagate ST3000DM001 (blank). I would like to setup RAID 1 without losing the data on my currently installed drive.
If I use the mdadm process outlined in this tutorial:…
Shayne
- 165
16
votes
1 answer
How to access MD RAID via Live CD?
We are currently trying to run access the data on a server running a HP Ml110 G5 SATA raid controller, using the latest Ubuntu Live CD. We need to delete a few files to let the server boot into Windows but are unable to mount the partitions.
We can…
Neil
15
votes
2 answers
How to re-add accidentally removed hard drive in RAID5
I have a NAS on Ubuntu Server with 4 2TB hard drives in RAID 5. A couple of weeks ago, one of the hard drives died, but my RAID was working, although degraded. Luckily it was still under warranty and I was sent a new hard drive which I installed…
Chunky56
- 171
- 1
- 1
- 3
14
votes
1 answer
Software raid - mdadm - re-find my array
Description
Today I plugged in another hard drive and unplugged my raid drives to ensure when I wiped the drive, I would not accidentally pick the wrong drives.
Now that I have re-plugged in my drives, the software raid 1 array is no longer being…
Programster
- 6,039
14
votes
3 answers
Put HDDs in standby after X minutes using hdparm doesn't work
I use Ubuntu 12.04 on a home server. There are 5 hard drives: one SSD with the OS and 4 HDDs (Samsung HD204UI) configured as a RAID5 using mdadm.
I don't need the RAID very often (say, about once per day in average); it contains multimedia data and…
leemes
- 951