[RFC/CFT] Trusty work for dmraid

Stefan Bader stefan.bader at canonical.com
Tue Jan 21 14:59:58 UTC 2014


On 21.01.2014 15:29, Phillip Susi wrote:
> On 1/21/2014 3:37 AM, Stefan Bader wrote:
>>> What about making sure that dmraid *isn't* used to activate the
>>> array?
> 
>> That is done by the modified dmraid source. It has all isw support
>> removed. The above is just needed to make the array appear on boot
>> using mdadm. Without it you have to manually assemble it.
> 
> I'm not sure it needs removed from the actual utility, but the udev
> rules certainly need modified so that they don't try to run
> dmraid-activate on isw or ddf any more.

The udev rule for dmraid does not key on specific raid types but on generic raid
usage:

SUBSYSTEM=="block", ACTION=="add", ENV{ID_TYPE}=="disk",
ENV{ID_FS_USAGE}=="raid", KERNEL=="hd[a-z]|sd[a-z]", \
        RUN+="/sbin/dmraid-activate %k"
ENV{DM_STATE}=="ACTIVE", ENV{DM_UUID}=="DMRAID-*", \
        RUN+="/sbin/kpartx -a /dev/$kernel"

Maybe those could get replaced by individual types but removing support
completely seemed "simpler" and guaranteed to succeeed.

> 
> 
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20140121/eb58c12e/attachment.pgp>


More information about the ubuntu-devel mailing list