Bug#814644: [lvm2] Stupid changes in /etc/lvm/lvm.conf again and again

2016-04-05 Thread Iván Baldo
Hello. 
Isn't UCF designed to solve this issue? 
Thanks. 

-- 
Ivan Baldo - iba...@adinet.com.uy - http://ibaldo.codigolibre.net/ 
Freelance C++/PHP programmer and GNU/Linux systems administrator. 
The sky is not the limit! 


Bug#814644: [lvm2] Stupid changes in /etc/lvm/lvm.conf again and again

2016-03-09 Thread Zdenek Kabelac

On Sat, 13 Feb 2016 17:52:36 +0100 Philipp Klaus Krause  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



Bug#814644: [lvm2] Stupid changes in /etc/lvm/lvm.conf again and again

2016-02-13 Thread Philipp Klaus Krause
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 unstableftp.de.debian.org
  500 testing ftp.de.debian.org
1 experimentalftp.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|