Skip to contentSkip to conversation

master - lvmdump: add -s to gather system info and context (currently systemd-related only)

PATCH Peter Rajnoha 1 participant 1 message Apr 15, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a6763c64a735769991170b64bb2224c861f69f3a
Commit:        a6763c64a735769991170b64bb2224c861f69f3a
Parent:        704609b17ee5c67fec65400ba48841aff70c6d21
Author:        Peter Rajnoha <[email protected]>
AuthorDate:    Tue Apr 15 15:27:30 2014 +0200
Committer:     Peter Rajnoha <[email protected]>
CommitterDate: Tue Apr 15 15:27:30 2014 +0200

lvmdump: add -s to gather system info and context (currently systemd-related only)

This is sort of info we always ask people to retrieve when inspecting problems in systemd environment so let's have this as part of lvmdump directly.

The -s option does not need to be bound to systemd only. We could add support for initscripts or any other system-wide/service tracking info that can help us with debugging problems.

---
 WHATS_NEW          |    1 +
 man/lvmdump.8.in   |    9 +++++++++
 scripts/lvmdump.sh |   44 ++++++++++++++++++++++++++++++++++++++------
 3 files changed, 48 insertions(+), 6 deletions(-)
WHATS_NEW +1 -0
index f3da48c..c2cb3be 100644
@@ -1,5 +1,6 @@
 Version 2.02.107 - 
 ==================================
+  Add lvmdump -s to collect system info and context (currently systemd only).
   Refactor allocation code to make A_POSITIONAL_FILL explicit.
   Use thread-safe ctime_r() for clvmd debug logging.
   Skip adding replies to already finished reply thread.
man/lvmdump.8.in +9 -0
index 5e355de..a34e062 100644
@@ -10,6 +10,7 @@ lvmdump - create lvm2 information dumps for diagnostic purposes
 .RB [ \-h ]
 .RB [ \-l ]
 .RB [ \-m ]
+.RB [ \-s ]
 .RB [ \-u ]
 .SH DESCRIPTION
 lvmdump is a tool to dump various information concerning LVM2.
@@ -40,6 +41,8 @@ The content of the tarball is as follows:
 .br
 - if enabled with \-l, lvmetad state if running
 .br
+- if enabled with \-s, system info and context
+.br
 - if enabled with \-u, udev info and context
 .SH OPTIONS
 .TP
@@ -72,6 +75,12 @@ This option generates a 1:1 dump of the metadata area from all PVs visible
 to the system, which can cause the dump to increase in size considerably.
 However, the metadata dump may represent a valuable diagnostic resource.
 .TP
+.B \-s
+Gather system info and context. Currently, this encompasses systemd info
+and context only: overall state of systemd units present in the system,
+more detailed status of units controlling LVM functionality and the content
+of systemd journal for current boot.
+.TP
 .B \-u
 Gather udev info and context: /etc/udev/udev.conf file, udev daemon version
 (output of 'udevadm info --version' command), udev rules currently used in the system
scripts/lvmdump.sh +38 -6

72 lines not on this page · raw message