Bug 1071225

Summary: [RFE] Add support for easy conversion of normal LV to thin volume
Product: [Fedora] Fedora Reporter: Zdenek Kabelac <zkabelac>
Component: lvm2Assignee: Zdenek Kabelac <zkabelac>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: medium    
Version: rawhideCC: agk, bmarzins, bmr, dwysocha, heinzm, jbrassow, jonathan, lvm-team, msnitzer, prajnoha, zkabelac
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Zdenek Kabelac 2014-02-28 10:22:45 UTC
Description of problem:

Add support for converting a normal LV into a thin volume, where the LV will be used as data volume for thin pool.

Currently the user can only use 'external-origin' feature, which uses normal LV as a read-only origin for unprovisioned blocks.

Also we might be eventually able to even convert thin-volume into a normal LV for the case there is only a single range-mapping for a thin LV (in terms of kernel thin metadata).

This would allow very easy use of temporary thin volumes instead of old-snapshot.

Estimated syntax to convert normal LV into thin LV

lvconvert -T vg/normal_lv   [--poolmetadasize,--chunksize... ]

Estimated syntax to convert thin LV into a normal LV (if possible)

lvconvert --type linear vg/thin_lv

I assume the internal logic may allow to use even options like 
-m0 or --type mirror, --type raid -  to convert thin into all other traditional
old-school formats....

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

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info: