Hitachi

Hitachi Dynamic Link Manager ユーザーズガイド(Linux®用)


3.20.7 HDLMのアンインストール後に行うLVM2の設定解除

LVM2を使用している環境でHDLMのアンインストール実施後,/etc/lvm/lvm.confファイルを編集します。/etc/lvm/lvm.confファイル中のデバイスセクションで,不要となったHDLMデバイスの構成を無効にするための設定と,以下の手順で/etc/lvm/lvm.confファイルに追加したコメントの削除を行います。

/etc/lvm/lvm.confファイルの編集例を次に示します。

  • Red Hat Enterprise Linux 9,10またはOracle Linux 9の場合

    変更前

    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
                                  :
    }

    変更後

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

    global_filter = [ "r|sddlm[a-p][a-p].*|", "a|/dev/sd|" ]およびmultipath_component_detection = 0を削除します。

    global_filterおよびmultipath_component_detectionエントリーのコメントを解除して,HDLMのデバイスの構成を有効にする前の状態に戻してください。

    以下のコメントを削除します。

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

    /etc/lvm/devices/system.devicesが存在しない場合は,vgimportdevices --allやlvmdevicesコマンドを実行してsystem.devicesファイルを再作成してください。使用するコマンドの詳細についてはOSのマニュアルを参照してください。

  • Red Hat Enterprise Linux 8,Oracle Linux 8,Oracle Unbreakable Enterprise Kernel 8またはSUSE LINUX Enterprise Server 15 SP2以降の場合

    変更前

    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
                                  :
    }

    変更後

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

    global_filter = [ "r|sddlm[a-p][a-p].*|", "a|/dev/sd|" ]を削除します。

    global_filterエントリーのコメントを解除して,HDLMのデバイスの構成を有効にする前の状態に戻してください。

    以下のコメントを削除します。

    • # global_filter = [ "a|sddlm[a-p][a-p].*|", "r|/dev/sd|" ]
    • # types = [ "sddlmfdrv", 16 ]
    • # md_component_detection = 0
    • # allow_changes_with_duplicate_pvs = 1
  • SUSE LINUX Enterprise Server 12,SUSE LINUX Enterprise Server 15 SP1以前,Red Hat Enterprise Linux 7,Oracle Linux 7およびOracle Unbreakable Enterprise Kernel 7の場合

    use_lvmetad = 0で運用する場合は,global_filterではなくfilterで指定してください。

    変更前

    # 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
                                  :
    }

    変更後

    # 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
                                  :
    }

    filter = [ "r|sddlm[a-p][a-p].*|", "a|/dev/sd|" ]を削除します。

    filterエントリーのコメントを解除して,HDLMのデバイスの構成を有効にする前の状態に戻してください。

    以下のコメントを削除します。

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


目次