From 8acf92d898eb34d3b81d60172161ca0c7cd2ea70 Mon Sep 17 00:00:00 2001 From: hc-github-team-nomad-core <82989552+hc-github-team-nomad-core@users.noreply.github.com> Date: Mon, 10 Jun 2024 09:52:24 -0400 Subject: [PATCH] backport of commit 1c976d126e6a5e7cb1e8b6cc3df765e0c9d8416e (#23278) Co-authored-by: James Rasell --- .../commands/operator/snapshot/inspect.mdx | 55 +++++++++++++++---- 1 file changed, 43 insertions(+), 12 deletions(-) diff --git a/website/content/docs/commands/operator/snapshot/inspect.mdx b/website/content/docs/commands/operator/snapshot/inspect.mdx index 221452f1d2b..1170fc5c705 100644 --- a/website/content/docs/commands/operator/snapshot/inspect.mdx +++ b/website/content/docs/commands/operator/snapshot/inspect.mdx @@ -2,28 +2,59 @@ layout: docs page_title: 'Commands: operator snapshot inspect' description: | - Display the current Raft peer configuration. + Displays information about a snapshot file stored on local disk. --- # Command: operator snapshot inspect -Displays information about a snapshot file on disk. +Displays information about a snapshot file stored on local disk. -To inspect the file "backup.snap": +## Usage + +```plaintext +nomad operator snapshot inspect [options] [file] +``` + +## Inspect Options +- `-json` : Output information about the snapshot file in JSON format. + +## Examples + +To inspect the file "backup.snap": ```shell-session $ nomad operator snapshot inspect backup.snap -ID 2-19-1592495928936 -Size 3902 -Index 19 -Term 2 -Version 1 -``` +Created = 2024-06-10T10:54:41+01:00 +ID = 10-215871-1718013281130 +Size = 158 KiB +Index = 215871 +Term = 10 +Version = 1 -## Usage +Type Count Size +JobVersion 15 42 KiB +Alloc 5 37 KiB +TimeTable 1 28 KiB +JobSubmission 15 17 KiB +Node 2 14 KiB +Job 4 10 KiB +CSIPlugin 1 1.9 KiB +Eval 5 1.6 KiB +CSIVolume 1 1.1 KiB +JobSummary 4 825 B +Variables 2 695 B +VariablesQuota 8 562 B +Index 18 498 B +Deployment 1 496 B +ServiceRegistration 1 318 B +ACLToken 1 286 B +SchedulerConfig 1 242 B +NodePool 2 236 B +Namespace 1 209 B +RootKeyMeta 1 127 B +ClusterMetadata 1 71 B -```plaintext -nomad operator snapshot inspect +Total 90 158 KiB ``` [outage recovery]: /nomad/tutorials/manage-clusters/outage-recovery