Skip to content

Commit

Permalink
[zfs] add collection of files from /proc/spl
Browse files Browse the repository at this point in the history
Add collection of files under /proc/spl which contain useful
statistics and data for debugging and analysing zfs.

Resolves: #3194

Signed-off-by: Rafael Lopez <rafael.lopez@canonical.com>
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
  • Loading branch information
rafalop authored and pmoravec committed Apr 13, 2023
1 parent d7f3c02 commit 6f02393
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions sos/report/plugins/zfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,28 @@ def setup(self):
"zpool status -vx"
])

self.add_copy_spec([
"/proc/spl/kmem/slab",
"/proc/spl/kstat/zfs/fm",
"/proc/spl/kstat/zfs/zil",
"/proc/spl/kstat/zfs/dbufs",
"/proc/spl/kstat/zfs/dbgmsg",
"/proc/spl/kstat/zfs/dmu_tx",
"/proc/spl/kstat/zfs/abdstats",
"/proc/spl/kstat/zfs/arcstats",
"/proc/spl/kstat/zfs/dbufstats",
"/proc/spl/kstat/zfs/dnodestats",
"/proc/spl/kstat/zfs/xuio_stats",
"/proc/spl/kstat/zfs/zfetchstats",
"/proc/spl/kstat/zfs/import_progress",
"/proc/spl/kstat/zfs/fletcher_4_bench",
"/proc/spl/kstat/zfs/vdev_cache_stats",
"/proc/spl/kstat/zfs/vdev_raidz_bench",
"/proc/spl/kstat/zfs/vdev_mirror_stats",
"/proc/spl/taskq",
"/proc/spl/taskq-all",
])

zpools = self.collect_cmd_output("zpool list -H -o name")
if zpools['status'] == 0:
zpools_list = zpools['output'].splitlines()
Expand Down

0 comments on commit 6f02393

Please sign in to comment.