Kubuntu 12.04 cannot mount RAID -- strange device name
I recently installed Kubuntu 12.04 and am trying to create a software RAID-1 device using two partitions: sda4 and sdb6. I've done this before, on this machine and on a couple others, using earlier Kubuntu versions, but this time I'm encountering a problem new to me.
I ran the following command line: Code:
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda4 /dev/sdb6 Then I ran: Code:
mdadm --detail | egrep UUID > /etc/mdadm/mdadm.uuid Code:
ARRAY /dev/md0 UUID=d8e7b..... Code:
mdadm --assemble Quote:
When I run Code:
mdadm --examine --scan Quote:
Code:
mount /dev/md127 /datalib Code:
mount -t ext3 /dev/md127 /datalib Quote:
|
what happens if you do
mdadm --examine --scan >> mdadm.conf This adds a line to mdadm.conf. And then remove the line you added. The array will still be md127 but will be assembled. |
When I do that, the line that identifies the array as /dev/md/0 (which is a link in the /dev/md subdirectory pointing to /dev/md127). With that line on the configuration file, I still cannot mount the array with any of the following commands:
Quote:
Quote:
Quote:
Quote:
Quote:
Where I've noted the "wrong fs type, etc." error message, this is (in full) a message saying Quote:
|
And, by the way, I've run
Quote:
|
what says
Code:
cat /proc/mdstat |
Quote:
|
In my reading about RAIDs, I haven't seen anything about formatting the resulting multi-disk device. Can you elucidate, or point me to a further resource?
|
A raid device is for the os just a block device like any other disk, which you can partition if you want and need to format with a filesystem.
|
To format the raid device with ext3.
Code:
mkfs -t ext3 /dev/md127 |
I've created software RAID-1 devices several times in the past, on this and other machines with earlier distributions of Kubuntu, and I've never had to use mkfs after creating the array, editing the configuration file, and assembling the array. However, I gave it a try (after finding confirmation at a website that recommended using
Code:
mkfs.ext3 /dev/md127 Thanks! |
All times are GMT -5. The time now is 06:49 PM. |