Bug 2141961 - RFE for the storage system role to support configuring the stripe size for RAID LVM volumes
Summary: RFE for the storage system role to support configuring the stripe size for RA...
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: rhel-system-roles
Version: 8.6
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: rc
: 8.9
Assignee: Vojtech Trefny
QA Contact: Fine Fan
Apurva Bhide
URL:
Whiteboard: role:storage
Depends On: 2142550 2168476
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-11 08:46 UTC by Csaba Daradics
Modified: 2023-07-24 18:18 UTC (History)
6 users (show)

Fixed In Version: rhel-system-roles-1.22.0-0.9.el8
Doc Type: Enhancement
Doc Text:
.`storage` system role supports configuring the stripe size for RAID LVM volumes With this update, you can now specify a custom stripe size when creating RAID LVM devices. For better performance, use the custom stripe size for SAP HANA. The recommended stripe size for RAID LVM volumes is 64 KB.
Clone Of:
: 2181656 (view as bug list)
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github linux-system-roles storage pull 357 0 None open feat: Add support for setting stripe size for LVM RAID 2023-05-23 13:07:42 UTC
Red Hat Issue Tracker RHELPLAN-139138 0 None None None 2022-11-11 09:16:37 UTC

Description Csaba Daradics 2022-11-11 08:46:45 UTC
Description of problem:

Creating LVM RAID with the Storage System Role doesn't have the option to set custom stripe sizes; it has a hard-coded default value of 64K

After a discussion with Brian Smith, this should be considered an RFE for the storage system role to support configuring the stripe size for RAID LVM volumes

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

Tested on: 

redhat.rhel_system_roles 1.16.2
fedora.linux_system_roles 1.30.0

How reproducible:

Running the role with specific options for an LVM RAID setup

Steps to Reproduce:

Run the following playbook:

---
- name: PoC RAID0 HANA storage with storage system role
  hosts: <managed node>
  become: yes
  vars:
    unused_disks: 
      - <disk1>
      - <disk2>
  tasks:
    - name: Run storage role
      vars:
        storage_safe_mode: false
        storage_use_partitions: true
        storage_pools:
          - name: hanadata_vg
            type: lvm
            disks: "{{ unused_disks }}"
            state: present
            volumes:
              - name: hanadata_lv
                size: 100%
                mount_point: /hana/data
                fs_type: xfs
                raid_disks: "{{ [unused_disks[0], unused_disks[1]] }}"
                raid_level: raid0
      ansible.builtin.include_role:
        name: fedora.linux_system_roles.storage
        #name: redhat.rhel_system_roles.storage
...


Actual results:

- stripe size is set to 64K by default

[root@ansible3 ~]# lvs -ao +lv_full_name,devices,stripe_size | awk '/hanadata/'
  hanadata_lv            hanadata_vg rwi-aor---  199.99g                                                     hanadata_vg/hanadata_lv          hanadata_lv_rimage_0(0),hanadata_lv_rimage_1(0) 64.00k
  [hanadata_lv_rimage_0] hanadata_vg iwi-aor--- <100.00g                                                     hanadata_vg/hanadata_lv_rimage_0 /dev/sdf1(0)                                        0 
  [hanadata_lv_rimage_1] hanadata_vg iwi-aor--- <100.00g                                                     hanadata_vg/hanadata_lv_rimage_1 /dev/sdg1(0)                                        0 
[root@ansible3 ~]# 


Expected results:

Similarly to raid_chunk_size, there should be the option to a custom value, if needed

Additional info:

The Azure documentation asks for specific stripe sizes here: https://learn.microsoft.com/en-us/azure/virtual-machines/workloads/sap/hana-vm-operations-storage#stripe-sizes-when-using-logical-volume-managers


Note You need to log in before you can comment on or make changes to this bug.