WHEREIS



Error:"global/metadata_read_only" is set while performing lVM operation on XenServer 7


Applicable Products

  • XenServer 7.0

Symptoms or Error

LVM operation fails to run on XenServer 7  with following error.

"global/metadata_read_only" is set



Solution

 

  1. Either pass the following argument to the LVM commands

 

--config global{metadata_read_only=0}

 

Eg:

#pvcreate --restorefile /root/lvm-backup/VG_XenStorage-<sr uuid> --uuid <PV uuid > --config global{metadata_read_only=0}
 

             or

  1. Edit /etc/lvm/lvm.conf to correct the parameter metadata_read_only

 

Change it from metadata_read_only=1

                to

 metadata_read_only=0


Problem Cause

As a preventive measure not to mess up with the LVM metadata, configuration file in XenServer is set by default not to permit operation related to changing the lvm metadata. Sell below the related stanza from /etc/lvm/lvm.conf

 

        # Configuration option global/metadata_read_only.

        # No operations that change on-disk metadata are permitted.

        # Additionally, read-only commands that encounter metadata in need of

        # repair will still be allowed to proceed exactly as if the repair had

        # been performed (except for the unchanged vg_seqno). Inappropriate

        # use could mess up your system, so seek advice first!

        metadata_read_only = 1


https://support.citrix.com/article/CTX217668


'VM & Container > Xen' 카테고리의 다른 글

XEN SERVER export 에러  (0) 2017.10.25
xen 본딩 추가 CLI  (0) 2017.04.04
xen 6.0.2 LVM 구성  (0) 2016.12.20
nfs lib 제거  (0) 2016.08.10
xen nfs iso lib 제거  (0) 2016.06.09

이 글을 공유합시다

facebook twitter kakaoTalk kakaostory naver band
loading