lvm2-2.02.108-example.conf.in.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. Maintainer note: Forward ported without editing from lvm2-2.02.99-example.conf.in.patch to apply cleanly.
  2. --- conf/example.conf.in
  3. +++ conf/example.conf.in
  4. @@ -105,6 +105,10 @@
  5. # By default we accept every block device:
  6. # filter = [ "a/.*/" ]
  7. + # Gentoo: we exclude /dev/nbd by default, because it makes a lot of kernel
  8. + # noise when you probed while not available.
  9. + filter = [ "r|/dev/nbd.*|", "a/.*/" ]
  10. +
  11. # Exclude the cdrom drive
  12. # filter = [ "r|/dev/cdrom|" ]
  13. @@ -522,7 +526,8 @@
  14. # e.g. vgscan.lvm1 and they will stop working after you start using
  15. # the new lvm2 on-disk metadata format.
  16. # The default value is set when the tools are built.
  17. - # fallback_to_lvm1 = 0
  18. + # Gentoo: the LVM tools are a seperate package.
  19. + fallback_to_lvm1 = 0
  20. # The default metadata format that commands should use - "lvm1" or "lvm2".
  21. # The command line override is -M1 or -M2.
  22. @@ -1182,12 +1187,13 @@
  23. # Metadata settings
  24. #
  25. -# metadata {
  26. +metadata {
  27. # Default number of copies of metadata to hold on each PV. 0, 1 or 2.
  28. # You might want to override it from the command line with 0
  29. # when running pvcreate on new PVs which are to be added to large VGs.
  30. - # pvmetadatacopies = 1
  31. + # Gentoo: enable for data safety, but PV resize is then disabled.
  32. + # pvmetadatacopies = 2
  33. # Default number of copies of metadata to maintain for each VG.
  34. # If set to a non-zero value, LVM automatically chooses which of
  35. @@ -1222,7 +1228,7 @@
  36. # the supplied toolset to make changes (e.g. vgcfgrestore).
  37. # dirs = [ "/etc/lvm/metadata", "/mnt/disk2/lvm/metadata2" ]
  38. -#}
  39. +}
  40. # Event daemon
  41. #