LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-06-2020, 09:09 AM   #1
Abrixas2
LQ Newbie
 
Registered: Mar 2020
Posts: 9

Rep: Reputation: Disabled
[RFC] [GlusterFS] Patch set to add GlusterFS


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.
Attached Files
File Type: txt liburcu.patch.txt (4.6 KB, 45 views)
File Type: txt glusterfs.patch.txt (7.1 KB, 45 views)
File Type: txt network-scripts.patch.txt (1.5 KB, 44 views)
File Type: txt sysvinit-scripts.patch.txt (1.4 KB, 51 views)
 
Old 03-09-2020, 12:20 PM   #2
Abrixas2
LQ Newbie
 
Registered: Mar 2020
Posts: 9

Original Poster
Rep: Reputation: Disabled
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.
Attached Files
File Type: txt network-scripts.patch.txt (2.3 KB, 6 views)
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[RFC] [Samba] Patch to enable CTDB and replace rc.samba Abrixas2 Slackware 2 03-10-2020 01:00 PM
Slackware-current patch for improved /etc/crypttab handling; RFC WLD Slackware 4 01-26-2020 04:05 PM
What paremeters to add to .config to allow kernel build with a reiser4 patch [reiser4-for-4.11.0.patch.gz]? Glenn D. Linux - Software 1 08-05-2017 11:49 PM
LXer: Glusterfs replicated volume based Havana 2013.2 instances on Server With GlusterFS 3.4.1 Fedor LXer Syndicated Linux News 0 11-03-2013 11:00 AM
Is Kernel SCTP (based on RFC 4960) backward compatible with RFC 2960 implementation sajalmalhotra Linux - Networking 0 07-22-2011 12:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration