diff options
author | Irit goihman <igoihman@redhat.com> | 2019-04-07 14:04:48 +0300 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2019-04-15 17:48:51 +0100 |
commit | 208a1d9622dfa13d923882793cd19e9e6cf1e488 (patch) | |
tree | 40e79c1bb9ca44335e48df41fc3a2a048048257c | |
parent | 7141ebf3b2071c84286ced29154c33502c4da934 (diff) | |
download | sos-208a1d9622dfa13d923882793cd19e9e6cf1e488.tar.gz |
[vdsm] use metadata_read_only=1 for LVM2 commands
-rw-r--r-- | sos/plugins/vdsm.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sos/plugins/vdsm.py b/sos/plugins/vdsm.py index 4549c372..913d49a5 100644 --- a/sos/plugins/vdsm.py +++ b/sos/plugins/vdsm.py @@ -22,6 +22,10 @@ import re # there is a stuck lvm command. # locking_type=0 # +# To prevent modifications to volume group metadata (for e.g. due to a +# automatically detected inconsistency), metadata_read_only is set to 1. +# metadata_read_only=1 +# # use_lvmetad is set to 0 in order not to show cached, old lvm metadata. # use_lvmetad=0 # @@ -31,6 +35,7 @@ import re LVM_CONFIG = """ global { locking_type=0 + metadata_read_only=1 use_lvmetad=0 } devices { |