Removing the LVM2 settings after uninstalling HDLM

Dynamic Link Manager (for Linux®) User Guide

Version
9.0.x
Audience
anonymous
Part Number
MK-92DLM113-64
ft:lastEdition
2025-11-06

After uninstalling HDLM in an environment where LVM2 is used, edit the /etc/lvm/lvm.conf file. In the device section of the /etc/lvm/lvm.conf file, disable the unnecessary HDLM device settings, and delete the comments that had been added to the /etc/lvm/lvm.conf file by performing the following procedures:

The following shows an example of editing the /etc/lvm/lvm.conf file.

  • For Red Hat Enterprise Linux 9 or Oracle Linux 9:

    Before:

    devices {
                                  :
            # global_filter = [ "a/.*/" ]
            # global_filter = [ "a|sddlm[a-p][a-p].*|", "r|/dev/sd|" ]
            global_filter = [ "r|sddlm[a-p][a-p].*|", "a|/dev/sd|" ]
                                  :
            # types = [ "fd", 16 ]
            # types = [ "sddlmfdrv", 16 ]
                                  :
            md_component_detection = 1
            # md_component_detection=0
                                  :
            allow_changes_with_duplicate_pvs = 0
            # allow_changes_with_duplicate_pvs = 1
                                  :
            multipath_component_detection=1
            # multipath_component_detection=0
                                  :
            use_devicesfile=1
            # use_devicesfile=0
                                  :
    }

    After:

    devices {
                                  :
            global_filter = [ "a/.*/" ]
                                  :
            # types = [ "fd", 16 ]
                                  :
            md_component_detection = 1
                                  :
            allow_changes_with_duplicate_pvs = 0
                                  :
            multipath_component_detection=1
                                  :
            use_devicesfile=1
                                  :
    }

    Delete global_filter = [ "r|sddlm[a-p][a-p].*|", "a|/dev/sd|" ].

    Delete the comment out character (#) from the global_filter entry to return the definition file to the state it was in before the HDLM device configuration was enabled.

    Delete the following comments:

    • # global_filter = [ "a|sddlm[a-p][a-p].*|", "r|/dev/sd|" ]
    • # types = [ "sddlmfdrv", 16 ]
    • # md_component_detection=0
    • # allow_changes_with_duplicate_pvs = 1
    • # multipath_component_detection=0
    • # use_devicesfile=0
  • For Red Hat Enterprise Linux 8, Oracle Linux 8, Oracle Unbreakable Enterprise Kernel 8 or SUSE LINUX Enterprise Server 15 SP2 or later:

    Before:

    devices {
                                  :
            # global_filter = [ "a/.*/" ]
            # global_filter = [ "a|sddlm[a-p][a-p].*|", "r|/dev/sd|" ]
            global_filter = [ "r|sddlm[a-p][a-p].*|", "a|/dev/sd|" ]
                                  :
            # types = [ "fd", 16 ]
            # types = [ "sddlmfdrv", 16 ]
                                  :
            md_component_detection = 1
            # md_component_detection=0
                                  :
            allow_changes_with_duplicate_pvs = 0
            # allow_changes_with_duplicate_pvs = 1
                                  :
    }

    After:

    devices {
                                  :
            global_filter = [ "a/.*/" ]
                                  :
            # types = [ "fd", 16 ]
                                  :
            md_component_detection = 1
                                  :
            allow_changes_with_duplicate_pvs = 0
                                  :
    }

    Delete global_filter = [ "r|sddlm[a-p][a-p].*|", "a|/dev/sd|" ].

    Delete the comment out character (#) from the global_filter entry to return the definition file to the state it was in before the HDLM device configuration was enabled.

    Delete the following comments:

    • # global_filter = [ "a|sddlm[a-p][a-p].*|", "r|/dev/sd|" ]
    • # types = [ "sddlmfdrv", 16 ]
    • # md_component_detection=0
    • # allow_changes_with_duplicate_pvs = 1
  • For SUSE LINUX Enterprise Server 12, SUSE LINUX Enterprise Server 15 SP1 or earlier, Red Hat Enterprise Linux 7, Oracle Linux 7 or Oracle Unbreakable Enterprise Kernel 7:

    If you want to use use_lvmetad=0 for operation, specify filter, not global_filter.

    Before:

    # This section allows you to configure which block devices should
    # be used by the LVM system.
    devices {
                                  :
            # filter = [ "a/.*/" ]
            # filter = [ "a|sddlm[a-p][a-p].*|", "r|/dev/sd|" ]
            filter = [ "r|sddlm[a-p][a-p].*|", "a|/dev/sd|" ]
                                  :
            write_cache_state = 1
            # write_cache_state = 0
                                  :
            # types = [ "fd", 16 ]
            # types = [ "sddlmfdrv", 16 ]
                                  :
            md_component_detection = 1
            # md_component_detection=0
                                  :
    }

    After:

    # This section allows you to configure which block devices should
    # be used by the LVM system.
    devices {    
                                  :
            filter = [ "a/.*/" ]
                                  :
            write_cache_state = 1
                                  :
            # types = [ "fd", 16 ]
                                  :
            md_component_detection = 1
                                  :
    }

    Delete filter = [ "r|sddlm[a-p][a-p].*|", "a|/dev/sd|" ].

    Delete the comment out character (#) from the filter entry to return the definition file to the state it was in before the HDLM device configuration was enabled.

    Delete the following comments:

    • # filter = [ "a|sddlm[a-p][a-p].*|", "r|/dev/sd|" ]
    • # write_cache_state = 0
    • # types = [ "sddlmfdrv", 16 ]
    • # md_component_detection=0
  • For OSs other than the above:

    If you want to use use_lvmetad=1 for operation in an LVM2 version that can use global_filter, specify global_filter, not filter.

    Before:

    # This section allows you to configure which block devices should
    # be used by the LVM system.
    devices {    
                                  :
            # filter = [ "a/.*/" ]
                                  :
            # global_filter = [ "a/.*/" ]
            # global_filter = [ "a|sddlm[a-p][a-p].*|", "r|/dev/sd|" ]
            global_filter = [ "r|sddlm[a-p][a-p].*|", "a|/dev/sd|" ]
                                  :
            write_cache_state = 1
            # write_cache_state = 0
                                  :
            # types = [ "fd", 16 ]
            # types = [ "sddlmfdrv", 16 ]
                                  :
            md_component_detection = 1
            # md_component_detection=0
                                  :
    }

    After:

    # This section allows you to configure which block devices should
    # be used by the LVM system.
    devices {    
                                  :
            # filter = [ "a/.*/" ]
                                  :
            global_filter = [ "a/.*/" ]
                                  :
            write_cache_state = 1
                                  :
            # types = [ "fd", 16 ]
                                  :
            md_component_detection = 1
                                  :
    }

    Delete global_filter = [ "r|sddlm[a-p][a-p].*|", "a|/dev/sd|" ].

    Delete the comment out character (#) from the global_filter entry to return the definition file to the state it was in before the HDLM device configuration was enabled.

    Delete the following comments:

    • # global_filter = [ "a|sddlm[a-p][a-p].*|", "r|/dev/sd|" ]
    • # write_cache_state = 0
    • # types = [ "sddlmfdrv", 16 ]
    • # md_component_detection=0