Bug 2187747

Summary: vdo snapshot origin resize paradox
Product: Red Hat Enterprise Linux 9 Reporter: Corey Marthaler <cmarthal>
Component: lvm2Assignee: Zdenek Kabelac <zkabelac>
lvm2 sub component: VDO QA Contact: cluster-qe <cluster-qe>
Status: CLOSED MIGRATED Docs Contact:
Severity: medium    
Priority: medium CC: agk, awalsh, heinzm, jbrassow, prajnoha, zkabelac
Version: 9.3Keywords: MigratedToJIRA, Triaged
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-23 19:02:19 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 Corey Marthaler 2023-04-18 15:15:53 UTC
Description of problem:
This worked when inactive in rhel9.2, but it appears it no longer does in the latest 9.3 build.

[root@grant-01 ~]# lvs -a -o +devices
  LV               VG            Attr       LSize    Pool     Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices              
  snap             vdo_sanity    swi-a-s---    6.00g          vdo_lv 0.01                                    /dev/nvme1n1p1(12800)
  vdo_lv           vdo_sanity    owi-a-s---  100.00g vdo_pool                                                vdo_pool(0)          
  vdo_pool         vdo_sanity    dwi-------   50.00g                 10.25                                   vdo_pool_vdata(0)    
  [vdo_pool_vdata] vdo_sanity    Dwi-ao----   50.00g                                                         /dev/nvme1n1p1(0)   
 
[root@grant-01 ~]# lvextend --yes -L +500M vdo_sanity/vdo_lv 
  Snapshot origin volumes can be resized only while inactive: try lvchange -an.
[root@grant-01 ~]# lvchange -an vdo_sanity/vdo_lv
[root@grant-01 ~]# lvextend --yes -L +500M vdo_sanity/vdo_lv 
  Cannot resize inactive VDO logical volume vdo_sanity/vdo_lv.
[root@grant-01 ~]# lvchange -ay vdo_sanity/vdo_lv
[root@grant-01 ~]# lvextend --yes -L +500M vdo_sanity/vdo_lv 
  Snapshot origin volumes can be resized only while inactive: try lvchange -an.


Version-Release number of selected component (if applicable):
kernel-5.14.0-284.11.1.el9_2    BUILT: Wed Apr 12 04:16:55 PM CEST 2023
lvm2-2.03.20-2.el9    BUILT: Thu Apr  6 01:40:29 PM CEST 2023
lvm2-libs-2.03.20-2.el9    BUILT: Thu Apr  6 01:40:29 PM CEST 2023

Comment 4 RHEL Program Management 2023-09-23 19:00:29 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 5 RHEL Program Management 2023-09-23 19:02:19 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.