Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-75628

[RHEL10.0] Should 'lvextend --fs resize' extend the logical volume if the fstype (swap) is known to not support extension, and the cmd exits non zero

    • lvm2-2.03.28-4.el10
    • No
    • Low
    • Hide
      5f53ecda3600834e920eef14065d35cd0fb6c59b
      036e88eb85a957a9a34feb8194511bd816b70000
      e86a75b4fe5873f563c930a575f54143ddca7c7c
      Show
      5f53ecda3600834e920eef14065d35cd0fb6c59b 036e88eb85a957a9a34feb8194511bd816b70000 e86a75b4fe5873f563c930a575f54143ddca7c7c
    • rhel-sst-logical-storage
    • ssg_filesystems_storage_and_HA
    • 23
    • 24
    • 1
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • x86_64
    • None

      kernel-5.14.0-522.el9    BUILT: Sun Oct 20 03:53:48 PM CEST 2024
      lvm2-2.03.27-1.el9    BUILT: Wed Oct  9 12:38:05 PM CEST 2024
      lvm2-libs-2.03.27-1.el9    BUILT: Wed Oct  9 12:38:05 PM CEST 2024
       
       
      [root@virt-258 ~]# lvs -a -o +devices
        LV        VG            Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices       
        resize_lv resize_matrix -wi-ao---- <34.36g                                                     /dev/sda(0)   
        root      rhel_virt-258 -wi-ao----  <8.00g                                                     /dev/vda2(256)
        swap      rhel_virt-258 -wi-ao----   1.00g                                                     /dev/vda2(0)  
      [root@virt-258 ~]# lvextend --yes --fs resize -L +364M resize_matrix/resize_lv 
        Size of logical volume resize_matrix/resize_lv changed from <34.36 GiB (8795 extents) to 34.71 GiB (8886 extents).
        File system extend is not supported (swap).
        File system extend error.
        Logical volume resize_matrix/resize_lv successfully resized.
      [root@virt-258 ~]# echo $?
      5
      [root@virt-258 ~]# lvs -a -o +devices
        LV        VG            Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices       
        resize_lv resize_matrix -wi-ao---- 34.71g                                                     /dev/sda(0)   
        root      rhel_virt-258 -wi-ao---- <8.00g                                                     /dev/vda2(256)
        swap      rhel_virt-258 -wi-ao----  1.00g                                                     /dev/vda2(0)  
      

              cmarthal@redhat.com Corey Marthaler
              cmarthal@redhat.com Corey Marthaler
              lvm-team lvm-team
              Cluster QE Cluster QE
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: