Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a tool to find possible dangling nodes #5420

Open
SandyXSD opened this issue Dec 23, 2024 · 2 comments
Open

Need a tool to find possible dangling nodes #5420

SandyXSD opened this issue Dec 23, 2024 · 2 comments
Labels
kind/feature New feature or request

Comments

@SandyXSD
Copy link
Contributor

What would you like to be added:
Add a way (maybe in the fsck command) to find dangling nodes in the FS.

Why is this needed:
A dangling node can not be accessed nor deleted, but it still takes space.

@SandyXSD SandyXSD added the kind/feature New feature or request label Dec 23, 2024
@SandyXSD
Copy link
Contributor Author

One possible case we've seen is that a file is deleted after the corresponding trash sub-directory has been cleaned up, see #5414 .

@anysql
Copy link
Contributor

anysql commented Dec 26, 2024

Just for remind:

For MySQL meta, I take the following stop to clear the isolated files.

1, delete the jfs_edge where parent is a trash sub-directory but the parent inode does not exists.
2, delete the jfs_node where parent is a trash sub-directory but the parent inode does not exists.
3, delete the jfs_chunk where inode does not exist in jfs_node.
4, delete the jfs_chunk_ref where chunkid not in jfs_chunk.

Then run gc command to clear these files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants