Skip to content

Commit e79ac45

Browse files
Merge pull request #964 from oracle-devrel/adm-2
added BeeOND role and beegfs-single-client setup scripts and configs
2 parents d103b0c + 9fe409a commit e79ac45

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+5494
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# beegfs-singlenode-setup
2+
Quick and dirty Beegfs single node setup configuration files
3+
4+
2xBM.Optimized3.36
5+
6+
7+
# License
8+
9+
Copyright (c) 2024 Oracle and/or its affiliates.
10+
11+
Licensed under the Universal Permissive License (UPL), Version 1.0.
12+
13+
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# This is a config file for the automatic build process of BeeGFS client kernel
2+
# modules.
3+
# http://www.beegfs.com
4+
5+
6+
#
7+
# --- Section: [Notes] ---
8+
#
9+
10+
# General Notes
11+
# =============
12+
# To force a rebuild of the client modules:
13+
# $ /etc/init.d/beegfs-client rebuild
14+
#
15+
# To see a list of available build arguments:
16+
# $ make help -C /opt/beegfs/src/client/client_module_${BEEGFS_MAJOR_VERSION}/build
17+
#
18+
# Help example for BeeGFS 2015.03 release:
19+
# $ make help -C /opt/beegfs/src/client/client_module_2015.03/build
20+
21+
22+
# RDMA Support Notes
23+
# ==================
24+
# If you installed InfiniBand kernel modules from OpenFabrics OFED, then also
25+
# define the correspsonding header include path by adding
26+
# "OFED_INCLUDE_PATH=<path>" to the "buildArgs", where <path> usually is
27+
# "/usr/src/openib/include" or "/usr/src/ofa_kernel/default/include" for
28+
# Mellanox OFED.
29+
30+
31+
# NVIDIA GPUDirect Storage Support Notes
32+
# ==================
33+
# If you want to build BeeGFS with NVIDIA GPUDirect Storage support, add
34+
# "NVFS_H_PATH=<path>" to the "buildArgs" below, where path is the directory
35+
# that contains nvfs.h. This is usually
36+
# /usr/src/mlnx-ofed-kernel-VERSION/drivers/nvme/host.
37+
#
38+
# OFED_INCLUDE_PATH must also be defined and point to Mellanox OFED.
39+
#
40+
41+
#
42+
# --- Section: [Build Settings] ---
43+
#
44+
45+
# Build Settings
46+
# ==============
47+
# These are the arguments for the client module "make" command.
48+
#
49+
# Note: Quotation marks and equal signs can be used without escape characters
50+
# here.
51+
#
52+
# Example1:
53+
# buildArgs=-j8
54+
#
55+
# Example2 (see "RDMA Support Notes" above):
56+
# buildArgs=-j8 OFED_INCLUDE_PATH=/usr/src/openib/include
57+
#
58+
# Example3 (see "NVIDIA GPUDirect Storage Support Notes" above):
59+
# buildArgs=-j8 OFED_INCLUDE_PATH=/usr/src/ofa_kernel/default/include \
60+
# NVFS_H_PATH=/usr/src/mlnx-ofed-kernel-5.4/drivers/nvme/host
61+
#
62+
# Default:
63+
# buildArgs=-j8
64+
65+
buildArgs=-j8
66+
67+
68+
# Turn Autobuild on/off
69+
# =====================
70+
# Controls whether modules will be built on "/etc/init.d/beegfs-client start".
71+
#
72+
# Note that even if autobuild is enabled here, the modules will only be built
73+
# if no beegfs kernel module for the current kernel version exists in
74+
# "/lib/modules/<kernel_version>/updates/".
75+
#
76+
# Default:
77+
# buildEnabled=true
78+
79+
buildEnabled=true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/bash -e
2+
# BeeGFS client mount hook script
3+
4+
action="${1}"
5+
mountpoint="${2}"
6+
7+
# THIS IS AN EXAMPLE SCRIPT.
8+
# Copy and modify it, and remove the following line:
9+
exit 1
10+
11+
if [ ! -d "${mountpoint}" ]
12+
then
13+
echo "${0}: Mount point does not exist: ${mountpoint}"
14+
exit 1
15+
fi
16+
17+
case "${action}" in
18+
19+
pre-mount)
20+
;;
21+
22+
post-mount)
23+
mount -o bind "${mountpoint}/foo" "${mountpoint}/bar"
24+
;;
25+
26+
pre-unmount)
27+
umount "${mountpoint}/bar"
28+
;;
29+
30+
post-unmount)
31+
;;
32+
33+
*)
34+
echo "${0}: Unrecognized option supplied to client mount hook: ${action}"
35+
exit 1
36+
;;
37+
esac

0 commit comments

Comments
 (0)