* [gentoo-user] DMRAID and complex setups
@ 2008-06-28 12:02 Florian Philipp
2008-06-28 13:28 ` [gentoo-user] MDRAID " Florian Philipp
2008-06-28 19:24 ` [gentoo-user] DMRAID " Daniel Iliev
0 siblings, 2 replies; 9+ messages in thread
From: Florian Philipp @ 2008-06-28 12:02 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 409 bytes --]
Hi list!
I a PC of mine I've got two 160GB and a 320GB disk. I'd like to create a
JBOD (a.k.a. Concatenation) of the two 160GB disks and create a RAID1
out of that JBOD and the 320GB disk. Can dmraid / mdadm handle such
setups? Is there anything I have to take care of? Would a mixed setup
of fake-RAID (NVidia MoBo-controller) and Linux softRAID fare better?
Thanks in advance!
Florian Philipp
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] MDRAID and complex setups
2008-06-28 12:02 [gentoo-user] DMRAID and complex setups Florian Philipp
@ 2008-06-28 13:28 ` Florian Philipp
2008-06-28 19:24 ` [gentoo-user] DMRAID " Daniel Iliev
1 sibling, 0 replies; 9+ messages in thread
From: Florian Philipp @ 2008-06-28 13:28 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 587 bytes --]
On Sat, 28 Jun 2008 14:02:23 +0200
Florian Philipp <lists@f_philipp.fastmail.net> wrote:
> Hi list!
>
> I a PC of mine I've got two 160GB and a 320GB disk. I'd like to
> create a JBOD (a.k.a. Concatenation) of the two 160GB disks and
> create a RAID1 out of that JBOD and the 320GB disk. Can dmraid /
> mdadm handle such setups? Is there anything I have to take care of?
> Would a mixed setup of fake-RAID (NVidia MoBo-controller) and Linux
> softRAID fare better?
>
> Thanks in advance!
>
> Florian Philipp
Argh, of course I mean MD (SoftRAID), not DM (FakeRAID).
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] DMRAID and complex setups
2008-06-28 12:02 [gentoo-user] DMRAID and complex setups Florian Philipp
2008-06-28 13:28 ` [gentoo-user] MDRAID " Florian Philipp
@ 2008-06-28 19:24 ` Daniel Iliev
2008-07-05 15:28 ` Florian Philipp
1 sibling, 1 reply; 9+ messages in thread
From: Daniel Iliev @ 2008-06-28 19:24 UTC (permalink / raw
To: gentoo-user
On Sat, 28 Jun 2008 14:02:23 +0200
Florian Philipp <lists@f_philipp.fastmail.net> wrote:
> Hi list!
>
> I a PC of mine I've got two 160GB and a 320GB disk. I'd like to
> create a JBOD (a.k.a. Concatenation) of the two 160GB disks and
> create a RAID1 out of that JBOD and the 320GB disk. Can dmraid /
> mdadm handle such setups? Is there anything I have to take care of?
> Would a mixed setup of fake-RAID (NVidia MoBo-controller) and Linux
> softRAID fare better?
>
> Thanks in advance!
>
> Florian Philipp
Hi,
Never tried this myself but I think you should have no problems with
mdadm. AFAIK JBOD is called "linear mode" in kernel and mdadm terms.
Given that you have compiled the necessary modules you'll have to do
something like:
mdadm --create /dev/md0 --level=linear --raid-devices=2 /dev/sd{a,b}1
mdadm --create /dev/md0 --level=mirror --raid-devices=2 /dev/{md0,sdc}
HTH
--
Best regards,
Daniel
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] DMRAID and complex setups
2008-06-28 19:24 ` [gentoo-user] DMRAID " Daniel Iliev
@ 2008-07-05 15:28 ` Florian Philipp
2008-07-06 9:03 ` [gentoo-user] " Francesco Talamona
0 siblings, 1 reply; 9+ messages in thread
From: Florian Philipp @ 2008-07-05 15:28 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2022 bytes --]
On Sat, 28 Jun 2008 22:24:46 +0300
Daniel Iliev <daniel.iliev@gmail.com> wrote:
> On Sat, 28 Jun 2008 14:02:23 +0200
> Florian Philipp <lists@f_philipp.fastmail.net> wrote:
>
> > Hi list!
> >
> > I a PC of mine I've got two 160GB and a 320GB disk. I'd like to
> > create a JBOD (a.k.a. Concatenation) of the two 160GB disks and
> > create a RAID1 out of that JBOD and the 320GB disk. Can dmraid /
> > mdadm handle such setups? Is there anything I have to take care of?
> > Would a mixed setup of fake-RAID (NVidia MoBo-controller) and Linux
> > softRAID fare better?
> >
> > Thanks in advance!
> >
> > Florian Philipp
>
>
> Hi,
>
> Never tried this myself but I think you should have no problems with
> mdadm. AFAIK JBOD is called "linear mode" in kernel and mdadm terms.
> Given that you have compiled the necessary modules you'll have to do
> something like:
>
> mdadm --create /dev/md0 --level=linear --raid-devices=2 /dev/sd{a,b}1
> mdadm --create /dev/md0 --level=mirror --raid-devices=2 /dev/{md0,sdc}
>
>
> HTH
>
Just a small update: No, it does not work. At bootup the RAID1 is
created but with only the single disk.
I'm now thinking about my options:
a) Never reboot ;)
b) Put "mdadm -I /dev/md0" into /etc/conf.d/local.start
c) Use LVM for mirroring
Neither b nor c are very pleasant:
b) gives me 37 minutes with high disk activity and no working RAID;
c) doesn't allow online resizing (AFAIK) but there are workarounds
(degrading to linear -> resizing -> upgrading to mirror; unpleasant,
but working).
At least there is some hope that the issue with c) will be solved in a
future version.
However, there might be other options:
- Could I disable the kernel auto-detection and instead add a custom
init-script prior to checkfs and localmount?
- Baselayout2 uses an init-script for mdraid. Does that mean it doesn't
rely on kernel auto-detection? If so, could it work with baselayout2 or
at least, would it be easier to get it working?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-user] Re: DMRAID and complex setups
2008-07-05 15:28 ` Florian Philipp
@ 2008-07-06 9:03 ` Francesco Talamona
2008-07-06 9:32 ` Florian Philipp
0 siblings, 1 reply; 9+ messages in thread
From: Francesco Talamona @ 2008-07-06 9:03 UTC (permalink / raw
To: gentoo-user
On Saturday 05 July 2008, Florian Philipp wrote:
> - Could I disable the kernel auto-detection and instead add a custom
> init-script prior to checkfs and localmount?
It's impractical, check carefully all partitions with
mdadm -E <partition>
If it's not automatically assembled but you can do it manually, it means
something is fooling mdadm.
Try also to comment ARRAY lines in /etc/mdadm.conf.
HTH
Francesco
--
Linux Version 2.6.25-gentoo-r6, Compiled #1 PREEMPT Sat Jul 5 18:06:28
CEST 2008
One 2.2GHz AMD Athlon 64 Processor, 2GB RAM, 4408.92 Bogomips Total
aemaeth
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-user] Re: DMRAID and complex setups
2008-07-06 9:03 ` [gentoo-user] " Francesco Talamona
@ 2008-07-06 9:32 ` Florian Philipp
2008-07-06 10:58 ` Florian Philipp
2008-07-06 11:02 ` Daniel Iliev
0 siblings, 2 replies; 9+ messages in thread
From: Florian Philipp @ 2008-07-06 9:32 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1193 bytes --]
On Sun, 6 Jul 2008 11:03:45 +0200
Francesco Talamona <ti.liame@email.it> wrote:
> On Saturday 05 July 2008, Florian Philipp wrote:
> > - Could I disable the kernel auto-detection and instead add a custom
> > init-script prior to checkfs and localmount?
>
> It's impractical, check carefully all partitions with
>
> mdadm -E <partition>
>
> If it's not automatically assembled but you can do it manually, it
> means something is fooling mdadm.
>
> Try also to comment ARRAY lines in /etc/mdadm.conf.
>
> HTH
> Francesco
>
What actually happens is that the kernel starts md1 (consisting of md0
and hdd7) BEFORE md0 (hda and hdb) is created. The most likely cause is
that the kernel starts its autodetection on the disk where /
(or /boot?) lie.
mdadm.conf has the following lines:
DEVICE /dev/hda1 /dev/hdb1
DEVICE /dev/md0 /dev/hdd7
ARRAY /dev/md0 devices=/dev/hda1,/dev/hdb1
ARRAY /dev/md1 devices=/dev/md0,/dev/hdd7
Since I can add kernel parameters for starting raids
(see /usr/src/linux/Documentation/md.txt) I'm thinking about telling
the kernel explicitly to start md0 in the hope that this happens
before autodetection.
Stay tuned ;)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Re: DMRAID and complex setups
2008-07-06 9:32 ` Florian Philipp
@ 2008-07-06 10:58 ` Florian Philipp
2008-07-06 11:02 ` Daniel Iliev
1 sibling, 0 replies; 9+ messages in thread
From: Florian Philipp @ 2008-07-06 10:58 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1532 bytes --]
On Sun, 6 Jul 2008 11:32:36 +0200
Florian Philipp <lists@f_philipp.fastmail.net> wrote:
> On Sun, 6 Jul 2008 11:03:45 +0200
> Francesco Talamona <ti.liame@email.it> wrote:
>
> > On Saturday 05 July 2008, Florian Philipp wrote:
> > > - Could I disable the kernel auto-detection and instead add a
> > > custom init-script prior to checkfs and localmount?
> >
> > It's impractical, check carefully all partitions with
> >
> > mdadm -E <partition>
> >
> > If it's not automatically assembled but you can do it manually, it
> > means something is fooling mdadm.
> >
> > Try also to comment ARRAY lines in /etc/mdadm.conf.
> >
> > HTH
> > Francesco
> >
> What actually happens is that the kernel starts md1 (consisting of
> md0 and hdd7) BEFORE md0 (hda and hdb) is created. The most likely
> cause is that the kernel starts its autodetection on the disk where /
> (or /boot?) lie.
>
> mdadm.conf has the following lines:
>
> DEVICE /dev/hda1 /dev/hdb1
> DEVICE /dev/md0 /dev/hdd7
>
> ARRAY /dev/md0 devices=/dev/hda1,/dev/hdb1
> ARRAY /dev/md1 devices=/dev/md0,/dev/hdd7
>
> Since I can add kernel parameters for starting raids
> (see /usr/src/linux/Documentation/md.txt) I'm thinking about telling
> the kernel explicitly to start md0 in the hope that this happens
> before autodetection.
>
> Stay tuned ;)
>
Eureka!
The kernel boot-parameter
raid=noautodetect md=0,/dev/hda1,/dev/hdb1 md=1,/dev/hdd7,/dev/md0
seem to work. Now the raids are built in the right order.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Re: DMRAID and complex setups
2008-07-06 9:32 ` Florian Philipp
2008-07-06 10:58 ` Florian Philipp
@ 2008-07-06 11:02 ` Daniel Iliev
2008-07-06 11:22 ` Florian Philipp
1 sibling, 1 reply; 9+ messages in thread
From: Daniel Iliev @ 2008-07-06 11:02 UTC (permalink / raw
To: gentoo-user
On Sun, 6 Jul 2008 11:32:36 +0200
Florian Philipp <lists@f_philipp.fastmail.net> wrote:
> On Sun, 6 Jul 2008 11:03:45 +0200
> Francesco Talamona <ti.liame@email.it> wrote:
>
> > On Saturday 05 July 2008, Florian Philipp wrote:
> > > - Could I disable the kernel auto-detection and instead add a
> > > custom init-script prior to checkfs and localmount?
> >
> > It's impractical, check carefully all partitions with
> >
> > mdadm -E <partition>
> >
> > If it's not automatically assembled but you can do it manually, it
> > means something is fooling mdadm.
> >
> > Try also to comment ARRAY lines in /etc/mdadm.conf.
> >
> > HTH
> > Francesco
> >
> What actually happens is that the kernel starts md1 (consisting of
> md0 and hdd7) BEFORE md0 (hda and hdb) is created. The most likely
> cause is that the kernel starts its autodetection on the disk where /
> (or /boot?) lie.
>
> mdadm.conf has the following lines:
>
> DEVICE /dev/hda1 /dev/hdb1
> DEVICE /dev/md0 /dev/hdd7
>
> ARRAY /dev/md0 devices=/dev/hda1,/dev/hdb1
> ARRAY /dev/md1 devices=/dev/md0,/dev/hdd7
>
> Since I can add kernel parameters for starting raids
> (see /usr/src/linux/Documentation/md.txt) I'm thinking about telling
> the kernel explicitly to start md0 in the hope that this happens
> before autodetection.
>
> Stay tuned ;)
>
You could also try something like this in local.start:
mdadm --stop /dev/md0
mdadm --stop /dev/md1
mdadm -A /dev/md0 --uuid <the UUID of md0> -c partitions
mdadm -A /dev/md1 --uuid <the UUID of md1> -c partitions
--
Best regards,
Daniel
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Re: DMRAID and complex setups
2008-07-06 11:02 ` Daniel Iliev
@ 2008-07-06 11:22 ` Florian Philipp
0 siblings, 0 replies; 9+ messages in thread
From: Florian Philipp @ 2008-07-06 11:22 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2011 bytes --]
On Sun, 6 Jul 2008 14:02:14 +0300
Daniel Iliev <daniel.iliev@gmail.com> wrote:
> On Sun, 6 Jul 2008 11:32:36 +0200
> Florian Philipp <lists@f_philipp.fastmail.net> wrote:
>
> > On Sun, 6 Jul 2008 11:03:45 +0200
> > Francesco Talamona <ti.liame@email.it> wrote:
> >
> > > On Saturday 05 July 2008, Florian Philipp wrote:
> > > > - Could I disable the kernel auto-detection and instead add a
> > > > custom init-script prior to checkfs and localmount?
> > >
> > > It's impractical, check carefully all partitions with
> > >
> > > mdadm -E <partition>
> > >
> > > If it's not automatically assembled but you can do it manually, it
> > > means something is fooling mdadm.
> > >
> > > Try also to comment ARRAY lines in /etc/mdadm.conf.
> > >
> > > HTH
> > > Francesco
> > >
> > What actually happens is that the kernel starts md1 (consisting of
> > md0 and hdd7) BEFORE md0 (hda and hdb) is created. The most likely
> > cause is that the kernel starts its autodetection on the disk
> > where / (or /boot?) lie.
> >
> > mdadm.conf has the following lines:
> >
> > DEVICE /dev/hda1 /dev/hdb1
> > DEVICE /dev/md0 /dev/hdd7
> >
> > ARRAY /dev/md0 devices=/dev/hda1,/dev/hdb1
> > ARRAY /dev/md1 devices=/dev/md0,/dev/hdd7
> >
> > Since I can add kernel parameters for starting raids
> > (see /usr/src/linux/Documentation/md.txt) I'm thinking about telling
> > the kernel explicitly to start md0 in the hope that this happens
> > before autodetection.
> >
> > Stay tuned ;)
> >
>
> You could also try something like this in local.start:
>
>
> mdadm --stop /dev/md0
> mdadm --stop /dev/md1
>
> mdadm -A /dev/md0 --uuid <the UUID of md0> -c partitions
> mdadm -A /dev/md1 --uuid <the UUID of md1> -c partitions
>
>
It would not have been that easy because at that point, there would
be an active lvm volume group on that raid and because the raid would
already have been assembled it would need a resync after the next
complete assembly.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-07-06 11:24 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-28 12:02 [gentoo-user] DMRAID and complex setups Florian Philipp
2008-06-28 13:28 ` [gentoo-user] MDRAID " Florian Philipp
2008-06-28 19:24 ` [gentoo-user] DMRAID " Daniel Iliev
2008-07-05 15:28 ` Florian Philipp
2008-07-06 9:03 ` [gentoo-user] " Francesco Talamona
2008-07-06 9:32 ` Florian Philipp
2008-07-06 10:58 ` Florian Philipp
2008-07-06 11:02 ` Daniel Iliev
2008-07-06 11:22 ` Florian Philipp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox