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: NEW --- Docs Contact:
Severity: medium    
Priority: medium CC: agk, awalsh, heinzm, jbrassow, prajnoha, zkabelac
Version: 9.3Keywords: Triaged
Target Milestone: rc   
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: 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