Answer the question
In order to leave comments, you need to log in
How to get files from one of the brick glusterfs?
Rescue comrades!
There were two servers running glusterfs replica2.
One server is irretrievably lost, the second does not have a system disk, only the disk on which one of the bricks was located. Can you tell me how to extract data from it?
Answer the question
In order to leave comments, you need to log in
It has become a habit to answer your own questions.
I don't know how "dirty hack" this is, but here's what I did:
1. rename the .glusterfs directory
2. change the attributes of the brick directory setfattr -x trusted.glusterfs.volume-id /brick_path; setfattr -x trusted.gfid /brick_path
3. Create a new volume with this brick
4. MANDATORY set all the flags that were specified in the deceased volume (for example, I had features.shard: on
features.shard-block-size: 512MB
which I did not take into account, and could not understand why the turnip is empty)
5. Start volume
6. Stop volume
7. Stop the gluster daemon (not sure if it is necessary)
8. Move the old .glusterfs (which we renamed in step 1) back
9. Start the daemon, volume and enjoy life
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question