On Sat, 28 Jun 2008 22:24:46 +0300 Daniel Iliev <[EMAIL PROTECTED]> wrote:
> On Sat, 28 Jun 2008 14:02:23 +0200
> Florian Philipp <[EMAIL PROTECTED]> 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?
signature.asc
Description: PGP signature

