From 18caa562fe35b2617f5c2d04c2252b2b8fdfd08c Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Tue, 15 Apr 2014 15:43:20 +0200 Subject: [PATCH] lvmdump: list also inactive units for lvmdump -s --- scripts/lvmdump.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lvmdump.sh b/scripts/lvmdump.sh index b8f73f376..9229912ee 100755 --- a/scripts/lvmdump.sh +++ b/scripts/lvmdump.sh @@ -259,7 +259,7 @@ if (( $sysreport )); then lvm2-clvmd.service \ lvm2-cmirrord.service \ > \"$sysreport_dir/systemd_lvm2_services_status\" 2>> \"$log\"" - log "$SYSTEMCTL list-units -l --no-legend --no-pager > \"$sysreport_dir/systemd_unit_list\" 2>> \"$log\"" + log "$SYSTEMCTL list-units -l -a --no-legend --no-pager > \"$sysreport_dir/systemd_unit_list\" 2>> \"$log\"" for unit in $(cat $sysreport_dir/systemd_unit_list | grep lvm2-pvscan | cut -d " " -f 1); do log "$SYSTEMCTL status -l --no-pager -n $log_lines -o short-precise $unit >> \"$sysreport_dir/systemd_lvm2_pvscan_service_status\"" done