summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2014-03-25 13:06:59 +0100
committerPeter Rajnoha <prajnoha@redhat.com>2014-03-25 13:06:59 +0100
commitce78cb58eb84c24c4ba31167f7b7fc03301b454b (patch)
tree2cdd9ba4cea531b798e3a24bafeeef8c3b721a67 /scripts
parent0738f0ad7289cca4121aace1540e479648a1abe2 (diff)
downloadlvm2-ce78cb58eb84c24c4ba31167f7b7fc03301b454b.tar.gz
lvmdump: add lvm dumpconfig --type diff/missing
For a quick overview of config when debugging and to quickly check which values are different from defaults and which are not defined in the config and for which defaults are used.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/lvmdump.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/lvmdump.sh b/scripts/lvmdump.sh
index 6d9fe6ddf..46ba8cfdb 100755
--- a/scripts/lvmdump.sh
+++ b/scripts/lvmdump.sh
@@ -206,6 +206,8 @@ log "$TAIL -n 75 /var/log/messages >> \"$dir/messages\" 2>> \"$log\""
myecho "Gathering /etc/lvm info..."
log "$LS -laR /etc/lvm >> \"$dir/etc_lvm_listing\" 2>> \"$log\""
log "$CP -RL --preserve=all /etc/lvm \"$dir/lvm\" 2>> \"$log\""
+log "$LVM dumpconfig --type diff --file \"$dir/config_diff\" 2>> \"$log\""
+log "$LVM dumpconfig --type missing --file \"$dir/config_missing\" 2>> \"$log\""
myecho "Gathering /dev listing..."
log "$LS -laR /dev >> \"$dir/dev_listing\" 2>> \"$log\""