Bug 2072746

Summary: storage - support for attaching cache volumes to existing volumes
Product: Red Hat Enterprise Linux 9 Reporter: David Lehman <dlehman>
Component: rhel-system-rolesAssignee: Rich Megginson <rmeggins>
Status: CLOSED ERRATA QA Contact: ChanghuiZhong <czhong>
Severity: medium Docs Contact: Michal Stubna <mstubna>
Priority: unspecified    
Version: 9.0CC: czhong, gfialova, nhosoi, rhel-cs-system-management-subsystem-qe, rmeggins, spetrosi, vtrefny
Target Milestone: rcKeywords: Triaged
Target Release: 9.1   
Hardware: All   
OS: Linux   
Whiteboard: role:storage
Fixed In Version: rhel-system-roles-1.19.3-1.el9 Doc Type: Enhancement
Doc Text:
.Better support for cached volumes is available in the `storage` RHEL System Role The `storage` RHEL System Role can now attach cache to existing LVM logical volumes. LVM cache can be used to improve performance of slower logical volumes by temporarily storing subsets of an LV's data on a smaller, faster device, for example an SSD. This enhances the previously added support for creating cached volumes by allowing adding (attaching) a cache to an existing, previously uncached volume.
Story Points: ---
Clone Of: 2066881 Environment:
Last Closed: 2022-11-15 10:23:26 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:
Bug Depends On: 2055200, 2066881    
Bug Blocks:    

Description David Lehman 2022-04-06 21:50:26 UTC
+++ This bug was initially created as a clone of Bug #2066881 +++

Description of problem:
Support for attaching cache volumes to existing volumes

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 ChanghuiZhong 2022-06-23 09:37:20 UTC
test pass with python3-blivet-3.4.0-15.el9 + tests_create_lvm_cache_then_remove.yml
https://bugzilla.redhat.com/show_bug.cgi?id=2055200#c2

Comment 3 ChanghuiZhong 2022-06-28 04:01:27 UTC
test pass with rhel-system-roles-1.19.3-0.2.el9

blivet-data-3.4.0-15.el9.noarch
python3-blivet-3.4.0-15.el9.noarch
rhel-system-roles-1.19.3-0.2.el9.noarch

# ansible-playbook tests_create_lvm_cache_then_remove.yml

PLAY RECAP **************************************************************************
st102                      : ok=375  changed=5    unreachable=0    failed=0    skipped=347  rescued=0    ignored=0   

hit known issue on localhost test:
Bug 2044119 - [RHEL9] _storage_test_pool_pvs get wrong data type in test-verify-pool-members.yml

Comment 6 ChanghuiZhong 2022-07-08 10:07:46 UTC
# rpm -qa | grep -E 'system-roles|blivet'                      
blivet-data-3.4.0-15.el9.noarch                                                      
python3-blivet-3.4.0-15.el9.noarch                                                   
rhel-system-roles-1.19.3-1.el9.noarch


# ansible-playbook /usr/share/ansible/roles/linux-system-roles.storage/tests/tests_create_lvm_cache_then_remove.yml

PLAY RECAP **************************************************************************
127.0.0.1                  : ok=384  changed=6    unreachable=0    failed=0    skipped=346  rescued=0    ignored=0

NAME                           MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS                 
sda                              8:0    0 447.1G  0 disk                             
├─sda1                           8:1    0   600M  0 part /boot/efi                   
├─sda2                           8:2    0     1G  0 part /boot                       
└─sda3                           8:3    0 445.5G  0 part                             
  ├─rhel_storageqe--102-root   253:0    0    70G  0 lvm  /                           
  ├─rhel_storageqe--102-swap   253:1    0   7.6G  0 lvm  [SWAP]                      
  └─rhel_storageqe--102-home   253:2    0 367.9G  0 lvm  /home                       
sdb                              8:16   0 447.1G  0 disk                             
└─sdb1                           8:17   0 447.1G  0 part                             
  └─foo-test_corig             253:6    0     5G  0 lvm                              
    └─foo-test                 253:3    0     5G  0 lvm                              
sdc                              8:32   0 447.1G  0 disk                             
└─sdc1                           8:33   0 447.1G  0 part                             
  ├─foo-test_cache_cpool_cdata 253:4    0     4G  0 lvm                              
  │ └─foo-test                 253:3    0     5G  0 lvm                              
  └─foo-test_cache_cpool_cmeta 253:5    0     8M  0 lvm                              
    └─foo-test                 253:3    0     5G  0 lvm                              



NAME                         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS                   
sda                            8:0    0 447.1G  0 disk                               
├─sda1                         8:1    0   600M  0 part /boot/efi                     
├─sda2                         8:2    0     1G  0 part /boot                         
└─sda3                         8:3    0 445.5G  0 part                               
  ├─rhel_storageqe--102-root 253:0    0    70G  0 lvm  /                             
  ├─rhel_storageqe--102-swap 253:1    0   7.6G  0 lvm  [SWAP]                        
  └─rhel_storageqe--102-home 253:2    0 367.9G  0 lvm  /home                         
sdb                            8:16   0 447.1G  0 disk                               
└─sdb1                         8:17   0 447.1G  0 part                               
  └─foo-test_corig           253:6    0     5G  0 lvm                                
    └─foo-test               253:3    0     5G  0 lvm                                
sdc                            8:32   0 447.1G  0 disk                               
└─sdc1                         8:33   0 447.1G  0 part                               
  ├─foo-pool00_cpool_cdata   253:4    0     4G  0 lvm                                
  │ └─foo-test               253:3    0     5G  0 lvm                                
  └─foo-pool00_cpool_cmeta   253:5    0     8M  0 lvm                                
    └─foo-test               253:3    0     5G  0 lvm    


move to verified

Comment 10 errata-xmlrpc 2022-11-15 10:23:26 UTC
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 (rhel-system-roles bug fix and enhancement update), 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/RHEA-2022:8117