File: drbd.rules

package info (click to toggle)
drbd8 2%3A8.3.13-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,520 kB
  • sloc: ansic: 30,486; xml: 4,399; sh: 2,219; makefile: 741; perl: 587
file content (15 lines) | stat: -rw-r--r-- 669 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# This file contains the rules to create named DRBD devices.

# DO NOT WRAP THIS LINE
#
# old udev does not understand some of it,
# and would end up skipping only some lines, not the full rule.
# which can cause all sort of trouble with strange-named device nodes
# for completely unrelated devices,
# resulting in unusable network lookback, etc.
#
# in case this is "accidentally" installed on a system with old udev,
# having it as one single line avoids those problems.
#
# DO NOT WRAP THIS LINE
SUBSYSTEM=="block", KERNEL=="drbd*", IMPORT{program}="/sbin/drbdadm sh-udev minor-%m", NAME="$env{DEVICE}", SYMLINK="drbd/by-res/$env{RESOURCE} drbd/by-disk/$env{DISK}"