-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Samba: add clustering functionality. #27300
Conversation
dde0de9
to
365cd7b
Compare
Yes, but I would make it a build option that gets added to |
365cd7b
to
dd965f8
Compare
|
||
vmove usr/libexec/ctdb | ||
vmove usr/share/ctdb | ||
vmove etc/ctdb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it appropriate for package updates to clobber everything in /etc/ctdb
, or should some of the files in /etc/ctdb
be marked as conf_files
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The files under /etc/ctdb
, other than ctdb.conf
and nodes
, are scripts used for administering ctdb.
Now that I think about it, those scripts should probably go under mutable_files
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even if they are scripts, if you expect the user to modify them and you don't want to clobber them with every update, use conf_files
instead of mutable_files
. Files listed in mutable_files
are still replaced during upgrades and removed when a package is removed, but XBPS ignores changes to the files when evaluating package integrity. Files listed in conf_files
are removed or replaced if and only if their contents have not been changed by the user since installation time.
Also, please incorporate ahesford@6efd1c0. I noticed some typos in the You should not need to modify |
Thank you for your feedback. Right now I'm not at home; I'll integrate your changes ASAP. Just to get the last part right: I'll remove all my changes to |
Yes, and don't forget to add |
4ea2a31
to
9988c3c
Compare
9988c3c
to
1c550a0
Compare
Also remove a few more private libraries that can be built in. Co-authored-by: andry-dev <andry-dev@users.noreply.github.com> Co-authored-by: Andrew J. Hesford <ajh@sideband.org> Closes: void-linux#27300 [via git-merge-pr]
Also remove a few more private libraries that can be built in. Co-authored-by: andry-dev <andry-dev@users.noreply.github.com> Co-authored-by: Andrew J. Hesford <ajh@sideband.org> Closes: void-linux#27300 [via git-merge-pr]
I've done a little more digging into this and have made changes in my branch to address the following concerns:
Please take a look at commit ahesford/void-packages@d700385 and, if you have no objections, I'll merge that one. |
I looked at your commit and it seems fine to me. You can merge that one and close this PR. Thank you for your time and patience! |
I waited for Samba 4.X to get merged to create this PR. I didn't want to interfere with the original one because it was pretty important.
This PR enables the cluster module (
ctdb
) and the GlusterFS VFS:/usr/lib/samba/glusterfs_vfs.so
) is needed to improve I/O performance with GlusterFS volumes. This is enabled automatically ifwaf
can find the Gluster libraries, so to make it work it's only needed to addglusterfs-devel
in themakedepends
forsamba
and that's it.ctdb
module is needed to keep track of TDB across various nodes in a cluster, so that a share can be exposed as a single IP and resume operations in case of node failures. This is generally used in conjunction with Gluster, Ceph or other distributed filesystems.Enabling both modules doesn't break existing users since these features are opt-in: for the Gluster VFS you specifically need to enable it in a share definition (see vfs_glusterfs(8)); for
ctdb
you need to enable and configure the daemonctdbd
.EDIT: So it seems that
glusterfs
doesn't work on-musl
, can I enable it only forglibc
builds?