github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/docs/commands/operator/raft/info.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: 'Commands: operator raft info'
     4  description: |
     5    Display Raft server state.
     6  ---
     7  
     8  # Command: operator raft info
     9  
    10  The `raft info` command is used to display summary information about the
    11  raft logs persisted in the Nomad [data directory].
    12  
    13  This command requires file system permissions to access the data
    14  directory on disk. The Nomad server locks access to the data
    15  directory, so this command cannot be run on a data directory that is
    16  being used by a running Nomad server.
    17  
    18  ~> **Warning:** This is a low-level debugging tool and not subject to
    19    Nomad's usual backward compatibility guarantees.
    20  
    21  ## Usage
    22  
    23  ```plaintext
    24  nomad operator raft info <path to data dir>
    25  ```
    26  
    27  ## Examples
    28  
    29  An example output is as follows:
    30  
    31  ```shell-session
    32  $ sudo nomad operator raft info /var/nomad/data
    33  path:        /var/nomad/data/server/raft/raft.db
    34  length:      10
    35  first index: 1
    36  last index:  10
    37  ```
    38  
    39  [data directory]: /docs/configuration#data_dir