I am running Gluster-FS with a High-Availability Storage setup.

Both client and server nodes have NginX running to serve same files.


The problem is that the mirror nodes can't serve files because the owner and group is different.

The owner/group on main server is : web1:client0

and in order to make mirror nodes be able to serve files, their owner/group should be :


But because they're being copied from the main server, the owner/group attribute is same as web1:client0

What's the solution ?


You should keep users in sync between the web nodes, in this way you will be able to share data between them without ownership issues.

Since usually web workers are all clones from a single template, you should simply create a script that do an rsync over passwd and group file.

as a side note you can always change the user which is used by apache even on a per site basis, using an apache module like mod_itk.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.