[lvm-devel] master - lvmetad: improve warning after lvmetad message fails

David Teigland teigland at fedoraproject.org
Wed Apr 27 20:41:59 UTC 2016


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=263c1a4db51184c718e85c1c3fdcef7908dd7c88
Commit:        263c1a4db51184c718e85c1c3fdcef7908dd7c88
Parent:        3c53acb378478f23acf624be8836c0cb24c2724e
Author:        David Teigland <teigland at redhat.com>
AuthorDate:    Wed Apr 27 14:49:27 2016 -0500
Committer:     David Teigland <teigland at redhat.com>
CommitterDate: Wed Apr 27 15:38:34 2016 -0500

lvmetad: improve warning after lvmetad message fails

Make it more consistent with the other similar warning.
---
 lib/cache/lvmetad.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/cache/lvmetad.c b/lib/cache/lvmetad.c
index 8a1a2c5..8b63696 100644
--- a/lib/cache/lvmetad.c
+++ b/lib/cache/lvmetad.c
@@ -643,7 +643,7 @@ fail:
 	 * commands will not use it until it's been properly repopulated.
 	 */
 	if (action_modifies)
-		log_error("lvmetad update failed.  Restart lvmetad immediately.");
+		log_warn("WARNING: To avoid corruption, restart lvmetad (or disable with use_lvmetad=0).");
 
 	return 0;
 }




More information about the lvm-devel mailing list