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

Distributed volume and write/remove file on peer disconnected #4414

Open
daikoz opened this issue Sep 19, 2024 · 0 comments
Open

Distributed volume and write/remove file on peer disconnected #4414

daikoz opened this issue Sep 19, 2024 · 0 comments

Comments

@daikoz
Copy link

daikoz commented Sep 19, 2024

Hello

I have a question:

I currently test glusterfs for resized image cache (performance).
No need replication (data can be recreated easily).

I create a distributed volume
gluster volume create volumedata transport tcp test-1:/data/data.glusterfs test-2:/data/data.glusterfs test-3:/data/data.glusterfs test-4:/data/data.glusterfs force

I mount disk
mount -t glusterfs localhost:/volumedata /mnt/glusterfs

I create several files on /mnt/glusterfs

touch file1
...
touch file100

I found a file on peer test-4:
getfattr -n trusted.glusterfs.pathinfo /mnt/glusterfs/file3

For example, I have file3 on peer test-4

I stop glusterfs on peer test-4 to simulate a server crash
systemctl stop glusterd

Now I try to recreate file3 (simulate a cache file recreation)
touch /mnt/glusterfs/file3 touch: cannot touch 'file3': Transport endpoint is not connected

Question

How to recreate a file currently on a disconnected peer without wait peer reconnection ?
Or how to remove a file in glusterfs's database to allow to recreate it ?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant