Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Created attachment 1206296[details]
log
Conversion of thin pool to anything except cached pool seems disabled while it should work.
Tried with --type mirror conversion and --type raid.
We've been using this test up until now without issues. Conversion to cached LV works fine.
Was this an intended change?
Attaching lvconvert -vvvv log.
========================================================
SCENARIO - [pool_to_conversion]
Attempt to convert a thinp pool device to mirror, raid1, raid4, raid5, and raid6
Making pool volume
lvcreate --activate ey --thinpool POOL -L 4G --zero n --poolmetadatasize 4M snapper_thinp
Sanity checking pool device (POOL) metadata
examining superblock
examining devices tree
examining mapping tree
checking space map counts
Making origin volume
lvcreate --activate ey --virtualsize 1G -T snapper_thinp/POOL -n origin
lvcreate --activate ey -V 1G -T snapper_thinp/POOL -n other1
lvcreate --activate ey -V 1G -T snapper_thinp/POOL -n other2
lvcreate --activate ey --virtualsize 1G -T snapper_thinp/POOL -n other3
lvcreate --activate ey --virtualsize 1G -T snapper_thinp/POOL -n other4
WARNING: Sum of all thin volume sizes (5.00 GiB) exceeds the size of thin pool snapper_thinp/POOL (4.00 GiB)!
lvcreate --activate ey -V 1G -T snapper_thinp/POOL -n other5
WARNING: Sum of all thin volume sizes (6.00 GiB) exceeds the size of thin pool snapper_thinp/POOL (4.00 GiB)!
Making snapshot of origin volume
lvcreate --activate ey -k n -s /dev/snapper_thinp/origin -n pool_convert
Attempt mirror conversion of pool device...
lvconvert --type mirror -m 1 snapper_thinp/POOL
Operation not permitted on thin pool LV snapper_thinp/POOL.
Operations permitted on a thin pool LV are:
--splitcache (operates on cache sub LV)
--uncache (operates on cache sub LV)
--type cache (operates on data sub LV)
--repair
========================================================
# lvs -a
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
root rhel_host-004 -wi-ao---- 6.67g
swap rhel_host-004 -wi-ao---- 820.00m
POOL snapper_thinp twi---t--- 4.00g
[POOL_tdata] snapper_thinp Twi------- 4.00g
[POOL_tmeta] snapper_thinp ewi------- 4.00m
[lvol0_pmspare] snapper_thinp ewi------- 4.00m
origin snapper_thinp Vwi---t--- 1.00g POOL
other1 snapper_thinp Vwi---t--- 1.00g POOL
other2 snapper_thinp Vwi---t--- 1.00g POOL
other3 snapper_thinp Vwi---t--- 1.00g POOL
other4 snapper_thinp Vwi---t--- 1.00g POOL
other5 snapper_thinp Vwi---t--- 1.00g POOL
pool_convert snapper_thinp Vwi---t--- 1.00g POOL origin
We do not support --type mirror for anything pool related.
There was likely short period of time in upstream where 'mirror' was allowed to be used for _tdata & _tmeta but was decided to be not supported.
So the only supported mirroring of pool data & metadata devices is via --type raidX.
And also you need to explicitly specify _tdata or _tmeta device.
(While with caching we only support caching of _tdata)
Side note - there used to be a better message (got lost over the time somehow):
For pool data volume conversion use "vg/pool_tdata".
For pool metadata volume conversion use "vg/pool_tmeta".
Maybe I'll check if there is a way to 'revive' it - but the end result will be unsupported conversion, so closing this one.
Created attachment 1206296 [details] log Conversion of thin pool to anything except cached pool seems disabled while it should work. Tried with --type mirror conversion and --type raid. We've been using this test up until now without issues. Conversion to cached LV works fine. Was this an intended change? Attaching lvconvert -vvvv log. ======================================================== SCENARIO - [pool_to_conversion] Attempt to convert a thinp pool device to mirror, raid1, raid4, raid5, and raid6 Making pool volume lvcreate --activate ey --thinpool POOL -L 4G --zero n --poolmetadatasize 4M snapper_thinp Sanity checking pool device (POOL) metadata examining superblock examining devices tree examining mapping tree checking space map counts Making origin volume lvcreate --activate ey --virtualsize 1G -T snapper_thinp/POOL -n origin lvcreate --activate ey -V 1G -T snapper_thinp/POOL -n other1 lvcreate --activate ey -V 1G -T snapper_thinp/POOL -n other2 lvcreate --activate ey --virtualsize 1G -T snapper_thinp/POOL -n other3 lvcreate --activate ey --virtualsize 1G -T snapper_thinp/POOL -n other4 WARNING: Sum of all thin volume sizes (5.00 GiB) exceeds the size of thin pool snapper_thinp/POOL (4.00 GiB)! lvcreate --activate ey -V 1G -T snapper_thinp/POOL -n other5 WARNING: Sum of all thin volume sizes (6.00 GiB) exceeds the size of thin pool snapper_thinp/POOL (4.00 GiB)! Making snapshot of origin volume lvcreate --activate ey -k n -s /dev/snapper_thinp/origin -n pool_convert Attempt mirror conversion of pool device... lvconvert --type mirror -m 1 snapper_thinp/POOL Operation not permitted on thin pool LV snapper_thinp/POOL. Operations permitted on a thin pool LV are: --splitcache (operates on cache sub LV) --uncache (operates on cache sub LV) --type cache (operates on data sub LV) --repair ======================================================== # lvs -a LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert root rhel_host-004 -wi-ao---- 6.67g swap rhel_host-004 -wi-ao---- 820.00m POOL snapper_thinp twi---t--- 4.00g [POOL_tdata] snapper_thinp Twi------- 4.00g [POOL_tmeta] snapper_thinp ewi------- 4.00m [lvol0_pmspare] snapper_thinp ewi------- 4.00m origin snapper_thinp Vwi---t--- 1.00g POOL other1 snapper_thinp Vwi---t--- 1.00g POOL other2 snapper_thinp Vwi---t--- 1.00g POOL other3 snapper_thinp Vwi---t--- 1.00g POOL other4 snapper_thinp Vwi---t--- 1.00g POOL other5 snapper_thinp Vwi---t--- 1.00g POOL pool_convert snapper_thinp Vwi---t--- 1.00g POOL origin