cubefs/docs/source/user-guide/cli/flashnode.md
clinx 432ae228b6 feat(docs): add docs about 3.5.1
Signed-off-by: clinx <chenlin1@oppo.com>
2025-08-11 17:21:20 +08:00

68 lines
1.2 KiB
Markdown

# FlashNode Management
## List flash nodes
Obtain detailed information about each cache node in the system, including its unique identifier (ID), network address, and the status of cached data.
```bash
./cfs-cli flashnode list
```
## View FlashNode cache statistics
```bash
// When querying the status of a FlashNode, the associated key does not carry an expiration time.
./cfs-cli flashnode httpStat 127.0.0.1:17510
// When querying the status of a FlashNode, the associated key does carry an expiration time.
./cfs-cli flashnode httpStatAll 127.0.0.1:17510
```
Evict the volume flash_cache from a specific FlashNode
```bash
./cfs-cli flashnode httpEvict 127.0.0.1:17510 flash_cache
```
Enable/Disable flashnode
```bash
./cfs-cli flashnode set 127.0.0.1:17510 true
./cfs-cli flashnode set 127.0.0.1:17510 false
```
remove flashnode
```bash
./cfs-cli flashnode remove 127.0.0.1:17510
```
create fg
```bash
./cfs-cli flashgroup create
```
set flashgroup active
```bash
./cfs-cli flashgroup set 25 true
```
flashgroup add flashnode
```bash
./cfs-cli flashgroup nodeAdd 13 --zone-name=flashcache --addr="127.0.0.1:17510"
```
list flashgroup
```bash
./cfs-cli flashgroup list
```
show flashgroup group
```bash
./cfs-cli flashgroup graph
```