diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2014-03-25 13:06:59 +0100 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2014-03-25 13:06:59 +0100 |
commit | ce78cb58eb84c24c4ba31167f7b7fc03301b454b (patch) | |
tree | 2cdd9ba4cea531b798e3a24bafeeef8c3b721a67 /scripts | |
parent | 0738f0ad7289cca4121aace1540e479648a1abe2 (diff) | |
download | lvm2-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-x | scripts/lvmdump.sh | 2 |
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\"" |