UbuntuWiki:UdevMdadm

来自Ubuntu中文
Oneleaf留言 | 贡献2007年5月15日 (二) 05:05的版本 (New page: {{From|https://wiki.ubuntu.com/UdevMdadm}} {{Languages|UbuntuWiki:UdevMdadm}} ''Please check the status of this specification in Launchpad before editing it. If it is Approved, contact t...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航跳到搜索

{{#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