UbuntuWiki:UdevMdadm
文章出处: |
{{#if: | {{{2}}} | https://wiki.ubuntu.com/UdevMdadm }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/af | • {{#if: UbuntuWiki:UdevMdadm|Afrikaans| [[::UbuntuWiki:UdevMdadm/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/ar | • {{#if: UbuntuWiki:UdevMdadm|العربية| [[::UbuntuWiki:UdevMdadm/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/az | • {{#if: UbuntuWiki:UdevMdadm|azərbaycanca| [[::UbuntuWiki:UdevMdadm/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/bcc | • {{#if: UbuntuWiki:UdevMdadm|جهلسری بلوچی| [[::UbuntuWiki:UdevMdadm/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/bg | • {{#if: UbuntuWiki:UdevMdadm|български| [[::UbuntuWiki:UdevMdadm/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/br | • {{#if: UbuntuWiki:UdevMdadm|brezhoneg| [[::UbuntuWiki:UdevMdadm/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/ca | • {{#if: UbuntuWiki:UdevMdadm|català| [[::UbuntuWiki:UdevMdadm/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/cs | • {{#if: UbuntuWiki:UdevMdadm|čeština| [[::UbuntuWiki:UdevMdadm/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/de | • {{#if: UbuntuWiki:UdevMdadm|Deutsch| [[::UbuntuWiki:UdevMdadm/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/el | • {{#if: UbuntuWiki:UdevMdadm|Ελληνικά| [[::UbuntuWiki:UdevMdadm/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/es | • {{#if: UbuntuWiki:UdevMdadm|español| [[::UbuntuWiki:UdevMdadm/es|español]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/fa | • {{#if: UbuntuWiki:UdevMdadm|فارسی| [[::UbuntuWiki:UdevMdadm/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/fi | • {{#if: UbuntuWiki:UdevMdadm|suomi| [[::UbuntuWiki:UdevMdadm/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/fr | • {{#if: UbuntuWiki:UdevMdadm|français| [[::UbuntuWiki:UdevMdadm/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/gu | • {{#if: UbuntuWiki:UdevMdadm|ગુજરાતી| [[::UbuntuWiki:UdevMdadm/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/he | • {{#if: UbuntuWiki:UdevMdadm|עברית| [[::UbuntuWiki:UdevMdadm/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/hu | • {{#if: UbuntuWiki:UdevMdadm|magyar| [[::UbuntuWiki:UdevMdadm/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/id | • {{#if: UbuntuWiki:UdevMdadm|Bahasa Indonesia| [[::UbuntuWiki:UdevMdadm/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/it | • {{#if: UbuntuWiki:UdevMdadm|italiano| [[::UbuntuWiki:UdevMdadm/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/ja | • {{#if: UbuntuWiki:UdevMdadm|日本語| [[::UbuntuWiki:UdevMdadm/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/ko | • {{#if: UbuntuWiki:UdevMdadm|한국어| [[::UbuntuWiki:UdevMdadm/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/ksh | • {{#if: UbuntuWiki:UdevMdadm|Ripoarisch| [[::UbuntuWiki:UdevMdadm/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/mr | • {{#if: UbuntuWiki:UdevMdadm|मराठी| [[::UbuntuWiki:UdevMdadm/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/ms | • {{#if: UbuntuWiki:UdevMdadm|Bahasa Melayu| [[::UbuntuWiki:UdevMdadm/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/nl | • {{#if: UbuntuWiki:UdevMdadm|Nederlands| [[::UbuntuWiki:UdevMdadm/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/no | • {{#if: UbuntuWiki:UdevMdadm|norsk| [[::UbuntuWiki:UdevMdadm/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/oc | • {{#if: UbuntuWiki:UdevMdadm|occitan| [[::UbuntuWiki:UdevMdadm/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/pl | • {{#if: UbuntuWiki:UdevMdadm|polski| [[::UbuntuWiki:UdevMdadm/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/pt | • {{#if: UbuntuWiki:UdevMdadm|português| [[::UbuntuWiki:UdevMdadm/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/ro | • {{#if: UbuntuWiki:UdevMdadm|română| [[::UbuntuWiki:UdevMdadm/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/ru | • {{#if: UbuntuWiki:UdevMdadm|русский| [[::UbuntuWiki:UdevMdadm/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/si | • {{#if: UbuntuWiki:UdevMdadm|සිංහල| [[::UbuntuWiki:UdevMdadm/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/sq | • {{#if: UbuntuWiki:UdevMdadm|shqip| [[::UbuntuWiki:UdevMdadm/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/sr | • {{#if: UbuntuWiki:UdevMdadm|српски / srpski| [[::UbuntuWiki:UdevMdadm/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/sv | • {{#if: UbuntuWiki:UdevMdadm|svenska| [[::UbuntuWiki:UdevMdadm/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/th | • {{#if: UbuntuWiki:UdevMdadm|ไทย| [[::UbuntuWiki:UdevMdadm/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/tr | • {{#if: UbuntuWiki:UdevMdadm|Türkçe| [[::UbuntuWiki:UdevMdadm/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/vi | • {{#if: UbuntuWiki:UdevMdadm|Tiếng Việt| [[::UbuntuWiki:UdevMdadm/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/yue | • {{#if: UbuntuWiki:UdevMdadm|粵語| [[::UbuntuWiki:UdevMdadm/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/zh | • {{#if: UbuntuWiki:UdevMdadm|中文| [[::UbuntuWiki:UdevMdadm/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/zh-hans | • {{#if: UbuntuWiki:UdevMdadm|中文(简体)| [[::UbuntuWiki:UdevMdadm/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UdevMdadm | UbuntuWiki:UdevMdadm | {{#if: | :}}UbuntuWiki:UdevMdadm}}/zh-hant | • {{#if: UbuntuWiki:UdevMdadm|中文(繁體)| [[::UbuntuWiki:UdevMdadm/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuWiki:UdevMdadm|:UbuntuWiki:UdevMdadm|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :UbuntuWiki:UdevMdadm/zh | | {{#ifexist: UbuntuWiki:UdevMdadm/zh | | {{#ifeq: {{#titleparts:UbuntuWiki:UdevMdadm|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:UbuntuWiki:UdevMdadm|1|-1|}} | zh | | }}
Please check the status of this specification in Launchpad before editing it. If it is Approved, contact the Assignee or another knowledgeable person before making changes.
- Launchpad entry: udev-mdadm
- Packages affected: udev, mdadm
Summary
This specification details how to make udev and mdadm play nicely together, in particular ensuring that udev events are issued for mdadm volumes and that UUIDs are correctly exported and do not conflict.
Rationale
mdadm is used by system administrators to perform RAID operations such as mirroring or striping without hardware support. In order to support event-based mounting of these filesystems, we need reliable events from the block subsystem and no race conditions.
Use cases
- Jerry is a system administrator who uses software raid, via mdadm, for his root filesystem. He would like this to continue to be supported.
Scope
The scope of this specification is limited to the interaction between udev and mdadm; other specifications address similar concerns with device-mapper, LVM, etc.
Design
Most of the work for this to be supported has been done in Debian, ensuring that mdadm is run on udev events for the md block devices.
A bug in edgy that exposed the UUID of the component blocks of the RAID collection has been already fixed for feisty.
The UUID of the RAID itself can be exposed, as we receive udev events for when the md device is created or changed.
Implementation
- Merge mdadm from Debian.
- Upload udev 103.
Implementation update
The above comments turn out not to be true any more; the udev mdadm support in Debian appears to have been reverted. (-iwj 6.2.2007)
random notes:
mdadm -A mdadm -C -n2 -lstripe -amd /dev/md/tstripe /dev/gusb/vmd0 /dev/gusb/vmd1