DOKK / manpages / debian 12 / gfs2-utils / gfs2_lockcapture.8.en
gfs2_lockcapture(8) System Manager's Manual gfs2_lockcapture(8)

gfs2_lockcapture - capture locking information from GFS2 file systems and DLM.

gfs2_lockcapture [-dqyP] [-o output directory] [-r number of runs] [-s seconds to sleep] [-n name of GFS2 file system]

gfs2_lockcapture [-dqyi]

gfs2_lockcapture is used to capture the GFS2 lockdump data and corresponding DLM data for GFS2 file systems. The number of captures and their frequency can be configured. By default all of the mounted GFS2 file systems will have their data collected unless GFS2 file systems are specified.

Please note that sysrq -t (thread) and -m (memory) dumps and the pid directories in /proc are collected unless they are disabled with the -P option.

Prints out a short usage message and exits.
Enables debug logging.
Disables logging to console.
Disables all questions and assumes yes.
Prints information about the mounted GFS2 file systems.
The gathering of process information will be disabled.
The directory where all the collect data will be stored.
The number of runs capturing the lockdump data. The default is 3 runs.
The number of seconds to sleep between runs of capturing the lockdump data. The default is 120 seconds.
The name of the GFS2 filesystem(s) that will have their lockdump data captured. By default, all mounted GFS2 file systems will have their data captured.

The output of the following commands will be captured:

  • uname -a
  • uptime
  • ps h -AL -o "tid,s,cmd"
  • df -h
  • lsof
  • mount -l
  • dlm_tool ls
  • dlm_tool lockdebug -v -s -w <lockspace name>
  • echo "t" > /proc/sysrq-trigger (If /proc/1/stack does not exist)
  • echo "m" > /proc/sysrq-trigger (If /proc/1/stack does not exist)

Shane Bradley <sbradley@fedoraproject.org>

/proc/mounts
/proc/slabinfo
/sys/kernel/config/dlm/cluster/lkbtbl_size
/sys/kernel/config/dlm/cluster/dirtbl_size
/sys/kernel/config/dlm/cluster/rsbtbl_size
/sys/kernel/debug/gfs2/
/sys/kernel/debug/dlm/
/proc/<int>/ (If /proc/1/stack does exists)
/var/log/messages
/var/log/cluster/