gfs2_lockcapture(8)
π gfs2_lockcapture β the girlies' guide to snatching GFS2 lock data π
okay so bestie, this is a page from the System Manager's Manual, section 8, and it's all about gfs2_lockcapture. pull up a chair, grab a strawberry π, and let's get into it.
β¨ NAME β¨
gfs2_lockcapture β capture locking information from GFS2 file systems and DLM. π
πΈ SYNOPSIS πΈ
gfs2_lockcapture [-dqyP] [-o output directory] [-r number of runs] [-s
seconds to sleep] [-n name of GFS2 file system]
gfs2_lockcapture [-dqyi]
π¦ DESCRIPTION π¦
so gfs2_lockcapture is the tool that goes and captures the GFS2 lockdump data plus the corresponding DLM data for your GFS2 file systems. you can configure how many captures happen and how often they happen. by default it collects data from all of the mounted GFS2 file systems, unless you specifically name which GFS2 file systems you want. no cap. π
β οΈ heads up bestie: thesysrq -t(thread) and-m(memory) dumps and the pid directories in/procare all collected unless you turn them off with the-Poption. so like, it's a lot of data. it's giving thorough. it's giving nosy. π₯
π OPTIONS π
-h,--helpβ prints out a short usage message and then dips. exit stage left. π«Ά-d,--debugβ turns on debug logging. for when you need the tea in full detail. β-q,--quietβ disables logging to the console. shhh. π€«-y,--no_askβ disables all the questions and just assumes yes. no back-and-forth, we're committing. periodt. π-i,--infoβ prints information about the mounted GFS2 file systems. a lil vibe check on what's mounted. π-P,--disable_process_gatherβ the gathering of process information will be disabled. bye process info, we hardly knew ye. π-o<output directory>,--path_to_output_dir=<output directory> β the directory where all the collected data will be stored. this is where the receipts live, bestie. π-r<number of runs>,--num_of_runs=<number of runs> β the number of runs capturing the lockdump data. the default is 3 runs. so three little scoops by default. π-s<seconds to sleep>,--seconds_sleep=<seconds to sleep> β the number of seconds to sleep between runs of capturing the lockdump data. the default is 120 seconds. yes, it naps. it's self-care. π΄-n<name of GFS2 filesystem>,--fs_name=<name of GFS2 filesystem> β the name of the GFS2 filesystem(s) that will have their lockdump data captured. by default, all mounted GFS2 file systems get their data captured. main character energy for every single one of them. β¨
π NOTES π
the output of the following commands will be captured (aka the whole group chat is getting screenshotted):
uname -auptimeps h -AL -o "tid,s,cmd"df -hlsofmount -ldlm_tool lsdlm_tool lockdebug -v -s -w <lockspace name>echo "t" > /proc/sysrq-trigger(If/proc/1/stackdoes not exist)echo "m" > /proc/sysrq-trigger(If/proc/1/stackdoes not exist)
π§ AUTHOR π§
Shane Bradley <sbradley@fedoraproject.org> β shoutout to the author, an absolute icon. π
ποΈ FILES ποΈ
/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/stackdoes exists)/var/log/messages/var/log/cluster/
π SEE ALSO π
gfs2_lockcapture(8) β yeah bestie, it's pointing at itself. self-love fr fr. π
okay that's the whole thing, and now the cute sign-off: this was gfs2_lockcapture from the System Manager's Manual, section 8 β literally just the page name up in the corner, no extra date or version drama attached. mwah, go capture those locks responsibly. πβ¨ππ¦πΈπ
π«Ά
π¦ where this page comes from
- debian bookworm: gfs2-utils 3.5.0-2 Β· GPL-2.0-or-later
- debian trixie: gfs2-utils 3.6.1-1 Β· GPL-2.0-or-later
- nixpkgs unstable: gfs2-utils 3.6.1
- ubuntu jammy: gfs2-utils 3.4.1-2 Β· GPL-2.0-or-later
- ubuntu noble: gfs2-utils 3.5.1-1 Β· GPL-2.0-or-later
- ubuntu questing: gfs2-utils 3.6.1-1
- ubuntu resolute: gfs2-utils 3.6.1-1build1 Β· GPL-2.0-or-later
- ubuntu stonking: gfs2-utils 3.6.1-2ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms