All of lore.kernel.org
 help / color / mirror / Atom feed
* Concerns about metadata balance downgrading / backwards compatibility
@ 2010-06-23 13:50 Dave Wysochanski
  0 siblings, 0 replies; only message in thread
From: Dave Wysochanski @ 2010-06-23 13:50 UTC (permalink / raw)
  To: lvm-devel

In review of the metadata balance patches, concern was raised about
backward compatibility.  In particular, the following questions were
raised:

Q. How does the user "go back" to a previous revision of lvm if he's
been using metadata balancing?
A: If the user wants to use an old version of the lvm tools, he SHOULD
use "vgchange --vgmetadatacopies N", where N >= vg_mda_count (number of
mdas across all PVs in the VG).  The reason this is recommended is so
that all mdas contain the latest version of the metadata.  If he does
not do this, when using the old tools, it will still work, but he will
get a warning that the VG is inconsistent.  Even in this case though,
the next time the metadata is written, it will be written out
consistently, with a message stating the older copies of metadata have
been updated.

Q: Won't the 'ignore' bits in the mda_header and/or the
"metadata_copies" value written in the VG metadata cause problems with
older LVM tools?
A: No.  The placement of the 'ignore' bits was done in a location on
disk in the mda_header that was previously a 'filler' field (see patch
#1).  As such, the value of the field is irrelevant to previous LVM
versions.  As far as the VG metadata, LVM is written to disregard fields
it does not understand in the VG metadata, so older tools will not parse
the "metadata_copies" field/value, and will not write it back out the
next time an LVM operation updates the metadata.

I think this addresses the compatibility concerns, without need for
further patches.  If there are other specific concerns, please let me
know.

Thanks.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-06-23 13:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-23 13:50 Concerns about metadata balance downgrading / backwards compatibility Dave Wysochanski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.