From a77dcd9abce2c6d56bc528f0ad15eac7a6fe9d80 Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> Date: Mon, 13 Feb 2023 14:53:04 +0500 Subject: [PATCH] Updated weed shell (markdown) --- weed-shell.md | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/weed-shell.md b/weed-shell.md index 1390774..3fe97cc 100644 --- a/weed-shell.md +++ b/weed-shell.md @@ -107,7 +107,7 @@ no under replicated volumes ``` # Check and Fix chunks replication -if use see in logs: +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 ``` @@ -131,6 +131,56 @@ find missing file chunks in dataNodeId fast-volume-3:8080 volume 2480 ... /buckets/logs-data/2022-10-10/39228128_2022-10-10.log ``` +Find the chunk id **2480,09a6290e6159aedd**: +``` +> fs.meta.cat /buckets/logs-data/2022-10-10/39228128_2022-10-10.log +{ + "name": "39228128_2022-10-10.log", + "isDirectory": false, + "chunks": [ + { + "fileId": "2480,09a6290e6159aedd", + "offset": "0", + "size": "3884", + "modifiedTsNs": "1665409412570272776", + "eTag": "O5jilriNGhfJRBCCs+yU4g==", + "sourceFileId": "", + "fid": { + "volumeId": 2480, + "fileKey": "161884430", + "cookie": 1633267421 + }, + "sourceFid": null, + "cipherKey": "", + "isCompressed": false, + "isChunkManifest": false + } + ], + "attributes": { + "fileSize": "3884", + "mtime": "1665409412", + "fileMode": 504, + "uid": 0, + "gid": 0, + "crtime": "1665409412", + "mime": "", + "ttlSec": 0, + "userName": "", + "groupName": [], + "symlinkTarget": "", + "md5": "", + "rdev": 0, + "inode": "0" + }, + "extended": {}, + "hardLinkId": "", + "hardLinkCounter": 0, + "content": "", + "remoteEntry": null, + "quota": "0" +}chunks 1 meta size: 124 gzip:152 +``` + 3. fs.verify Check the status of all chunks uploaded in the last hour: ```