When and why vgs command can change metadata and incur old metadata to be backed up?
2017-10-31 00:00
585 查看
I asked:
Sometimes, I see the following message in the VG metadata backups under /etc/lvm/archive:
"""
contents = "Text Format Volume Group"
version = 1
description = "Created before executing 'vgs'"
"""
I'm wondering when and why the new backups will be created by reporting command like vgs?
David:
It's probably a case where lvm sees something wrong after reading the VG
metadata, and automatically tries to fix it, writing a corrected version
of the metadata to disk. This means that even a command that only reads
and reports lvm information can potentially write to disk.
Right now it's hard to identify the precise instances and locations of
these repairs. But, I am in the middle of reworking the VG reading code
with the goal of consolidating and clarifying all the cases of repair, at
which point we can improve the way we handle this. I think we want to try
to make these repairs more limited and controlled, especially for commands
that in theory are only reading and reporting information. I've also
suggested that whenever repairs are done, lvm should record a persistent
message in the system log with the details, but that idea didn't get a
great reception.
Alasdair:
Very simply if the metadata the command has just read in does not match
the last backup stored in the local filesystem and the process is able
and configured to write a new backup.
The command that made the metadata change might not have written a
backup if it crashed, was configured not to write backups, was running
with the filesystem readonly (e.g. booted into a recovery mode), ran on
a different node in a cluster, ran as part of an installer that chose
not to give you any metadata backups, performed metadata recovery etc.
(Plus an old release had a bug where the checking went wrong and it
made a backup every time even though nothing had actually changed.)
Sometimes, I see the following message in the VG metadata backups under /etc/lvm/archive:
"""
contents = "Text Format Volume Group"
version = 1
description = "Created before executing 'vgs'"
"""
I'm wondering when and why the new backups will be created by reporting command like vgs?
David:
It's probably a case where lvm sees something wrong after reading the VG
metadata, and automatically tries to fix it, writing a corrected version
of the metadata to disk. This means that even a command that only reads
and reports lvm information can potentially write to disk.
Right now it's hard to identify the precise instances and locations of
these repairs. But, I am in the middle of reworking the VG reading code
with the goal of consolidating and clarifying all the cases of repair, at
which point we can improve the way we handle this. I think we want to try
to make these repairs more limited and controlled, especially for commands
that in theory are only reading and reporting information. I've also
suggested that whenever repairs are done, lvm should record a persistent
message in the system log with the details, but that idea didn't get a
great reception.
Alasdair:
Very simply if the metadata the command has just read in does not match
the last backup stored in the local filesystem and the process is able
and configured to write a new backup.
The command that made the metadata change might not have written a
backup if it crashed, was configured not to write backups, was running
with the filesystem readonly (e.g. booted into a recovery mode), ran on
a different node in a cluster, ran as part of an installer that chose
not to give you any metadata backups, performed metadata recovery etc.
(Plus an old release had a bug where the checking went wrong and it
made a backup every time even though nothing had actually changed.)
相关文章推荐
- [知其然不知其所以然-30] How to work around when system can not be woken up
- Obtain Diesel engine Designer watches can be bought in the many most up-to-date styles and designs
- How can selenium web driver get to know when the new window has opened and then resume its execution
- hbase启动报错hbase-default.xml file seems to be for and old version of HBase
- -pie can only be used when targeting iOS 4.2 or laterclang: error: linker command failed with exit c
- The CHECK_POLICY and CHECK_EXPIRATION options cannot be turned OFF when MUST_CHANGE is ON. (Microsoft SQL Server,错误: 15128)
- The XML Litmus Test Understanding When and Why to Use XML
- 如何阻止文件被iTunes和iCloud同步 How do I prevent files from being backed up to iCloud and iTunes?
- On SDK version 23 and up, your app data will be automatically backed up and restored on app install.
- iPhone开发:如何阻止文件被iTunes和iCloud同步 How do I prevent files from being backed up to iCloud and iTunes?
- 最近一个工程出现的问题 以前工程可用的代码到这个工程里也会显示 The following classes could not be found: - ImageView (Change to and
- An explicit value for the identity column in table can only be specified when a column list is used and IDENTITY_INSERT is ON
- adb.exe被占用,The connection to adb is down, and a severe error has occured.adb.exe' and can be execute
- intel-amt-vulnerability-- memcmp and strncmp function calls can be skipped due to incorrect buffer l
- CSSCAN and CSALTER To Be Desupported after DB 11.2. (文档 ID 1418321.1)
- to disable the entity lazy load, The ObjectContext instance has been disposed and can no longer be used for operations that require a connection.
- <merge /> can be used only with a valid ViewGroup root and attachToRoot=true
- When encountered a program hang,what command can I use to analysis this issue
- Why no effects when change the "Site Master Page Settings" from "Site Actions - Site Settings - Look and Feel - Master Page"?
- 【译】Why JavaScript Is and Will Continue to Be the First Choice of Programmers