1 |
robbat2 08/02/07 02:01:50 |
2 |
|
3 |
Added: lvm.conf-2.02.33.patch |
4 |
Log: |
5 |
Version bump, related to bug #207612. |
6 |
(Portage version: 2.1.4.1) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 sys-fs/lvm2/files/lvm.conf-2.02.33.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/files/lvm.conf-2.02.33.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/files/lvm.conf-2.02.33.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: lvm.conf-2.02.33.patch |
15 |
=================================================================== |
16 |
diff -Nuar --exclude '*.rej' --exclude '*.orig' /dev/shm/portage/sys-fs/lvm2-2.02.33/work/LVM2.2.02.33.orig/doc/example.conf /dev/shm/portage/sys-fs/lvm2-2.02.33/work/LVM2.2.02.33/doc/example.conf |
17 |
--- /dev/shm/portage/sys-fs/lvm2-2.02.33/work/LVM2.2.02.33.orig/doc/example.conf 2008-01-09 07:32:19.000000000 -0800 |
18 |
+++ /dev/shm/portage/sys-fs/lvm2-2.02.33/work/LVM2.2.02.33/doc/example.conf 2008-02-06 17:39:20.439958042 -0800 |
19 |
@@ -49,7 +49,9 @@ |
20 |
|
21 |
|
22 |
# By default we accept every block device: |
23 |
- filter = [ "a/.*/" ] |
24 |
+ # Gentoo: we exclude /dev/nbd by default, because it makes a lot of kernel |
25 |
+ # noise when you probed while not available. |
26 |
+ filter = [ "r|/dev/nbd.*|", "a/.*/" ] |
27 |
|
28 |
# Exclude the cdrom drive |
29 |
# filter = [ "r|/dev/cdrom|" ] |
30 |
@@ -85,7 +87,7 @@ |
31 |
# If sysfs is mounted (2.6 kernels) restrict device scanning to |
32 |
# the block devices it believes are valid. |
33 |
# 1 enables; 0 disables. |
34 |
- sysfs_scan = 1 |
35 |
+ sysfs_scan = 1 |
36 |
|
37 |
# By default, LVM2 will ignore devices used as components of |
38 |
# software RAID (md) devices by looking for md superblocks. |
39 |
@@ -218,12 +220,14 @@ |
40 |
# e.g. vgscan.lvm1 and they will stop working after you start using |
41 |
# the new lvm2 on-disk metadata format. |
42 |
# The default value is set when the tools are built. |
43 |
- # fallback_to_lvm1 = 0 |
44 |
+ # Gentoo: the LVM tools are a seperate package. |
45 |
+ fallback_to_lvm1 = 0 |
46 |
|
47 |
# The default metadata format that commands should use - "lvm1" or "lvm2". |
48 |
# The command line override is -M1 or -M2. |
49 |
# Defaults to "lvm1" if compiled in, else "lvm2". |
50 |
- # format = "lvm1" |
51 |
+ # Gentoo: default to LVM2 format |
52 |
+ format = "lvm2" |
53 |
|
54 |
# Location of proc filesystem |
55 |
proc = "/proc" |
56 |
@@ -350,12 +354,12 @@ |
57 |
|
58 |
# Metadata settings |
59 |
# |
60 |
-# metadata { |
61 |
+metadata { |
62 |
# Default number of copies of metadata to hold on each PV. 0, 1 or 2. |
63 |
# You might want to override it from the command line with 0 |
64 |
# when running pvcreate on new PVs which are to be added to large VGs. |
65 |
- |
66 |
- # pvmetadatacopies = 1 |
67 |
+ # Gentoo: enabled for data safety |
68 |
+ pvmetadatacopies = 2 |
69 |
|
70 |
# Approximate default size of on-disk metadata areas in sectors. |
71 |
# You should increase this if you have large volume groups or |
72 |
@@ -377,11 +381,11 @@ |
73 |
# the supplied toolset to make changes (e.g. vgcfgrestore). |
74 |
|
75 |
# dirs = [ "/etc/lvm/metadata", "/mnt/disk2/lvm/metadata2" ] |
76 |
-#} |
77 |
+} |
78 |
|
79 |
# Event daemon |
80 |
-# |
81 |
-# dmeventd { |
82 |
+# Gentoo: uncommented, since we provide the dmeventd init script |
83 |
+dmeventd { |
84 |
# mirror_library is the library used when monitoring a mirror device. |
85 |
# |
86 |
# "libdevmapper-event-lvm2mirror.so" attempts to recover from |
87 |
@@ -389,7 +393,7 @@ |
88 |
# reconfigures a mirror as necessary. If no mirror library is |
89 |
# provided, mirrors are not monitored through dmeventd. |
90 |
|
91 |
- # mirror_library = "libdevmapper-event-lvm2mirror.so" |
92 |
+ mirror_library = "libdevmapper-event-lvm2mirror.so" |
93 |
|
94 |
# snapshot_library is the library used when monitoring a snapshot device. |
95 |
# |
96 |
@@ -398,6 +402,6 @@ |
97 |
# snapshot exceedes 80%. The warning is repeated when 85%, 90% and |
98 |
# 95% of the snapshot are filled. |
99 |
|
100 |
- # snapshot_library = "libdevmapper-event-lvm2snapshot.so" |
101 |
-#} |
102 |
+ snapshot_library = "libdevmapper-event-lvm2snapshot.so" |
103 |
+} |
104 |
|
105 |
|
106 |
|
107 |
|
108 |
-- |
109 |
gentoo-commits@l.g.o mailing list |