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

how to interface with discard options for vdo pool volumes?

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • rhel-9.1.0
    • lvm2 / VDO
    • None
    • Low
    • sst_logical_storage
    • ssg_filesystems_storage_and_HA
    • 13
    • Hide

      Likely ATM we don't know what is the solution here and how it should look like, Issue is rather some for of RFE.

      Show
      Likely ATM we don't know what is the solution here and how it should look like, Issue is rather some for of RFE.
    • False
    • Hide

      None

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

      Description of problem:

      lvmvdo(7) mentions the usage of discarding with with vdo pool lvs, however it doesn't mention any lvm commands or options to make it happen. I noticed the flag '--discards' doesn't work with lvconvert or lvchange when dealing with VDO volumes. Is the only way to interface with these volumes to mounted an fs on top and using fstrim?

      [root@hayes-01 ~]# lvconvert --yes --type vdo-pool -n vdo_lv -V100G --discards nopassdown vdo_sanity/vdo_pool
      Command does not accept option: --discards nopassdown.

      [root@hayes-01 ~]# lvchange --discards nopassdown vdo_sanity/vdo_pool
      Command on LV vdo_sanity/vdo_pool uses options that require LV types thinpool .
      Command not permitted on LV vdo_sanity/vdo_pool.

      Version-Release number of selected component (if applicable):
      lvm2-2.03.14-6.el8 BUILT: Fri Jul 29 05:40:53 CDT 2022
      lvm2-libs-2.03.14-6.el8 BUILT: Fri Jul 29 05:40:53 CDT 2022

            zkabelac@redhat.com Zdenek Kabelac
            cmarthal@redhat.com Corey Marthaler
            Zdenek Kabelac Zdenek Kabelac
            Cluster QE Cluster QE
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: