Bug 2222951 - RFE: support conversion of LV to thin LV by setting original LV as thin-pool data
Summary: RFE: support conversion of LV to thin LV by setting original LV as thin-pool ...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: lvm2
Version: 9.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Zdenek Kabelac
QA Contact: cluster-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-14 15:10 UTC by Zdenek Kabelac
Modified: 2023-08-10 15:41 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-162392 0 None None None 2023-07-14 15:13:04 UTC

Description Zdenek Kabelac 2023-07-14 15:10:02 UTC
Description of problem:

Users with existing data in i.e. Linear, Raid, VDO LVs may need to use then with thin-provisioning. While lvm2 already supports such user through 'external' origin, there could be cases where a direct conversion to thin-pool is better solutions.

To support this extend the 'lvconvert' with new supported conversion, that makes the original volume basically a 'data' volume for thin-pool and adds a thin volume with fully provisioned  volume mapping this data.

Such conversion should be possible to happen 'online' so user should not need to deactivate such LV.


Expected usage:

lvcreate -L10 -n normalLV  vgname

lvconvert --type thin  vgname/normalLV


Results with thin-pool with normalLV   being represented by thin.

Comment 2 Zdenek Kabelac 2023-07-14 15:12:22 UTC
Upstream code already provides the initial support with some limitation.

Currently user has to manually 'extend' thin-pool if he want to use thin-pool for creation of futher thin LVs in the same pool.

Comment 4 Zdenek Kabelac 2023-07-14 15:15:58 UTC
Also the primary use-case for this conversion can be seen by allowing to create multiple LVs within the single VDOPOOL.

User can convert 'VDOLV' into a thin volume with thin-pool having back-end in compressed deduplicated data volume handled by VDO target.


Note You need to log in before you can comment on or make changes to this bug.