From ddcd1fbedf7ed8709972c421615d9d51f400b050 Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> Date: Mon, 13 Feb 2023 15:00:19 +0500 Subject: [PATCH] Updated weed shell (markdown) --- weed-shell.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/weed-shell.md b/weed-shell.md index 3fe97cc..0509c86 100644 --- a/weed-shell.md +++ b/weed-shell.md @@ -111,7 +111,7 @@ if use see in logs filechunk **2480,09a6290e6159aedd** Not Found: ``` I0212 22:22:56.666094 filechunk_manifest.go:197 read http://fast-volume-1:8080/2480,09a6290e6159aedd failed, err: http://fast-volume-1:8080/2480,09a6290e6159aedd?readDeleted=true: 404 Not Found ``` -1. volume.check.disk +1. `volume.check.disk` ``` > lock; volume.check.disk -v -force -slow -volumeId 2480 -nonRepairThreshold 1 -syncDeleted load collection logs-data volume 2480 index size 2621232 from fast-volume-3:8080 ... @@ -119,7 +119,7 @@ load collection logs-data volume 2480 index size 2621232 from fast-volume-1:8080 volume 2480 fast-volume-1:8080 has 163827 entries, fast-volume-3:8080 missed 0 and partially deleted 0 entries volume 2480 fast-volume-3:8080 has 163827 entries, fast-volume-1:8080 missed 0 and partially deleted 0 entries ``` -2. volume.fsck +2. `volume.fsck` Search for files that are in the filler, but there are no chunks on the volume servers ``` lock;volume.fsck -findMissingChunksInFiler -verifyNeedles -collection logs-data -volumeId 2480 -v @@ -181,7 +181,7 @@ Find the chunk id **2480,09a6290e6159aedd**: }chunks 1 meta size: 124 gzip:152 ``` -3. fs.verify +3. `fs.verify` Check the status of all chunks uploaded in the last hour: ``` fs.verify -v -modifyTimeAgo 1h @@ -190,6 +190,8 @@ total 807944 directories, 121461080 files verified 53218 files, error 0 files ``` +In this case, you need a local incremental backup via [asynchronous replication](https://github.com/seaweedfs/seaweedfs/wiki/Async-Backup). + # One more trick You can skip the "fs." prefix, for all "fs.*" commands: ```