Bug 1280473

Summary: lvm2 should not allow reducing thin metadata LV
Product: [Fedora] Fedora Reporter: Heinz Mauelshagen <heinzm>
Component: lvm2Assignee: LVM and device-mapper development team <lvm-team>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 22CC: agk, bmarzins, bmr, dwysocha, heinzm, jonathan, lvm-team, msnitzer, prajnoha, prockai, zkabelac
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-15 10:45:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Heinz Mauelshagen 2015-11-11 20:03:25 UTC
Description of problem:

Able to shrink a thin pool metadata LV causes kernel
to complain about the reduced size.

Version-Release number of selected component (if applicable):

kernel 4.2.3-200.fc22 and upstream 4.3.0
lvm 2.02.116(2)

How reproducible:

Always.

Steps to Reproduce:
1. create thin_pool
2. grow thin pool metadata LV
3. shrink  "

Actual results:

Kernel complains about metadata device being too small

Expected results:

lvm2 should prevent reducing pool metadata LV
untill dm-thin gets enhanced to cope with it.


Additional info:

Comment 1 Zdenek Kabelac 2015-11-19 15:27:41 UTC
Resolved with upstream release of lvm2 2.02.129

https://www.redhat.com/archives/lvm-devel/2015-August/msg00166.html

Comment 2 Peter Rajnoha 2015-12-15 10:45:46 UTC
This is already fixed in Fedora 23 release (where we have lvm2 > 2.02.129).