Getting error such as “WARNING: Device mismatch detected for vg/lv which is accessing/dev/mapper/l

1920 단어 vgchange

Getting error such as " WARNING: Device mismatch detected for vg/lv which is accessing /dev/mapper/lun1 instead of /dev/mapper/lun2" after lvm migration.


환경

  • Red Hat Enterprise Linux 6
  • lvm2


  • 문제

  • Getting below error when executing  lvm  commands after  lvm  migration using  pvmove : Raw
    WARNING: Device mismatch detected for vg/lv which is accessing /dev/mapper/lun1 instead of /dev/mapper/lun2
    
  • When running  lvs  command, it displays the following output: Raw
    WARNING: Device mismatch detected for vg_name/lv_name which is accessing /dev/mapper/mpathap1 instead of (null).
    WARNING: Device mismatch detected for vg_name/lv_name which is accessing /dev/mapper/mpathbp1 instead of (null).
    WARNING: Device mismatch detected for vg_name/lv_name which is accessing /dev/mapper/mpathcp1 instead of (null).
    WARNING: Device mismatch detected for vg_name/lv_name which is accessing /dev/mapper/mpathdp1 instead of (null).
    [...]
    Refusing refresh of partial LV vg_name/lv_name. Use '--activationmode partial' to override.
    Refusing refresh of partial LV vg_name/lv_name. Use '--activationmode partial' to override.
    Refusing refresh of partial LV vg_name/lv_name. Use '--activationmode partial' to override.
    Refusing refresh of partial LV vg_name/lv_name. Use '--activationmode partial' to override.
    [...]
    

  • 결의

  • If the PV was missing and then returned, add a PV back into a VG: Raw
    # vgextend --restoremissing vg_name
    # pvscan
    # vgscan
    
  • If the LV is active, reload its metadata using the following command:
  • Reload its metadata using below command.

  • Raw
    # vgchange --refresh VolumeGroupName

    좋은 웹페이지 즐겨찾기