Bug#612739: store archive/backup files in /etc/lvm/
Luca Capello
luca at pca.it
Thu Feb 10 11:17:51 UTC 2011
Package: lvm2
Version: 2.02.66-4
Severity: minor
Hi there!
This is very similar to #549673 <http://bugs.debian.org/549673>, maybe I
should create a bug to 'general' and then add all the blockings...
Anyway, I manage my /etc with etckeeper, with the following options:
--8<---------------cut here---------------start------------->8---
VCS="git"
# Uncomment to avoid etckeeper committing existing changes
# to /etc automatically once per day.
AVOID_DAILY_AUTOCOMMITS=1
# Uncomment to avoid etckeeper committing existing changes to
# /etc before installation. It will cancel the installation,
# so you can commit the changes by hand.
AVOID_COMMIT_BEFORE_INSTALL=1
--8<---------------cut here---------------end--------------->8---
Everytime I modify something in the local LVM configuration or I plug an
external HD with LVM on it, lvm2 creates backup files in /etc/lvm/
=====
root at gismo:/etc# git status
# On branch master
[...]
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# lvm/archive/
# lvm/backup/vggismo
no changes added to commit (use "git add" and/or "git commit -a")
root at gismo:/etc#
=====
This is plainly wrong, given that these are not configuration files at
all and according to the FHS /etc is for static conffile-only:
<http://www.pathname.com/fhs/pub/fhs-2.3.html#ETCHOSTSPECIFICSYSTEMCONFIGURATION>
Purpose
The /etc hierarchy contains configuration files. A "configuration file"
is a local file used to control the operation of a program; it must be
static and cannot be an executable binary.
The best place for these archive/backup files is /var/backups/lvm2.
BTW, another possibility would be for etckeeper to ignore these files,
but I consider this a workaround and not a solution, given that the
problem is in lvm2, not etckeeper.
Thx, bye,
Gismo / Luca
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.37-trunk-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lvm2 depends on:
ii dmsetup 2:1.02.48-4 The Linux Kernel Device Mapper use
ii libc6 2.11.2-7 Embedded GNU C Library: Shared lib
ii libdevmapper1.02.1 2:1.02.48-4 The Linux Kernel Device Mapper use
ii libreadline5 5.2-7 GNU readline and history libraries
ii libudev0 164-2 libudev shared library
ii lsb-base 3.2-26 Linux Standard Base 3.2 init scrip
lvm2 recommends no packages.
lvm2 suggests no packages.
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-lvm-maintainers/attachments/20110210/0f8657a2/attachment.pgp>
More information about the pkg-lvm-maintainers
mailing list