cubefs/docs/source/tools/cfs-cli/datanode.md
setcy 491bed5e0a docs(tools): split Using CLI Tools section
Signed-off-by: setcy <2670061551@qq.com>
2023-09-14 14:17:13 +08:00

33 lines
723 B
Markdown

# DataNode Management
## List DataNodes
Get information of all dataNodes, including ID, address, read/write status, and survival status.
```bash
cfs-cli datanode list
```
## Show DataNode Information
Show basic information of the dataNode, including status, usage, and the ID of the partition it carries.
```bash
cfs-cli datanode info [Address]
```
## Decommission DataNode
Decommission the dataNode. The data partitions on this node will be automatically transferred to other available nodes.
```bash
cfs-cli datanode decommission [Address]
```
## Transfer Data Partitions
Transfer the data partition on the source dataNode to the target dataNode.
```bash
cfs-cli datanode migrate [srcAddress] [dstAddress]
```