Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 182960 - sys-fs/mdadm: Adding udev-rules to create symlinks /dev/disk/by-*/* for RAID-device and filesystem on it
Summary: sys-fs/mdadm: Adding udev-rules to create symlinks /dev/disk/by-*/* for RAID-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-23 08:56 UTC by Matthias Schwarzott
Modified: 2007-10-03 09:17 UTC (History)
0 users

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


Attachments
64-md-raid.rules (64-md-raid.rules,738 bytes, text/plain)
2007-06-23 08:56 UTC, Matthias Schwarzott
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Schwarzott gentoo-dev 2007-06-23 08:56:03 UTC
Please add the attached udev rules file to mdadm-ebuild. It uses the new --export option so will only work with versions starting ~2.6.2. 
suse calls the file 64-md-raid.rules (and so it is called in udev tarball).

It will generate these symlinks in /dev:

/dev/disk/by-id/md-name-NAME
/dev/disk/by-id/md-uuid-UUID
(if NAME/UUID of raid device are set)

and:
/dev/disk/by-uuid/UUID
/dev/disk/by-label/LABEL
(if filesystem on raid device has UUID/LABEL set).
Comment 1 Matthias Schwarzott gentoo-dev 2007-06-23 08:56:37 UTC
Created attachment 122875 [details]
64-md-raid.rules
Comment 2 SpanKY gentoo-dev 2007-06-23 15:20:38 UTC
shouldnt we get this merged into mdadm mainline ?
http://cgi.cse.unsw.edu.au/~neilb/mdadm
Comment 3 Matthias Schwarzott gentoo-dev 2007-06-27 10:20:59 UTC
+1

udev-tarball contains this file, but I think merging it into mdadm sources could be good.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-10-03 09:17:51 UTC
going into mdadm-2.6.3-r2.