1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

lvmdump: include major and minor numbers for pvs and lvs reports

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.
This commit is contained in:
Peter Rajnoha 2016-07-14 14:33:33 +02:00
parent 4e1bf7acd3
commit 07be2b864f

View File

@ -142,10 +142,10 @@ if (( $advanced )); then
log "\"$LVM\" pvscan -v >> \"$dir/pvscan\" 2>> \"$log\"" log "\"$LVM\" pvscan -v >> \"$dir/pvscan\" 2>> \"$log\""
myecho " lvs..." 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..." 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..." myecho " vgs..."
log "\"$LVM\" vgs -v >> \"$dir/vgs\" 2>> \"$log\"" log "\"$LVM\" vgs -v >> \"$dir/vgs\" 2>> \"$log\""