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.
DescriptionBruno Goncalves
2017-06-19 11:45:00 UTC
Description of problem:
Can not set a thin pool to use RAID type.
lvconvert --type raid1 --mirrors 3 --yes testvg/pool_tdata
testvg/pool_tdata must be active to perform this operation.
ERROR: lvconvert --type raid1 --mirrors 3 --yes testvg/pool_tdata
If 'testvg/pool_tdata' is deactivated it also does not work.
lvconvert --type raid1 --mirrors 3 --yes testvg/pool_tdata
Can't add image to active thin pool LV testvg/pool_tdata yet. Deactivate first.
Version-Release number of selected component (if applicable):
kernel-3.10.0-681.el7
lvm2-2.02.171-5.el7
How reproducible:
100%
Steps to Reproduce:
1.Create a Thin pool
vgcreate --force testvg /dev/loop2 /dev/loop1 /dev/loop0 /dev/loop3
lvcreate -L4M --thin testvg/pool
2. Deactivate the pool
lvchange -an testvg/pool
3. Try to set the pool to RAID
lvconvert --type raid1 --mirrors 3 --yes testvg/pool_tdata
testvg/pool_tdata must be active to perform this operation.
ERROR: lvconvert --type raid1 --mirrors 3 --yes testvg/pool_tdata
I do not know how serious this is, but this works on RHEL-7.3 and also with RHEL-7.4 Snapshot#3 (kernel-3.10.0-675.el7, lvm2-2.02.171-2.el7)
lvchange -an testvg/pool
lvconvert --type raid1 --mirrors 3 --yes testvg/pool_tdata
Logical volume testvg/pool_tdata successfully converted.
Seems we are at Catch 22 now with Bug 1365286.
And the only way forward is to fix original bug which resulted into hotfix actually disabling raids for thin-pool.
Now there is a change on behavior when it is possible to change RAID type.
On RHEL-7.3 the pool needed to be deactivate to perform lvconvert. Now the pool needs to be active. Is this correct?
Active pool:
# lvconvert --type raid1 --mirrors 3 --yes testvg/pool_tdata
Logical volume testvg/pool_tdata successfully converted.
Deactivated pool:
# lvchange -an testvg/pool
# lvconvert --type raid1 --mirrors 3 --yes testvg/pool_tdata
testvg/pool_tdata must be active to perform this operation.
Tested with lvm2-2.02.171-8.el7
Comment 10Jonathan Earl Brassow
2017-07-05 15:14:21 UTC
couldn't hurt to have a release note about this, but this is a necessary change in behavior. We cannot change the behavior back without introducing worse problems - at least not until we have more complex operations to perform an up-convert.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2017:2222