]> sourceware.org Git - lvm2.git/commitdiff
lvmdump: include major and minor numbers for pvs and lvs reports
authorPeter Rajnoha <prajnoha@redhat.com>
Thu, 14 Jul 2016 12:33:33 +0000 (14:33 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Thu, 14 Jul 2016 12:33:33 +0000 (14:33 +0200)
Including major and minor numbers in pvs and lvs output when calling
lvmdump -a makes it a bit easier to match these items with possible
system log/journal.

scripts/lvmdump.sh

index bfe79d9949685966a50cb2cfce93cdf93500ef0f..d13a69be634bdfe45d640fe4bba85c2aa3f57dfc 100755 (executable)
@@ -142,10 +142,10 @@ if (( $advanced )); then
        log "\"$LVM\" pvscan -v >> \"$dir/pvscan\" 2>> \"$log\""
 
        myecho "  lvs..."
-       log "\"$LVM\" lvs -a -H -o +devices >> \"$dir/lvs\" 2>> \"$log\""
+       log "\"$LVM\" lvs -a -H -o +devices,kernel_major,kernel_minor >> \"$dir/lvs\" 2>> \"$log\""
 
        myecho "  pvs..."
-       log "\"$LVM\" pvs -a -v >> \"$dir/pvs\" 2>> \"$log\""
+       log "\"$LVM\" pvs -a -o +major,minor -v >> \"$dir/pvs\" 2>> \"$log\""
 
        myecho "  vgs..."
        log "\"$LVM\" vgs -v >> \"$dir/vgs\" 2>> \"$log\""
This page took 0.035249 seconds and 5 git commands to generate.