From 935dcfd1d01e17067dd2b290cb3711d4740b82dc Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 1 Jan 2020 12:39:59 -0800 Subject: [PATCH] Updated weed shell (markdown) --- weed-shell.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/weed-shell.md b/weed-shell.md index 3f30ea4..cede73c 100644 --- a/weed-shell.md +++ b/weed-shell.md @@ -1,5 +1,37 @@ `weed shell` starts an interactive console to do some maintenance operations. +``` +$ weed shell +> help +Type: "help " for help on + collection.delete # delete specified collection + collection.list # list all collections + ec.balance # balance all ec shards among all racks and volume servers + ec.decode # decode a erasure coded volume into a normal volume + ec.encode # apply erasure coding to a volume + ec.rebuild # find and rebuild missing ec shards among volume servers + fs.cat # stream the file content on to the screen + fs.cd # change directory to http://:/dir/ + fs.du # show disk usage + fs.ls # list all files under a directory + fs.meta.cat # print out the meta data content for a file or directory + fs.meta.load # load saved filer meta data to restore the directory and file structure + fs.meta.notify # recursively send directory and file meta data to notifiction message queue + fs.meta.save # save all directory and file meta data to a local file for metadata backup. + fs.mv # move or rename a file or a folder + fs.pwd # print out current directory + fs.tree # recursively list all files under a directory + volume.balance # balance all volumes among volume servers + volume.copy # copy a volume from one volume server to another volume server + volume.delete # delete a live volume from one volume server + volume.fix.replication # add replicas to volumes that are missing replicas + volume.list # list all volumes + volume.mount # mount a volume from one volume server + volume.move # move a live volume from one volume server to another volume server + volume.tier.download # download the dat file of a volume from a remote tier + volume.tier.upload # upload the dat file of a volume to a remote tier + volume.unmount # unmount a volume from one volume server``` + Here are some operations currently support * For master and volume servers * list all collections