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

altering the raid recoveryrate during a sync, will instantly end the sync and the raid will report 100% synced

    • lvm2-2.03.28-1.el9
    • No
    • Important
    • rhel-sst-logical-storage
    • ssg_filesystems_storage_and_HA
    • 12
    • 14
    • 1
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • x86_64
    • None

      kernel-5.14.0-516.el9    BUILT: Tue Oct  8 04:14: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-511 ~]# lvcreate --type raid1 -m 2 -n my_lv -L 4G my_vg
        Logical volume "my_lv" created.
      
      [root@virt-511 ~]# lvchange --syncaction repair my_vg/my_lv
      
      [root@virt-511 ~]# lvs -a -o +devices
        LV               VG    Attr       LSize Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices                                              
        my_lv            my_vg rwi-a-r--- 4.00g                                    0.00             my_lv_rimage_0(0),my_lv_rimage_1(0),my_lv_rimage_2(0)
        [my_lv_rimage_0] my_vg iwi-aor--- 4.00g                                                     /dev/sda1(1)                                         
        [my_lv_rimage_1] my_vg iwi-aor--- 4.00g                                                     /dev/sdb1(1)                                         
        [my_lv_rimage_2] my_vg iwi-aor--- 4.00g                                                     /dev/sdc1(1)                                         
        [my_lv_rmeta_0]  my_vg ewi-aor--- 4.00m                                                     /dev/sda1(0)                                         
        [my_lv_rmeta_1]  my_vg ewi-aor--- 4.00m                                                     /dev/sdb1(0)                                         
        [my_lv_rmeta_2]  my_vg ewi-aor--- 4.00m                                                     /dev/sdc1(0)                                         
      [root@virt-511 ~]# lvs -a -o +devices
        LV               VG    Attr       LSize Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices                                              
        my_lv            my_vg rwi-a-r--- 4.00g                                    0.45             my_lv_rimage_0(0),my_lv_rimage_1(0),my_lv_rimage_2(0)
        [my_lv_rimage_0] my_vg iwi-aor--- 4.00g                                                     /dev/sda1(1)                                         
        [my_lv_rimage_1] my_vg iwi-aor--- 4.00g                                                     /dev/sdb1(1)                                         
        [my_lv_rimage_2] my_vg iwi-aor--- 4.00g                                                     /dev/sdc1(1)                                         
        [my_lv_rmeta_0]  my_vg ewi-aor--- 4.00m                                                     /dev/sda1(0)                                         
        [my_lv_rmeta_1]  my_vg ewi-aor--- 4.00m                                                     /dev/sdb1(0)                                         
        [my_lv_rmeta_2]  my_vg ewi-aor--- 4.00m                                                     /dev/sdc1(0)                                         
      [root@virt-511 ~]# lvs -a -o +devices
        LV               VG    Attr       LSize Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices                                              
        my_lv            my_vg rwi-a-r--- 4.00g                                    0.58             my_lv_rimage_0(0),my_lv_rimage_1(0),my_lv_rimage_2(0)
        [my_lv_rimage_0] my_vg iwi-aor--- 4.00g                                                     /dev/sda1(1)                                         
        [my_lv_rimage_1] my_vg iwi-aor--- 4.00g                                                     /dev/sdb1(1)                                         
        [my_lv_rimage_2] my_vg iwi-aor--- 4.00g                                                     /dev/sdc1(1)                                         
        [my_lv_rmeta_0]  my_vg ewi-aor--- 4.00m                                                     /dev/sda1(0)                                         
        [my_lv_rmeta_1]  my_vg ewi-aor--- 4.00m                                                     /dev/sdb1(0)                                         
        [my_lv_rmeta_2]  my_vg ewi-aor--- 4.00m                                                     /dev/sdc1(0)                                         
      [root@virt-511 ~]# lvs -a -o +devices
        LV               VG    Attr       LSize Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices                                              
        my_lv            my_vg rwi-a-r--- 4.00g                                    0.58             my_lv_rimage_0(0),my_lv_rimage_1(0),my_lv_rimage_2(0)
        [my_lv_rimage_0] my_vg iwi-aor--- 4.00g                                                     /dev/sda1(1)                                         
        [my_lv_rimage_1] my_vg iwi-aor--- 4.00g                                                     /dev/sdb1(1)                                         
        [my_lv_rimage_2] my_vg iwi-aor--- 4.00g                                                     /dev/sdc1(1)                                         
        [my_lv_rmeta_0]  my_vg ewi-aor--- 4.00m                                                     /dev/sda1(0)                                         
        [my_lv_rmeta_1]  my_vg ewi-aor--- 4.00m                                                     /dev/sdb1(0)                                         
        [my_lv_rmeta_2]  my_vg ewi-aor--- 4.00m                                                     /dev/sdc1(0)                                         
      [root@virt-511 ~]# lvs -a -o +devices
        LV               VG    Attr       LSize Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices                                              
        my_lv            my_vg rwi-a-r--- 4.00g                                    0.58             my_lv_rimage_0(0),my_lv_rimage_1(0),my_lv_rimage_2(0)
        [my_lv_rimage_0] my_vg iwi-aor--- 4.00g                                                     /dev/sda1(1)                                         
        [my_lv_rimage_1] my_vg iwi-aor--- 4.00g                                                     /dev/sdb1(1)                                         
        [my_lv_rimage_2] my_vg iwi-aor--- 4.00g                                                     /dev/sdc1(1)                                         
        [my_lv_rmeta_0]  my_vg ewi-aor--- 4.00m                                                     /dev/sda1(0)                                         
        [my_lv_rmeta_1]  my_vg ewi-aor--- 4.00m                                                     /dev/sdb1(0)                                         
        [my_lv_rmeta_2]  my_vg ewi-aor--- 4.00m                                                     /dev/sdc1(0)                                         
      [root@virt-511 ~]# lvs -a -o +devices
        LV               VG    Attr       LSize Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices                                              
        my_lv            my_vg rwi-a-r--- 4.00g                                    0.69             my_lv_rimage_0(0),my_lv_rimage_1(0),my_lv_rimage_2(0)
        [my_lv_rimage_0] my_vg iwi-aor--- 4.00g                                                     /dev/sda1(1)                                         
        [my_lv_rimage_1] my_vg iwi-aor--- 4.00g                                                     /dev/sdb1(1)                                         
        [my_lv_rimage_2] my_vg iwi-aor--- 4.00g                                                     /dev/sdc1(1)                                         
        [my_lv_rmeta_0]  my_vg ewi-aor--- 4.00m                                                     /dev/sda1(0)                                         
        [my_lv_rmeta_1]  my_vg ewi-aor--- 4.00m                                                     /dev/sdb1(0)                                         
        [my_lv_rmeta_2]  my_vg ewi-aor--- 4.00m                                                     /dev/sdc1(0)                                         
      [root@virt-511 ~]# lvchange --maxrecoveryrate 8K my_vg/my_lv
        Logical volume my_vg/my_lv changed.
      
      [root@virt-511 ~]# lvs -a -o +devices
        LV               VG    Attr       LSize Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices                                              
        my_lv            my_vg rwi-a-r--- 4.00g                                    100.00           my_lv_rimage_0(0),my_lv_rimage_1(0),my_lv_rimage_2(0)
        [my_lv_rimage_0] my_vg iwi-aor--- 4.00g                                                     /dev/sda1(1)                                         
        [my_lv_rimage_1] my_vg iwi-aor--- 4.00g                                                     /dev/sdb1(1)                                         
        [my_lv_rimage_2] my_vg iwi-aor--- 4.00g                                                     /dev/sdc1(1)                                         
        [my_lv_rmeta_0]  my_vg ewi-aor--- 4.00m                                                     /dev/sda1(0)                                         
        [my_lv_rmeta_1]  my_vg ewi-aor--- 4.00m                                                     /dev/sdb1(0)                                         
        [my_lv_rmeta_2]  my_vg ewi-aor--- 4.00m                                                     /dev/sdc1(0)                                         
      
      # How did we get all the way to 100.00% now?
      

              mcsontos@redhat.com Marian Csontos
              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: