Mark-Willem Jansen | 19 Jul 2012 16:30
Picon
Favicon
Gravatar

RE: Picking up development of dmraid

Hi Bryn,

Thank for the comments. The complete picture is slowly evolving.

> > dmraid. So it would be a good idea to remove the partitioning
> > support from dmraid. This will mean the package maintainer will
> > need to make dmraid dependent on kpartx for it to work.
>
> It already does in most (all?) distributions that ship it.

Probably Debian is legging behind here, as dmraid is unmaintained AFAIK.

> > One remark on this: I found that on Debian to make kpartx work
> > with dmraid during boot, one needs to make some changes to the
> > multipath-tools packages.
>
> What were the changes? The kpartx command is part of multipath-tools
> and although it's common to have it in a separate sub-package (all
> current Red Hat and Fedora distros do this) they are part of the same
> project upstream.

On Debain there is a package called multipath-tools-boot, which will add multipath, kpartx, and dmsetup to the initramfs. But I did not liked what multipath was doing to the /dev/mapper directory. So I mimicked ubuntu and made a separate package kpartx-boot. So when I come to think of it, maybe it worked out of the debian-box, apart from some warnings during boot.

> > On a side note: Why does mdadm support MBR and GPT?
>
> Not sure what you're asking here? The kernel MD driver creates
> partitionable devices so you can use any of the label formats that are
> enabled in the kernel you're running (although really, MBR and GPT are
> the only ones that make sense for most systems today).

I do not know the finer detail of mdadm, yet. But I saw super-mbr.c and super-gpt.c and and draw the conclusion, taken how dmraid handles mbr, that these were codes to parse mbt and gpt partition tables.

> I think adding new format handlers to MD is a much better idea; the
> dominant formats backed by major OEMs are already using it so if
> there's interest in the less commonly used formats I think they would
> see much better maintenance and continued development in an active
> project like mdadm than they would in a revived dmraid.

So it would be time that someone(probably me) starts adding the Promise formats used by the AMD chip-sets.

> > Just one last question I never really got an answer to. Can one
> > use mdadm on a dual boot system(MS and Linux) were the RAID
> > partitions are shared? In other words will mdadm leave the metadata
> > on the disks unchanged or in a state the the MS drivers can still
> > recognize the RAID.
>
> Assuming that MD supports the format handler you need: yes.

That is nice to hear.

> I think the time would be better spent learning or contributing to MD
> and mdadm development and adding support for other format handlers
> that have users wanting native Linux support.

Then it is time for me to start reading into mdadm.

Kind regards,

Mark-Willem
_______________________________________________
Ataraid-list mailing list
Ataraid-list <at> redhat.com
https://www.redhat.com/mailman/listinfo/ataraid-list
Bryn M. Reeves | 19 Jul 2012 17:58
Picon
Favicon
Gravatar

Re: Picking up development of dmraid


On 07/19/2012 03:30 PM, Mark-Willem Jansen wrote:
> I do not know the finer detail of mdadm, yet. But I saw
> super-mbr.c and super-gpt.c and and draw the conclusion, taken how
> dmraid handles mbr, that these were codes to parse mbt and gpt
> partition tables.

Ah, gotcha - I think this code was introduced a few years after the
external metadata support was added (not sure though, would have to
look in git) and is handled in the same manner as the DDF, Intel and
native MD metadata formats.

Unlike those formats though you cannot assemble arrays from MBR or gpt
metadata - they're only used when adding new bare devices to arrays so
that the member partitions can be used.

>> I think adding new format handlers to MD is a much better idea; 
>> the dominant formats backed by major OEMs are already using it
>> so if there's interest in the less commonly used formats I think
>> they would see much better maintenance and continued development
>> in an active project like mdadm than they would in a revived
>> dmraid.
> 
> So it would be time that someone(probably me) starts adding the 
> Promise formats used by the AMD chip-sets.

Cool! Seems like a good direction. I'd be interested in having a look
at this too.

Regards,
Bryn.
Mark-Willem Jansen | 19 Jul 2012 21:19
Picon
Favicon
Gravatar

RE: Picking up development of dmraid

Hi Ryan,


You will have to wait a while, I first need to learn more about the interior of mdadm.


I will start with reading the intel implementation.



But if you can point me to other information besides source-codes, that would be great.


Greetings,


Mark-Willem

> Date: Thu, 19 Jul 2012 16:58:35 +0100
> From: bmr <at> redhat.com
> To: ataraid-list <at> redhat.com
> CC: markwillem <at> hotmail.com
> Subject: Re: Picking up development of dmraid
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 07/19/2012 03:30 PM, Mark-Willem Jansen wrote:
> > I do not know the finer detail of mdadm, yet. But I saw
> > super-mbr.c and super-gpt.c and and draw the conclusion, taken how
> > dmraid handles mbr, that these were codes to parse mbt and gpt
> > partition tables.
>
> Ah, gotcha - I think this code was introduced a few years after the
> external metadata support was added (not sure though, would have to
> look in git) and is handled in the same manner as the DDF, Intel and
> native MD metadata formats.
>
> Unlike those formats though you cannot assemble arrays from MBR or gpt
> metadata - they're only used when adding new bare devices to arrays so
> that the member partitions can be used.
>
> >> I think adding new format handlers to MD is a much better idea;
> >> the dominant formats backed by major OEMs are already using it
> >> so if there's interest in the less commonly used formats I think
> >> they would see much better maintenance and continued development
> >> in an active project like mdadm than they would in a revived
> >> dmraid.
> >
> > So it would be time that someone(probably me) starts adding the
> > Promise formats used by the AMD chip-sets.
>
> Cool! Seems like a good direction. I'd be interested in having a look
> at this too.
>
> Regards,
> Bryn.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAlAILqoACgkQ6YSQoMYUY967mgCg1R+u1ROnHe1gEmD56gPVA4Ot
> 3f8AoKtc7IKv6Sct5RIj16ovqa+rqpO5
> =qyIZ
> -----END PGP SIGNATURE-----
_______________________________________________
Ataraid-list mailing list
Ataraid-list <at> redhat.com
https://www.redhat.com/mailman/listinfo/ataraid-list

Gmane