Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions tests/tasks/debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
- name: Gather debug information
shell:
executable: /bin/bash
cmd: |
set -uxo pipefail
exec 1>&2
if type -p lsblk >/dev/null; then
lsblk -p --pairs --bytes -o NAME,TYPE,SIZE,FSTYPE,LOG-SEC
fi
if type -p mdadm >/dev/null; then
mdadm --misc --examine --scan
fi
if type -p dmsetup >/dev/null; then
dmsetup ls --tree --separator /
fi
if type -p lvm >/dev/null; then
lvm vgdisplay
fi
if type -p udevadm >/dev/null; then
udevadm settle -t 0
fi
dnf -y install lsof
ls -alrtFR /dev/md*
mdadm -v --misc --examine --scan | while read -r array dev other; do
if [[ "$dev" =~ ^/dev ]]; then
mdadm --detail "$dev"
lsof | grep /dev/md
fi
done
mount
lvs -a -o name,vgname,segtype,attr,copy_percent,lv_health_status,devices
pvs -o pv_name,lv_initial_image_sync,lv_image_synced,raid_mismatch_count,raid_sync_action,raid_write_behind,\
raid_min_recovery_rate,raid_max_recovery_rate,\
raidintegritymode,raidintegrityblocksize,copy_percent,sync_percent,stripes,data_stripes,region_size
lvs -o lv_name,lv_path,lv_initial_image_sync,lv_image_synced,raid_mismatch_count,raid_sync_action,raid_write_behind,\
raid_min_recovery_rate,raid_max_recovery_rate,\
raidintegritymode,raidintegrityblocksize,copy_percent,sync_percent,stripes,data_stripes,region_size
cat /tmp/blivet.log
cat /tmp/lvm.log
changed_when: false
Loading
Loading