LVM operation fails to run on XenServer 7 with following error.
"global/metadata_read_only" is set
--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
Change it from metadata_read_only=1
to
metadata_read_only=0
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
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 |