* raid1+raid0 mdadm
@ 2006-03-21 17:27 Dariusz Malec
2006-03-21 18:00 ` Andre Noll
0 siblings, 1 reply; 4+ messages in thread
From: Dariusz Malec @ 2006-03-21 17:27 UTC (permalink / raw)
To: linux-raid
I can't configure mdadm. I have created 2 raid1 devices and i wanted to
connect them with raid0. Everything is fine when i use command line,
but after reboot mdadm starts only raid1 devices. Where I can find info
about such config?
Darek
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: raid1+raid0 mdadm
2006-03-21 17:27 raid1+raid0 mdadm Dariusz Malec
@ 2006-03-21 18:00 ` Andre Noll
2006-03-25 18:26 ` Luca Berra
0 siblings, 1 reply; 4+ messages in thread
From: Andre Noll @ 2006-03-21 18:00 UTC (permalink / raw)
To: Dariusz Malec; +Cc: linux-raid
[-- Attachment #1: Type: text/plain, Size: 687 bytes --]
On 18:27, Dariusz Malec wrote:
> I can't configure mdadm. I have created 2 raid1 devices and i wanted to
> connect them with raid0. Everything is fine when i use command line,
> but after reboot mdadm starts only raid1 devices.
Are you using udev?
IIRC, there was an issue with stacked md devices like yours. Your
problem might be that the device node for the final raid0 is missing.
If your raid1's are md0 and md1, add
mknod -m 600 /dev/md2 b 9 2
to your init scripts, just before calling mdadm.
Of course, that's only an ugly workaround (that once worked for me).
Andre
--
The only person who always got his work done by Friday was Robinson Crusoe
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: raid1+raid0 mdadm
2006-03-21 18:00 ` Andre Noll
@ 2006-03-25 18:26 ` Luca Berra
0 siblings, 0 replies; 4+ messages in thread
From: Luca Berra @ 2006-03-25 18:26 UTC (permalink / raw)
To: linux-raid
On Tue, Mar 21, 2006 at 07:00:50PM +0100, Andre Noll wrote:
>On 18:27, Dariusz Malec wrote:
>
>> I can't configure mdadm. I have created 2 raid1 devices and i wanted to
>> connect them with raid0. Everything is fine when i use command line,
>> but after reboot mdadm starts only raid1 devices.
>
>Are you using udev?
>
>IIRC, there was an issue with stacked md devices like yours. Your
>problem might be that the device node for the final raid0 is missing.
>
mdadm --auto=yes creates device files for you.
L.
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: raid1+raid0 mdadm
@ 2006-04-15 21:32 Herta Van den Eynde
0 siblings, 0 replies; 4+ messages in thread
From: Herta Van den Eynde @ 2006-04-15 21:32 UTC (permalink / raw)
To: linux-raid
Dariusz Malec wrote:
>
> I can't configure mdadm. I have created 2 raid1 devices and i
> wanted to connect them with raid0. Everything is fine when i use
> command line, but after reboot mdadm starts only raid1 devices.
Not sure if by "mdadm starts only raid1 devices", you're actually
referring to the output of "cat /proc/mdstat", or to the fact that the
devices won't mount properly at boottime.
If the latter: I used to have LABEL references in /etc/fstab, rather
than actual device names, and that proved impracticable for raid1+0 devices.
Suppose you have two raid1 devices, md0 and md1, with which you create
raid0 device md2. You then create an ext2/3 filesystem on md3.
If you dump the header of md2 (# dumpe2fs -h /dev/md2), you will find
the filesystem label you used when you created the filesystem. When you
dump the headers of md0 and md1, you will only see the label on one of
these devices (as is to be expected give that they are members of the
md3 *stripeset*).
When you mount using the label, chances are that it will try to mount
md0 rather than md2.
Changing the LABEL references to actual device names (e.g. /dev/md2)
solved the issue for me.
Kind regards,
Herta
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-04-15 21:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-21 17:27 raid1+raid0 mdadm Dariusz Malec
2006-03-21 18:00 ` Andre Noll
2006-03-25 18:26 ` Luca Berra
-- strict thread matches above, loose matches on Subject: below --
2006-04-15 21:32 Herta Van den Eynde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).