Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 196268 - udev rules for md raid devices are missing, no uuid for md
Summary: udev rules for md raid devices are missing, no uuid for md
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-18 09:48 UTC by Laurent MONIN
Modified: 2008-08-20 07:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent MONIN 2007-10-18 09:48:40 UTC
There is no /dev/disk/* links for mdraid devices.
Some programs may need them.
Especially mkinitramfs tool (http://tools.assembla.com/mkinitramfs/).
They provide some udev rules relying on mdadm >= 2.6.1 at http://tools.assembla.com/mkinitramfs/wiki/MDrules

Here is a copy:

#> cat /etc/udev/rules.d/64-md-raid.rules                                                                                                               
 # md links hook into "change" events, when the array becomes available                                                                                  
                                                                                                                                                         
 SUBSYSTEM!="block", GOTO="md_end"                                                                                                                       
 KERNEL!="md[0-9]*", GOTO="md_end"                                                                                                                       
 ACTION!="add|change", GOTO="md_end"                                                                                                                     
                                                                                                                                                         
 ATTR{md/array_state}=="|clear|inactive", GOTO="md_end"                                                                                                  
                                                                                                                                                         
 IMPORT{program}="/sbin/mdadm -D --export $tempnode"                                                                                                     
 ENV{MD_NAME}=="?*", SYMLINK+="disk/by-id/md-name-$env{MD_NAME}"                                                                                         
 ENV{MD_UUID}=="?*", SYMLINK+="disk/by-id/md-uuid-$env{MD_UUID}"                                                                                         
                                                                                                                                                         
 IMPORT{program}="vol_id --export $tempnode"                                                                                                             
 OPTIONS="link_priority=100"                                                                                                                             
 ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"                                    
 ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"                                        
                                                                                                                                                         
 LABEL="md_end"                                           



Reproducible: Always

Steps to Reproduce:
1.Install mkinitramfs on mdraid system
2.Try to use /dev/disk/uuid
3.No mdraid devices corresponding entries

Actual Results:  
One needs to add the rules to /etc/udev/rules.d/, even if mdadm >= 2.6.1 is installed.

Expected Results:  
Installing mdadm should install udev rules 

See http://tools.assembla.com/mkinitramfs/
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-10-18 12:14:12 UTC
Please CHECK before filing bugs.

# equery f =sys-fs/mdadm-2.6.3-r4 |grep udev
/etc/udev
/etc/udev/rules.d
/etc/udev/rules.d/64-md-raid.rules
(and yes, it's identical to the file you pasted in here)
Comment 2 Laurent MONIN 2007-10-19 07:45:06 UTC
It was not a report concerning unstable (masked) packages.

Current unmasked ("stable") is mdadm-2.6.2 and the ebuild doesn't provide such udev rules while this version of mdadm permits it.


 
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-10-19 10:48:27 UTC
Your original filing makes no such note.
We know that they aren't in the stable tree yet, they will get there once they have had sufficient time in ~arch (which is probably soon).
Comment 4 Laurent MONIN 2007-10-19 11:33:45 UTC
Ok, no problem ;)

BTW, mdadm 2.6.4 is out.