mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
lvmdump: list also inactive units for lvmdump -s
This commit is contained in:
parent
a6763c64a7
commit
18caa562fe
@ -259,7 +259,7 @@ if (( $sysreport )); then
|
|||||||
lvm2-clvmd.service \
|
lvm2-clvmd.service \
|
||||||
lvm2-cmirrord.service \
|
lvm2-cmirrord.service \
|
||||||
> \"$sysreport_dir/systemd_lvm2_services_status\" 2>> \"$log\""
|
> \"$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
|
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\""
|
log "$SYSTEMCTL status -l --no-pager -n $log_lines -o short-precise $unit >> \"$sysreport_dir/systemd_lvm2_pvscan_service_status\""
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user