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

Making a volume server readOnly & Some other questions #405

Closed
ijunaid8989 opened this issue Nov 26, 2016 · 14 comments
Closed

Making a volume server readOnly & Some other questions #405

ijunaid8989 opened this issue Nov 26, 2016 · 14 comments

Comments

@ijunaid8989
Copy link

We have 1 master volume and 2 volume servers..

Do we have such parameters that so that we can keep a volume just for read operations and dont write anything on it anymore?

One more thing. we had a volume server of 70 TB. We first started it with max 2000 volumes and it had been created 763 and we needed to stop it to create more so we stopped it to 765 max. But it is consuming the total 70 TB. why is it so?

other hand we have 2370 max volumes in the same 74TB. why 765 taking all the available space?

@chrislusf
Copy link
Collaborator

  1. chmod 644 for the volume dat files. Probably a restart is needed.
  2. I do not know without any details.

@ijunaid8989
Copy link
Author

Sorry to ask but what kind of details you need. I can give you anything what you want But am unaware that what you want from me to see what is the issue!

@ijunaid8989
Copy link
Author

after chmod 664 will they get vacuumed as well or not?

@ijunaid8989
Copy link
Author

I did chmod as find /images/. -name "*.dat" | xargs chmod 644 restarted it. But its still writing to the same volumes.

@ijunaid8989
Copy link
Author

I tried chmod 444 and it made them readonly.. But am still not sure that vacuum is happening or not.

@chrislusf
Copy link
Collaborator

I checked the code. It still vacuums even it is readonly. I think we should not vacuum if it is readonly.

chrislusf added a commit that referenced this issue Nov 26, 2016
@ijunaid8989
Copy link
Author

Okay thanks for the feedback.
1: What are you preferring now? chmod 444 or 644?
2: I have tried to do something that I chmod 444 a volume. and then I deleted a file on it. it returned {"error":""}, the port 8888 stopped showing this file BUT on localhost:8080, I could still see that the file is present in volume files NOT in trash column. What this could be?
3: Our system is sending constant requests for deleting whole directories in recursive way, What will be the effect of this? (doing readOnly)

I cannot see this on http://localhost:8888/javascript/ but its not on trash as well.
image

thanks in advance!

@chrislusf
Copy link
Collaborator

chrislusf commented Nov 27, 2016 via email

@ijunaid8989
Copy link
Author

Hi Chris, After a restart how long it could take that volume server came up again? we have a 70TB, V server I restarted it, its been 5 hours its not up yet.

@chrislusf
Copy link
Collaborator

chrislusf commented Nov 28, 2016 via email

@ijunaid8989
Copy link
Author

Is there any way to vacuum a specific volume with volume id? as if volume is 2567, is there any way to vacuum it?

@chrislusf
Copy link
Collaborator

chrislusf commented Nov 28, 2016 via email

@ijunaid8989 ijunaid8989 changed the title Some questions Making a volume server readOnly & Some other questions Nov 28, 2016
@ingardm
Copy link
Contributor

ingardm commented May 22, 2017

@ijunaid8989 After 9ba52db do you still see vacuuming of older volumes? We're only seeing vacuuming of the newest volumes and we've not set readonly on any volumes. It seems the code above excludes older full volumes no matter how many deleted files/bytes they have.

@ijunaid8989
Copy link
Author

@ingardm Actually we are not on that latest version we are just using the old version 0.70Beta. So I am not sure what is the case, But at that time Chris added the functionality for not to vacuum read only volumes.

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

3 participants