[pve-devel] Install glusterfs-server as default

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Aug 14 11:44:15 CEST 2019


Am 8/9/19 um 1:13 PM schrieb Dominic Jäger:
> As explained in detail in bug 2293 [0] glusterfsscan is not working at the moment. Our function tries to contact a nfs server that is running inside gluster servers that does not respond.
> 
> There is a command line utility simply called 'gluster' [1] that can solve this problem in a single line:
> 'gluster --remote-host=<gluster_node> volume list'
> Unfortunately, this utility is shipped in the package glusterfs-server which is not installed on PVE 6 as default.

The usage of `gluster` would be fine to me, but I agree with Fabian
it would be much nicer if the tool came in it's own package, I do not
want to ship glusterfs server by default..

An option could be to make our own small wrapper which is just able to
do the single RPC to the remote host required for listing the volumes.

There's 'libgfrpc0' which can be used. One could orient this on the
gluster CLI tool implementation of the list command[0], which is a bit
dry but together with it's RPC initialisation implementation[1] it could
be enough to extract the details needed.

[0]: https://github.com/gluster/glusterfs/blob/master/cli/src/cli-cmd-volume.c#L2766
[1]: https://github.com/gluster/glusterfs/blob/master/cli/src/cli.c#L677

But that's just an idea, I'd maybe go for it if the implementation + testing
seems to need only a few hours, else it may not be worth the headache..

> 
> I've now spent some hours looking for another solution but have not found anything simpler so far. Thus, I'd appreciate other ideas on this topic, especially regarding how much we want to avoid adding glusterfs-server.
> 
> [0] https://bugzilla.proxmox.com/show_bug.cgi?id=2293
> [1] https://manpages.debian.org/buster/glusterfs-server/gluster.8.en.html




More information about the pve-devel mailing list