mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Avoid 'mda inconsistency' by properly registering UNLABELLED_PV flag (2.02.86).
When a PV label write is deferred to a vg_write call (as introduced by a patch in 2.02.86), the PV is flagged with the internal UNLABELLED_PV flag. However, when calling vg_archive before vg_write, we still have the PV labelled with the UNLABELLED_PV flag which was not recognised as a proper flag while exporting VG metadata: # vgcreate vg /dev/sda No physical volume label read from /dev/sda Metadata inconsistency: Not all flags successfully exported. Metadata inconsistency: Not all flags successfully exported. Writing physical volume data to disk "/dev/sda" Physical volume "/dev/sda" successfully created Volume group "vg" successfully created
This commit is contained in:
parent
bf09a32006
commit
5680d14ecd
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.89 -
|
Version 2.02.89 -
|
||||||
==================================
|
==================================
|
||||||
|
Avoid 'mda inconsistency' by properly registering UNLABELLED_PV flag (2.02.86).
|
||||||
Fix --enable-static_link unless using --enable-dmeventd / --enable-udev_sync.
|
Fix --enable-static_link unless using --enable-dmeventd / --enable-udev_sync.
|
||||||
Move gentoo MAKEDEV to /sbin in lvm2create_initrd.
|
Move gentoo MAKEDEV to /sbin in lvm2create_initrd.
|
||||||
Add filter to avoid scan of device if it is part of active multipath.
|
Add filter to avoid scan of device if it is part of active multipath.
|
||||||
|
@ -45,6 +45,7 @@ static const struct flag _pv_flags[] = {
|
|||||||
{ALLOCATABLE_PV, "ALLOCATABLE", STATUS_FLAG},
|
{ALLOCATABLE_PV, "ALLOCATABLE", STATUS_FLAG},
|
||||||
{EXPORTED_VG, "EXPORTED", STATUS_FLAG},
|
{EXPORTED_VG, "EXPORTED", STATUS_FLAG},
|
||||||
{MISSING_PV, "MISSING", COMPATIBLE_FLAG},
|
{MISSING_PV, "MISSING", COMPATIBLE_FLAG},
|
||||||
|
{UNLABELLED_PV, NULL, 0},
|
||||||
{0, NULL, 0}
|
{0, NULL, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user