mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Updated weed shell (markdown)
parent
1443b9a11a
commit
935dcfd1d0
|
@ -1,5 +1,37 @@
|
||||||
`weed shell` starts an interactive console to do some maintenance operations.
|
`weed shell` starts an interactive console to do some maintenance operations.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ weed shell
|
||||||
|
> help
|
||||||
|
Type: "help <command>" for help on <command>
|
||||||
|
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://<filer_server>:<port>/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
|
Here are some operations currently support
|
||||||
* For master and volume servers
|
* For master and volume servers
|
||||||
* list all collections
|
* list all collections
|
||||||
|
|
Loading…
Reference in a new issue