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

raid --minrecoveryrate flag either doesn't work at all with lvcreate, or should tell the user what the maximum is

    • lvm2-2.03.23-1.el9
    • None
    • Low
    • sst_logical_storage
    • ssg_filesystems_storage_and_HA
    • 23
    • 3
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:

      [root@virt-521 ~]# lvcreate --type raid10 -i 2 -m 1 -L 10G --minrecoveryrate 64 -n mylv2 myvg
      Using default stripesize 64.00 KiB.
      Minimum recovery rate cannot be higher than maximum.
      Run `lvcreate --help' for more information.
      [root@virt-521 ~]# lvcreate --type raid10 -i 2 -m 1 -L 10G --minrecoveryrate 32 -n mylv2 myvg
      Using default stripesize 64.00 KiB.
      Minimum recovery rate cannot be higher than maximum.
      Run `lvcreate --help' for more information.
      [root@virt-521 ~]# lvcreate --type raid10 -i 2 -m 1 -L 10G --minrecoveryrate 16 -n mylv2 myvg
      Using default stripesize 64.00 KiB.
      Minimum recovery rate cannot be higher than maximum.
      Run `lvcreate --help' for more information.
      [root@virt-521 ~]# lvcreate --type raid10 -i 2 -m 1 -L 10G --minrecoveryrate 8 -n mylv2 myvg
      Using default stripesize 64.00 KiB.
      Minimum recovery rate cannot be higher than maximum.
      Run `lvcreate --help' for more information.
      [root@virt-521 ~]# lvcreate --type raid10 -i 2 -m 1 -L 10G --minrecoveryrate 4 -n mylv2 myvg
      Using default stripesize 64.00 KiB.
      Minimum recovery rate cannot be higher than maximum.
      Run `lvcreate --help' for more information.
      [root@virt-521 ~]# lvcreate --type raid10 -i 2 -m 1 -L 10G --minrecoveryrate 2 -n mylv2 myvg
      Using default stripesize 64.00 KiB.
      Minimum recovery rate cannot be higher than maximum.
      Run `lvcreate --help' for more information.
      [root@virt-521 ~]# lvcreate --type raid10 -i 2 -m 1 -L 10G --minrecoveryrate 1 -n mylv2 myvg
      Using default stripesize 64.00 KiB.
      Minimum recovery rate cannot be higher than maximum.
      Run `lvcreate --help' for more information.

      [root@virt-521 ~]# lvcreate --type raid10 -i 2 -m 1 -L 10G --minrecoveryrate 1b -n mylv2 myvg
      Size is not a multiple of 512. Try using 0 or 512.
      Invalid argument for --minrecoveryrate: 1b
      Error during parsing of command line.

      [root@virt-521 ~]# lvcreate --type raid10 -i 2 -m 1 -L 10G --minrecoveryrate 512 -n mylv2 myvg
      Using default stripesize 64.00 KiB.
      Minimum recovery rate cannot be higher than maximum.
      Run `lvcreate --help' for more information.

      [root@virt-521 ~]# lvcreate --type raid1 -m 1 -L 10G --minrecoveryrate 512 -n mylv2 myvg
      Minimum recovery rate cannot be higher than maximum.
      Run `lvcreate --help' for more information.
      [root@virt-521 ~]# lvcreate --type raid1 -m 1 -L 10G --minrecoveryrate 4kb -n mylv2 myvg
      Minimum recovery rate cannot be higher than maximum.
      Run `lvcreate --help' for more information.

      Version-Release number of selected component (if applicable):
      kernel-5.14.0-312.el9 BUILT: Thu May 11 08:04:19 PM CEST 2023
      lvm2-2.03.21-2.el9 BUILT: Thu May 25 12:03:04 AM CEST 2023
      lvm2-libs-2.03.21-2.el9 BUILT: Thu May 25 12:03:04 AM CEST 2023

            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:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: