Questions tagged [mdadm]
A linux utility used to manage software RAID devices.
863
questions
1
vote
1
answer
225
views
Ubuntu Not Starting Second RAID Array
Before I start let me say that I am by no means an expert with this stuff, if you see something that you would have done differently let me know.
Ok, so I have a Ubuntu 18.04 server with a boot drive ...
1
vote
2
answers
218
views
RAID Arrays are not assembeling after 2nd reboot
I have an issue where i assemble RAID0 over RAID6 via mdadm as normally, after that i can create file system and mount newly made RAID60 arrays no problem. I update my mdadm.conf, update initramfs an ...
1
vote
1
answer
2k
views
How to convert swap partition from RAID1 to RAID0 using mdadm
How to convert linux SWAP memory from RAID1 to RAID0?
Start with:2 exact size swap formatted partitions (/dev/sdc5 and /dev/sdd5) on 2 physically separate disks that are used via Software RAID(named ...
1
vote
3
answers
2k
views
Missing mdam RAID1 array during scan
I have built a new server (Ubuntu 18.04.1) with 4 HDD.
My plan is to use RAID1 overall and came up with this layout after investigation:
sda, sdb four primary partitions (all as fd) with sda1/sdb1 ...
1
vote
1
answer
299
views
How to pre-emptively repair/replace drive in linux md array without going degraded first?
I have (had, it's already been swapped out, asking this for future use) a drive that is indicating pending failure with internal SMART tests and bad block remaps.
It is straightforward to mdadm --...
1
vote
1
answer
1k
views
Missing raid device in /dev/
I have two sata disks: /dev/sda and /dev/sdb. I have 4 partitions:
/dev/sd[ab]1 /boot
/dev/sd[ab]2 swap
/dev/sd[ab]3 /
/dev/sd[ab]4 /home
And all of them are in raid1.
Raid is working fine. Here is ...
1
vote
1
answer
56
views
Enable new disk in raid
I had a server with 2 disks in a raid and one of them failed. Called the provider and had them change the disk.
After a reboot I still see only one disk:
cat /proc/mdstat
Personalities : [raid1] [...
1
vote
2
answers
2k
views
md raid fails to boot with missing drive
I got a server with Debian Jessie, 4 Drives sda to sdd all of which are partitioned likewise. The system is in a raid1 md raid over all drives. All drives do have grub and I can swap discs with each ...
1
vote
1
answer
132
views
Is It Bad Practice to Run 3 Copy MD Raid10 Array in Degraded State?
Is it bad practice to run a 3 copy MD RAID10 array on two drives with a missing drive in place of a 2 copy MD RAID10 array on two drives to allow for the addition of a third drive in the future?
We ...
1
vote
1
answer
2k
views
Bad continuous write performance on RAID-5 when not writing huge amounts
I had some problems getting acceptable read/write performance for my RAID5 + crypt + ext4 and was finally able to track it down to the following problem:
Hardware
Hard disks 4x WD RED 3 TB WDC ...
1
vote
1
answer
69
views
Server rollbacked after apt-get upgrade and a restart
Today I was trying to find out why my server stalled after certain amount of requests on apache2, but couldn't figure why, so I decided to upgrade it(apt-get update & apt-get upgrade) before I ...
1
vote
2
answers
183
views
RAID10 with 24 drives on Linux
I have an Ubuntu server with attached 24x1TB drives, which I would like to use for storage.
I would like to use RAID10 with ext4, but all examples I saw (such as http://www.emind.co/how-to/create-...
1
vote
3
answers
627
views
Different free disk space figures in df output after complete rsync -Sap transfer
I did "rsync -Sap --numeric-ids --delete-during /mnt/RAIDVault/ /mnt/RAIDVault-BACKUP/" intending to bring two storage units in sync (having identical content) but ended up with different amount of ...
1
vote
1
answer
247
views
RAID1 write penalty using mdadm - what's the cause?
When doing some performance tests writing to a SSD-based 3-way RAID 1 mirror powered by mdadm, it appears we suffer a significant write penalty of about 2.2x slower than doing the same test on just ...
1
vote
1
answer
128
views
Power outage during RAID1 build [closed]
I was 60% complete building a two-disk RAID1 on my Ubuntu 14.04 server with the command
sudo mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2
/dev/sdb1 /dev/sdc1
when I accidentally ...
1
vote
1
answer
223
views
How/When to physically remove a failing harddrive after replacing it in a Linux RAID?
I have a Linux software RAID-1 with mdadm. Similar to this question ("How to safely replace a not-yet-failed disk in a Linux RAID5 array?"), I want to replace a disk in a the raid.
My question might ...
1
vote
1
answer
6k
views
Can't mount my hard drive
When I try to mount one of my hard drives, it can't locate the folder with the hard drive.
This is the output for the command df:
Filesystem 1K-blocks Used Available Use% ...
1
vote
1
answer
3k
views
RAID 5 reshape freeze
I recently added a new disk to my RAID5 array and started growing it. Absent minded as I am I rebooted the server during this reshape process I as another program was hung and blocking some ports. ...
1
vote
1
answer
1k
views
Proper way to identify member devices in mdadm.conf
My current mdadm.conf looks like:
$ cat /etc/mdadm/mdadm.conf
DEVICE /dev/sdb1 /dev/sdc1
ARRAY /dev/md0 metadata=1.2 spares=0 UUID=357ff7cc:55e78d18:9fc7917b:f5b253f2
MAILADDR [email protected]
Since ...
1
vote
1
answer
157
views
Remove a drive from a 2-drive RAID 5 array using version 1.2 metadata?
My situation is nearly identical to "How to remove a drive from a non-standard 2-drive RAID 5 array?", except my 2 TB RAID5 is using mdadm super block version 1.2. According to the best answer, "...
1
vote
1
answer
281
views
Shrinking LVM Volumes
We have a Synology RS3614rpxs NAS head containing (9) 3TB hard drives in a RAID 6 + 1 hot spare. The storage became exhausted and we added an expansion chassis where 5TB hard drivers were installed ...
1
vote
1
answer
2k
views
Mounting device from degraded RAID 1
I am trying to mount device form raid 1 (created on other device), because I need to copy data from this disk. When I am trying to assemble new array i get a message:
foo@bar# mdadm -A -R -v /dev/...
1
vote
1
answer
761
views
MDADM - Raid 1 - Change a disk with a smaller one
I have a Ubuntu server with the operating system installed on a raid1 created with two 500GB devices. the second drive failed. I now how to replace it, but my goal now is to move the operating system ...
1
vote
1
answer
2k
views
mdadm array is active but is not listed
I am running Ubuntu Server 12.04. I did apt-get upgrade and received a warning from mdadm.
update-initramfs: Generating /boot/initrd.img-3.11.0-24-generic
W: mdadm: the array /dev/md3 with UUID ...
1
vote
1
answer
439
views
CentOS System Recovery : Overwritten RAID Superblock and porting to new hardware
I have a failed system running on CentOS 6 and would like to attempt recovery of system.
One problem it has is the mdadm superblock appears to have some issues, it has all sorts of inconsistent ...
1
vote
1
answer
2k
views
Growing a raid 1 with mdadm
I have a RHEL 6.5 box in which I have recently added two partitions to the a raid 1. It took the the disks without any incidents but I am not able to resize the raid itself. The output of cat /proc/...
1
vote
1
answer
527
views
Expanding raid 5 luks partition
I have just bought 2 new drives to my raid 5 array. I have successfully added them to the array and resynced. I now have a /dev/md4 drive that is 16 TB, but the crypt-luks partition md4p1 is still 12 ...
1
vote
1
answer
584
views
Re-mount EBS vol on EC2 instance
I am new to sysadmin.
I am trying to launch a EBS-backed EC2 instance.
I did the following based on mongodb docs:
sudo mdadm --verbose --create /dev/md0 --level=10 --chunk=256 --raid-devices=1 /...
1
vote
1
answer
740
views
mdadm raid6 array reports incorrect size in df -h after grow
I've recently grown a 5x 3tb mdadm raid6 array (8tb) with a sixth disc in fedora 18, and after full rebuild and check, "mdadm --detail /dev/md127" returns the below:
Version : 1.2
Creation ...
1
vote
1
answer
445
views
Linux software RAID 10 array, failed drive, resize file system and migrate to a 3 drive RAID 1?
I have a software RAID 10 array which I recently noticed went into a degraded state. The OS is CentOS 5.8.
It has 4x 500GB drives in 3 different arrays:
/dev/md0 is RAID 1 and mounted to /boot (200MB ...
1
vote
2
answers
2k
views
Ubuntu 12.04 LTS Update - With Error: "YOUR SYSTEM IS NOW UNBOOTABLE!"
I just did an apt-get dist-upgrade and saw the following error:
cryptsetup: WARNING: failed to detect canonical device of /dev/md1
cryptsetup: WARNING: could not determine root device from /etc/fstab
...
1
vote
1
answer
1k
views
Software Raid 10 corrupted superblock after dual disk failure, how do I recover it?
I have a software raid 10 with 6 x 2tb hard drives (raid 1 for /boot), ubuntu 10.04 is the os.
I had a raid controller failure that put 2 drives out of sync, crashed the system and initially the os ...
1
vote
1
answer
2k
views
Controlling mdadm faulty disk rebuild order in RAID 10 array
I have a Linux mdadm RAID 10 array comprising of 6 (SATA) disks configured with n2 copies.
While pulling out one disk, another one in another mirror pair failed. Leaving me with:
$ cat /proc/mdstat
...
1
vote
1
answer
2k
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
1
answer
5k
views
Rebuild Linux raid1 after os reinstall
I have 4 disks in my server. sda and sdb were combined to RAID1 and had the operating system. sdc and sdd were a second RAID1 device that had a single volume group with a bunch of LVMs.
sdd died so ...
1
vote
1
answer
9k
views
Build and migrated to software raid (mdadm) on GPT disk, now can't assemble array
mdadm, gpt issues, unrecognized partitions.
Simplified question: How do I get mdadm to recognize GPT partitions?
I have been attempting to convert/copy my Ubuntu 11.10 OS from a single drive to ...
1
vote
1
answer
912
views
Linear mode to RAID 1 migration
Consider creating a linear mode RAID with single disk(more disks may be added later).
#echo y | mdadm --create /dev/md0 --level=linear --raid-disk=1 /dev/sda1 --force
Now consider another partition ...
1
vote
3
answers
6k
views
howto import existing linux soft array volume group
I have a server that consists of a boot drive, then two data drives combined to a RAID1 linux array. My boot drive recently became corrupted and I need to re-install the operating system. The RAID1 ...
1
vote
2
answers
617
views
mdadm Build legacy array with 512-byte chunk
I'm attempting to build an array using mdadm. The array has 512-byte (not kibibyte) sized stripes. Because mdadm accepts arguments to chunk in kibibytes, not in bytes, I have been unable to build ...
1
vote
1
answer
3k
views
Linux software RAID: --auto-detect finds whole drive, not last partition
My laptop, running Ubuntu Natty, is partitioned like so:
/dev/sda1: 500MB, /boot
/dev/sda2: 148GB, /
sda2 is a software RAID1 with 1 device. This is intentional -- I periodically reshape the array ...
1
vote
1
answer
207
views
New Raid-1 array rebuilding 2nd time after activation
I created a sofware raid-1 from existing data partition using this howto.
Both disks are usb 1TB disks, (each had already two partitions and I used 2nd from each, they have same size)
So I simply ...
1
vote
2
answers
514
views
HDD-Errors while building Software-RAID5
I want to build up my new NAS with CentOS 6 or Scientific Linux 6, but I am not able to build the RAID5. I created a new RAID-device using mdadm, but after some hours of work, mdadm marked one or two ...
1
vote
2
answers
360
views
Re-assembling the RAID-5 array reboots my CentOS-5 machine
I have 3 HDD's, each divided into 3 partitions.
I had created a RAID-1 for boot partition
md0 created from sda0, sdb0
and had also created two RAID-5 arrays:
md1 created from sda1, sdb1, sdc1
md2 ...
1
vote
1
answer
841
views
MDADM Array Being Limited to 2.0TB
I have an MDADM array with four 1TB disks in a RAID5 configuration.
Here's the relevant part of mdadm --detail /dev/md1:
Version : 00.90
Raid Level : raid5
Array Size : 2929537920 (...
1
vote
1
answer
1k
views
Generate a new Volume ID in Linux
Sparing most details/reasons, I have a situation in which I'm cloning drives for mass production. Some of them are being installed in servers that only need one disk (in that case this is a non-issue)...
1
vote
3
answers
1k
views
mdadm & raid6: does "re-create(with different chunk size) + resync" destroy orig. data?
I would like to rescue data on my software raid-6 array. I did some stupid actions (described bellow) with this original array.
Main Question:
I need to know if original data stored on raid-6 array ...
1
vote
2
answers
369
views
Can I prevent a Linux server from locking up/spewing console errors when a hard drive fails?
I have a Linux server (CentOS 5.5) that has two identical IDE hard drives. I've used software RAID (mdadm) to create mirrors for each filesystem, so that either hard drive could fail and no data would ...
1
vote
1
answer
1k
views
How to make partition, raid5 and filesystem on 6x2TB WDC-drives in Linux
I'm getting confused by this "Advanced Format" (4KB sectors) talk of bigger (2TB) drives - and I am wondering about how I would resolve this if I'm building a new software (mdadm) RAID-5 array.
The ...
1
vote
3
answers
4k
views
Recovering Linux RAID 0 superblocks
So I've been handed these 2 drives that were part of a RAID0 (eek!) array in a NAS. One of the drives had failed. Turns out, the drive had a bad controller card. What I've done is copied the ...
1
vote
1
answer
675
views
How to create partition when growing raid5 with mdadm
I have 4 drives, 2x640GB, and 2x1TB drives.
My array is made up of the four 640GB partitions and the beginning of each drive.
I want to replace both 640GB with 1TB drives.
I understand I need to
1) ...