~ubuntu-branches/ubuntu/vivid/lvm2/vivid

« back to all changes in this revision

Viewing changes to doc/udev_assembly.txt

  • Committer: Package Import Robot
  • Author(s): Bastian Blank
  • Date: 2012-05-01 20:27:50 UTC
  • mto: (3.1.23 sid)
  • mto: This revision was merged to the branch mainline in revision 72.
  • Revision ID: package-import@ubuntu.com-20120501202750-gljjjtblowwq9mw8
Tags: upstream-2.02.95
ImportĀ upstreamĀ versionĀ 2.02.95

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
For LVM, the crucial piece of the puzzle is lvmetad, which allows us to build up
34
34
VGs from PVs as they appear, and at the same time collect information on what is
35
 
already available. A command, pvscan --lvmetad is expected to be used to
 
35
already available. A command, pvscan --cache is expected to be used to
36
36
implement udev rules. It is relatively easy to make this command print out a
37
37
list of VGs (and possibly LVs) that have been made available by adding any
38
38
particular device to the set of visible devices. In othe words, udev says "hey,
39
 
/dev/sdb just appeared", calls pvscan --lvmetad, which talks to lvmetad, which
 
39
/dev/sdb just appeared", calls pvscan --cache, which talks to lvmetad, which
40
40
says "cool, that makes vg0 complete". Pvscan takes this info and prints it out,
41
41
and the udev rule can then somehow decide whether anything needs to be done
42
42
about this "vg0". Presumably a table of devices that need to be activated