I'm trying to set up a simple, 2-device, RAID-1 array to be used as the basis of a Kubuntu 9.04 file server, but I cannot get the RAID to remain intact.
I'm using two identically-sized (264 GB) partitions, sda7 and sdb3, on two identical SATA HDDs, both formatted to ext3 and flagged as RAID devices with gParted.
I can initially create, activate, and mount the RAID as follows.
I do have a /etc/mdadm/mdadm.conf file that includesCode:mdadm -Cv /dev/md0 -l1 -n2 /dev/sda7 /dev/sdb3 mdadm -As /dev/md0 mount /dev/md0 /datalib
Up to this point, everything appears to be working. But once I stop the RAID (either with mdadm -S /dev/md0, or by rebooting), a spurious device md_d0 shows up in the /dev directory listing, along with a /dev/md subdirectory and four links in the /dev directory that point to md_d0p* devices in the ./md subdirectory.Code:DEVICE /dev/sda7 /dev/sdb3 ARRAY /dev/md0 devices=/dev/sda7,/dev/sdb3 level=1 auto=md num-devices=2
This spurious md_d0 device claims sdb3:
At this point, sdb3 cannot be made a part of my real md0 until I issue the command to stop the bogus device with mdadm -S md_d0.Code:# cat /proc/mdstat md_d0 : inactive sdb3[1](S) 276920320 blocks md0 : inactive sda1[0](S) 276920320 blocks unused devices: <none>
Also at this point, neither the native parted program on my Kubuntu installation nor the gParted live-CD recognize the filetype for sdb3, but fdisk reports it as still being an ext3-formatted partition.
I have never explicitly created md_d0, nor have I ever tried to partition md0. This behavior recurs even after I've removed and reformatted both the sda7 and sdb3 partitions, whether with or without the RAID flag set.



Adv Reply


Bookmarks