2019-07-31 21:52:25 +03:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
MGMT_HOSTNAME=$1
|
2019-08-01 01:14:10 +03:00
|
|
|
SHARE_SCRATCH=/beegfs
|
2019-07-31 21:52:25 +03:00
|
|
|
|
|
|
|
yum install -y beegfs-client beegfs-helperd beegfs-utils
|
|
|
|
|
|
|
|
sed -i 's/^sysMgmtdHost.*/sysMgmtdHost = '$MGMT_HOSTNAME'/g' /etc/beegfs/beegfs-client.conf
|
2020-04-16 19:31:01 +03:00
|
|
|
if [ -d "/usr/src/ofa_kernel/default/include" ]; then
|
2020-04-16 20:17:13 +03:00
|
|
|
sed -i 's#^buildArgs=.*#buildArgs=-j8 OFED_INCLUDE_PATH=/usr/src/ofa_kernel/default/include#g' /etc/beegfs/beegfs-client-autobuild.conf
|
2020-04-16 19:31:01 +03:00
|
|
|
fi
|
2019-08-01 01:14:10 +03:00
|
|
|
echo "$SHARE_SCRATCH /etc/beegfs/beegfs-client.conf" > /etc/beegfs/beegfs-mounts.conf
|
2019-07-31 21:52:25 +03:00
|
|
|
|
|
|
|
systemctl daemon-reload
|
|
|
|
systemctl enable beegfs-helperd.service
|
|
|
|
systemctl enable beegfs-client.service
|
2019-08-01 01:42:22 +03:00
|
|
|
systemctl start beegfs-helperd.service
|
2019-08-01 01:14:10 +03:00
|
|
|
systemctl start beegfs-client.service
|