---
name: "gfs2_trace"
section: "8"
platform: "linux"
package: "gfs2-utils"
version: "3.6.1-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/gfs2_trace"
---

# gfs2\_trace(8)

can enable trace events, disable trace events, and capture data from GFS2 trace events.

## NAME

gfs2\_trace - can enable trace events, disable trace events, and capture data from GFS2 trace events.

## SYNOPSIS

**gfs2\_trace \[-dqEN\] \[-e *trace event name\]* \[-n *trace event name\]* \[-o *output filename\]***

## DESCRIPTION

*gfs2\_trace* can enabled and disable trace events on all trace events or selected trace events. *gfs2\_trace* can capture the output of the trace events and write the output to a file. When capturing trace events, the script will exit when control-c is pressed. The trace events will be then written to the selected file.

## OPTIONS

- **-h, --help**

  Prints out a short usage message and exits.

- **-d, --debug**

  enables debug logging.

- **-q, --quiet**

  disables logging to console.

- **-l, --list**

  lists the enabled state and filters for the GFS2 trace events

- **-E, --enable\_all\_trace\_events**

  enables all trace\_events for GFS2

- **-e** *\<trace event name\>,* **----enable\_trace\_event**=*\<trace event name\>*

  selected trace\_events that will be enabled for GFS2

- **-N, --disable\_all\_trace\_events**

  disables all trace\_events for GFS2

- **-n** *\<trace event name\>,* **----disable\_trace\_event**=*\<trace event name\>*

  selected trace\_events that will be enabled for GFS2

- **-c** *\<output filename\>,* **--capture**=*\<output filename\>*

  enables capturing of trace events and will save the data to a file

## SEE ALSO
