[GH-ISSUE #92] How can I remove chain-table, chains, remove target and add new target for a cluster? #51

Open
opened 2026-10-26 09:44:10 +00:00 by bsakaguchi · 4 comments
Owner

Originally created by @xlcbingo1999 on GitHub (Mar 5, 2025).
Original GitHub issue: https://github.com/deepseek-ai/3FS/issues/92

Originally assigned to: @level077 on GitHub.

I used admin_cli and admin token to run the cmds in remove_target_cmd.txt, but when I run the cmd with prefix remove-target, I got the error shown that:

Encounter error: 4030(Storage: TargetStateInvalid)
remove failed: target is still in a chain! {"targetId": 10100010101, "vChainId: {"chainId": 900100010, "chainVer": 3}", "localState": "OFFLINE", "publicState": "OFFLINE", "chainId": 900100010, ...}

And I try to shutdown-all-chains, it may not success to remove chains.

I hope to receive a detailed guide.

Originally created by @xlcbingo1999 on GitHub (Mar 5, 2025). Original GitHub issue: https://github.com/deepseek-ai/3FS/issues/92 Originally assigned to: @level077 on GitHub. I used `admin_cli` and `admin token` to run the cmds in `remove_target_cmd.txt`, but when I run the cmd with prefix `remove-target`, I got the error shown that: ``` Encounter error: 4030(Storage: TargetStateInvalid) remove failed: target is still in a chain! {"targetId": 10100010101, "vChainId: {"chainId": 900100010, "chainVer": 3}", "localState": "OFFLINE", "publicState": "OFFLINE", "chainId": 900100010, ...} ``` And I try to shutdown-all-chains, it may not success to remove chains. I hope to receive a detailed guide.
Author
Owner

@xlcbingo1999 commented on GitHub (Mar 5, 2025):

And how can I reinit the whole storage cluster?

<!-- gh-comment-id:2699720740 --> @xlcbingo1999 commented on GitHub (Mar 5, 2025): And how can I reinit the whole storage cluster?
Author
Owner

@xlcbingo1999 commented on GitHub (Mar 5, 2025):

And if I remove a target 101000100101 --force, how can I recreate it?

I got err:

Encounter error: 7004(StorageClient::RoutingError)
creation of this target is prohibited {"targetId": 101000100101, "publicState": "LASTSRV"}
<!-- gh-comment-id:2699819535 --> @xlcbingo1999 commented on GitHub (Mar 5, 2025): And if I remove a target 101000100101 `--force`, how can I recreate it? I got err: ``` Encounter error: 7004(StorageClient::RoutingError) creation of this target is prohibited {"targetId": 101000100101, "publicState": "LASTSRV"} ```
Author
Owner

@haohaiwei commented on GitHub (Mar 14, 2025):

on admin_cli node, clear all fdb data (writemode on ;clearrange "" \xff), i used

<!-- gh-comment-id:2723854650 --> @haohaiwei commented on GitHub (Mar 14, 2025): on admin_cli node, clear all fdb data (writemode on ;clearrange "" \xff), i used
Author
Owner

@smdsbz commented on GitHub (Apr 18, 2025):

+1 on a walkthrough for scaling the cluster on-the-fly.

<!-- gh-comment-id:2814928659 --> @smdsbz commented on GitHub (Apr 18, 2025): +1 on a walkthrough for scaling the cluster on-the-fly.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/3FS#51
No description provided.