if array is given a name, a strange inactive md device appears instead of the one created upon reboot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mdadm (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: mdadm
I installed Ubuntu 10.04 on a software (throughout the description I'm talking about softraid) raid1 array, with the alternate installer. It boots, it works, all's well.
Now I wanted to create some new raid arrays and I experience the following:
If I create it with the 1.2 superblock AND I give it a name
"#mdadm --create /dev/md1 --metadata=1.2 --name=TEST --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1 -> the array is created
"#mdadm -Es | grep md1 >> /etc/mdadm/
Instead an inactive array called md_d127 (further arrays are named md_d126, md_d125) appears, in /proc/mdstat grabbing one of the components.
Trying to assemble the created array "#mdadm --assemble --name=TEST" (or --assemble /dev/md/TEST) results in a degraded array with only the other component in it.
Stopping the md_d127 array and then assembling the TEST array usually works, but last time I tried it failed.
The following device files are present in /dev (md0 has the system on it):
# ls /dev/md*
/dev/md0 /dev/md_TEST1 /dev/md_TEST3
/dev/md_d127 /dev/md_TEST2 /dev/md_TEST4
/dev/md:
TEST TEST1 TEST2 TEST3 TEST4
If I create a default raid1 (I've tried naming it too, but I guess that's unavailable, with a v0.9 superblock), or one with a 1.2 superblock, but no name given, they all get assembled upon reboot.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: mdadm 2.6.7.1-1ubuntu15
ProcVersionSign
Uname: Linux 2.6.32-21-generic x86_64
Architecture: amd64
Date: Thu May 6 01:45:07 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100427.1)
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MachineType: Gigabyte Technology Co., Ltd. GA-MA78GPM-DS2H
ProcCmdLine: BOOT_IMAGE=
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: mdadm
dmi.bios.date: 04/14/2009
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F4
dmi.board.name: GA-MA78GPM-DS2H
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSof
dmi.product.name: GA-MA78GPM-DS2H
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
etc.blkid.tab: Error: [Errno 2] No such file or directory: '/etc/blkid.tab'
Changed in mdadm (Ubuntu): | |
status: | New → Confirmed |
I also see this /dev/md_d127 array after reboot. It usually consists of a 1 to 3 devices that belongs to the real raid array.
I usually run
mdadm --stop /dev/md_d127
mdadm --assemble --no-degraded /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sde1 /dev/sdf1 /dev/sdg1 /dev/sdh1 /dev/sdi1
to get the real array one running. Annoying!
This md_d127 gets created even if /dev/mdadm/ mdadm.conf is empty.
# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid5 sdb1[0] sdc1[8] sde1[9] sdf1[5] sdg1[4] sdh1[3] sdi1[10] sda1[1]
13674582656 blocks super 1.2 level 5, 64k chunk, algorithm 2 [8/8] [UUUUUUUU]
bitmap: 2/466 pages [8KB], 2048KB chunk
# mdadm -Es ce057f40: 128e12a9: 354e7dea name=:Apophis
ARRAY /dev/md/Apophis level=raid5 metadata=1.2 num-devices=8 UUID=2a54ea57: