LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   [RFC] [GlusterFS] Patch set to add GlusterFS (https://www.linuxquestions.org/questions/slackware-14/%5Brfc%5D-%5Bglusterfs%5D-patch-set-to-add-glusterfs-4175670852/)

Abrixas2 03-06-2020 09:09 AM

[RFC] [GlusterFS] Patch set to add GlusterFS
 
4 Attachment(s)
Hi,
I propose the following patch set to add GlusterFS and its
prerequisite liburcu to Slackware.

The set contains the following patches:
  1. liburcu.patch,
  2. glusterfs.patch,
  3. network-scripts.patch and
  4. sysvinit-scripts.patch.
The source archives are available at https://lttng.org/files/urcu/userspa...0.11.1.tar.bz2 and https://download.gluster.org/pub/glu...rfs-7.3.tar.gz.

The patches introducing new packages are based on the respective build scripts published on slackbuilds.org, to which I made the following changes:
  1. remove the _SBo tag,
  2. determine version from the source archive name,
  3. add switch to use multiple threads when building,
  4. add code for printing the resulting package name only and
  5. minor changes, for example variable defaults and the name of the source archive.

The other patches modify the files scripts/rc.inet2 in the network-scripts package to mount GlusterFS volumes, essentially using the same strategy as used for mounting NFS shares, and scripts/rc.6 in the sysvinit-scripts package to unmount GlusterFS volumes and stop glusterd.

Abrixas2 03-09-2020 12:20 PM

1 Attachment(s)
I found a problem with the proposed patch for network-scripts: after starting the GlusterFS daemon, some additional time is required for the volumes to come online. To handle this, I added logic to scripts/rc.inet2 to wait for all volumes that are to be mounted automatically, but not for more than 60 seconds.


All times are GMT -5. The time now is 09:05 PM.