[->UUIDudev] mdadm.conf without ARRAY definition breaks reboot of new arrays
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mdadm (Ubuntu) |
In Progress
|
Undecided
|
Surbhi Palande |
Bug Description
Binary package hint: mdadm
I'm using 2 computers with full update karmic and they had both the same problem.
I created my array : raid5 of 4 disks.
I checked in the /proc/mdstat, the array was ok. (sync) (sda,sdb,sdc,sdd on md0)
I created a logical volume with lvm on the top of my array, using all the space (pv: md0, vg: /dev/storage, lv:/dev/
I formated the partition as ext3.
At this time, I could mount the partition on /media/raid
I decided to reboot a this time (the sync wasn't finished) and when i went back to the system, I saw that my array was broken.
My array md0 wasn't in /proc/mdstat but there was a md_d0 array only on sdb (???)
On lvm, the pv was changed and was on /dev/sdb (???)
I could solve my problem in stopping /dev/md_d0, modifying /etc/mdadm.conf, reassembling the array and reconfiguring my pv.
In /etc/mdadm.conf, I used the array disk id instead of something like that :
ARRAY /dev/md0 devices=
Now, when I reboot, the system is ok.
I think that mdadm would be more flexible if it use id of device instead of /dev/sdx in default/automatic config...
Related branches
summary: |
- mdadm, not using uid of the array breaks after a reboot of a new install + [->UUIDudev] mdadm, not using uid of the array breaks after a reboot of + a new install |
summary: |
- [->UUIDudev] mdadm, not using uid of the array breaks after a reboot of - a new install + [->UUIDudev] mdadm.conf without ARRAY definition breaks reboot new + arrays |
summary: |
- [->UUIDudev] mdadm.conf without ARRAY definition breaks reboot new + [->UUIDudev] mdadm.conf without ARRAY definition breaks reboot of new arrays |
Changed in mdadm (Ubuntu): | |
status: | New → Confirmed |
What did you use? Here (9.10) the alternate installer created mdadm.conf with lines like these
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=...
(no member device names)