Debian Bug report logs - #814644
[lvm2] Stupid changes in /etc/lvm/lvm.conf again and again

version graph

Package: lvm2; Maintainer for lvm2 is Debian LVM Team <[email protected]>; Source for lvm2 is src:lvm2 (PTS, buildd, popcon).

Reported by: Philipp Klaus Krause <[email protected]>

Date: Sat, 13 Feb 2016 16:57:02 UTC

Severity: normal

Found in version lvm2/2.02.141-2

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Debian LVM Team <[email protected]>:
Bug#814644; Package lvm2. (Sat, 13 Feb 2016 16:57:05 GMT) (full text, mbox, link).


Acknowledgement sent to Philipp Klaus Krause <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian LVM Team <[email protected]>. (Sat, 13 Feb 2016 16:57:05 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Philipp Klaus Krause <[email protected]>
To: [email protected]
Subject: [lvm2] Stupid changes in /etc/lvm/lvm.conf again and again
Date: Sat, 13 Feb 2016 17:52:36 +0100
Package: lvm2
Version: 2.02.141-2
Severity: normal

--- Please enter the report below this line. ---

When I upgrade the lvm2 package through synaptic, it comes with a
/etc/lvm/lvm.conf. Since lvm2 changes the file all the time and I have
set issue_discards=1 in my /etc/lvm/lvm.conf I always get the dialog
about the changed config file, and get a list of changes. I have seen
this multiple times recently; basically on each lvm2 upgrade.
And when I see the list of changes it is just or mostly indentation or
linebreaks. Sometimes some real change is hidden in there, too. But lvm2
should stop making pointless changes that just put additional
maintanance burden on the user.
Just as I'm typing this I am doing an lvm2 upgrade; most of the changes
in the file are bullshit like this:

-	#     is not defined, a default single-entry list containing '@*' is
-	#     assumed.
+	#     is not defined, a default single-entry list containing '@*'
+	#     is assumed.

Philipp

--- System information. ---
Architecture: amd64
Kernel:       Linux 4.3.0-1-amd64

Debian Release: stretch/sid
  500 unstable        ftp.de.debian.org
  500 testing         ftp.de.debian.org
    1 experimental    ftp.de.debian.org

--- Package information. ---
Depends                              (Version) | Installed
==============================================-+-==================
libc6                                (>= 2.15) |
libdevmapper-event1.02.1        (>= 2:1.02.74) |
libdevmapper1.02.1              (>= 2:1.02.85) |
libreadline5                          (>= 5.2) |
libudev1                              (>= 183) |
init-system-helpers                 (>= 1.18~) |
lsb-base                                       |
dmsetup                         (>> 2:1.02.47) |
initscripts                  (>= 2.88dsf-13.3) |


Package's Recommends field is empty.

Suggests                     (Version) | Installed
======================================-+-===========
thin-provisioning-tools                |



Information forwarded to [email protected], Debian LVM Team <[email protected]>:
Bug#814644; Package lvm2. (Wed, 09 Mar 2016 22:15:03 GMT) (full text, mbox, link).


Acknowledgement sent to Zdenek Kabelac <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian LVM Team <[email protected]>. (Wed, 09 Mar 2016 22:15:03 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Zdenek Kabelac <[email protected]>
To: [email protected]
Subject: Re: [lvm2] Stupid changes in /etc/lvm/lvm.conf again and again
Date: Wed, 9 Mar 2016 23:11:30 +0100
On Sat, 13 Feb 2016 17:52:36 +0100 Philipp Klaus Krause <[email protected]> wrote:
> Package: lvm2
> Version: 2.02.141-2
> Severity: normal
>
> --- Please enter the report below this line. ---
>
> When I upgrade the lvm2 package through synaptic, it comes with a
> /etc/lvm/lvm.conf. Since lvm2 changes the file all the time and I have
> set issue_discards=1 in my /etc/lvm/lvm.conf I always get the dialog
> about the changed config file, and get a list of changes. I have seen
> this multiple times recently; basically on each lvm2 upgrade.
> And when I see the list of changes it is just or mostly indentation or
> linebreaks. Sometimes some real change is hidden in there, too. But lvm2
> should stop making pointless changes that just put additional
> maintanance burden on the user.
> Just as I'm typing this I am doing an lvm2 upgrade; most of the changes
> in the file are bullshit like this:
>
> -	#     is not defined, a default single-entry list containing '@*' is
> -	#     assumed.
> +	#     is not defined, a default single-entry list containing '@*'
> +	#     is assumed.
>
> Philipp
>

lvm2 package now provides internal support for diffing or showing new options
in differnt releases...

See 'man lvmconfig'  for large variety of options.

It may easily generate new config file from scratch.

User may just keep his changes in small file and let other things at defaults.


IMHO much bigger issue is in fact your  mentioned 'issue_discard' used - this 
option is often misunderstood.

It has nothing in common with TRIM on exiting LV.

It only 'TRIM' space in VG AFTER LV is lvremoved - this makes mostly sense 
only in case VG is on some 'provisioned' device.

When such option is 'enabled'  user cannot recover LV with 'vgcfgrestore' if 
he makes a mistake - while with disabled - data would be still there - and 
I've already seen some disappointed users  (as Ubuntu even set this to 1 on 
default)

So if anyone is using this option with hope it helps sending discard to 
activated LVs - then this is not the case - such LVs are passing discard 
through if the underlaying PV has discard support.

Regards

Zdenek



Information forwarded to [email protected], Debian LVM Team <[email protected]>:
Bug#814644; Package lvm2. (Tue, 05 Apr 2016 22:51:04 GMT) (full text, mbox, link).


Acknowledgement sent to Iván Baldo <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian LVM Team <[email protected]>. (Tue, 05 Apr 2016 22:51:04 GMT) (full text, mbox, link).


Message #15 received at [email protected] (full text, mbox, reply):

From: Iván Baldo <[email protected]>
To: [email protected]
Subject: [lvm2] Stupid changes in /etc/lvm/lvm.conf again and again
Date: Tue, 5 Apr 2016 19:40:48 -0300 (UYT)
[Message part 1 (text/plain, inline)]
Hello. 
Isn't UCF designed to solve this issue? 
Thanks. 

-- 
Ivan Baldo - [email protected] - http://ibaldo.codigolibre.net/ 
Freelance C++/PHP programmer and GNU/Linux systems administrator. 
The sky is not the limit! 
[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 12:42:27 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.