Site Tools


New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
basic-setup_gxfsadm

basic setup of gxfsadm server

- setup the sytem with RHEL 7.6 from CD or USB stick - edit /etc/hosts to reflect other system - handle ssh keys to enable automated login to the gxfsadm servers in both directions - create YUM repo files to be able to install additional needed software

the following repom files are needed:

[root@gxfsadm0 ~]# ls -l /etc/yum.repos.d/
total 16
-rw-r--r--. 1 root root  88 Aug 28 14:43 raspi-addons.repo
-rw-r--r--. 1 root root 113 Aug 28 14:47 raspi-ofed46_rhel76.repo
-rw-r--r--. 1 root root  88 Aug 28 14:42 raspi-rhel76.repo
-rw-r--r--. 1 root root 358 Aug 28 14:34 redhat.repo
[root@gxfsadm0 ~]#

for the OS installation:

[raspi-rhel76]
name=raspi-rhel76
enabled=1
baseurl=http://raspi/repo/rhel76/
gpgcheck=0

addons:

[raspi-addons]
name=raspi-addons
enabled=1
baseurl=http://raspi/repo/addons/
gpgcheck=0

OFED fitting the installed RHEL version

[raspi-rhel76]
name=raspi-rhel76
enabled=1
baseurl=http://raspi/repo/rhel76/
gpgcheck=0

High Availabilty stuff

[raspi-rhel76-ha]
name=raspi-rhel76-ha
enabled=1
baseurl=http://10.100.101.40/repo/rhel76/addons/HighAvailability/

Resilient Storage stuff

[raspi-rhel76-rs]
name=raspi-rhel76-rs
enabled=1
baseurl=http://10.100.101.40/repo/rhel76/addons/ResilientStorage/
[root@gxfsadm0 yum.repos.d]#

The follwing additional packets need to be installed:

chrony
kexec-tools
telnet
iotop
lsscsi
sysfsutils
sg3_utils
device-mapper-multipath
nfs-utils
ntp
kernel-headers
kernel-devel
cpp
gcc
gcc-c++
ksh
dstat
tftp-server
openssl-devel
bzip2-devel
#
# addons
#
c3*
docker-ce
mlnx-ofed-basic
gpfs.*
SMutil
drbd90-utils
kmod-drbd90
python36
pacemaker
corosync
fence-agents-all
pcs

or in one line to copy and paste:

yum install chrony kexec-tools telnet iotop lsscsi sysfsutils sg3_utils \
            device-mapper-multipath nfs-utils ntp kernel-headers kernel-devel \
            cpp gcc gcc-c++ ksh dstat tftp-server openssl-devel bzip2-devel

yum install c3* docker-ce mlnx-ofed-basic SMutil drbd90-utils kmod-drbd90 python36 \
            pacemaker corosync fence-agents-all pcs

do some installations normally grounded in the anaconda kickstart file:

############################################################
# DRBD manage
############################################################
/bin/curl -o /tmp/drbdmanage-0.99.16.tar.gz http://10.100.101.40/addons/tools/drbdmanage-0.99.16.tar.gz
cd /tmp
tar xzf drbdmanage-0.99.16.tar.gz
cd drbdmanage-0.99.16
/usr/bin/python setup.py build
/usr/bin/python setup.py install
systemctl enable drbdmanaged
############################################################
# DRBD manage Docker plugin
############################################################
/bin/curl -o /tmp/drbdmanage-docker-volume-0.7.1.tar.gz http://10.100.101.40/addons/tools/drbdmanage-docker-volume-0.7.1.tar.gz
cd /tmp
tar xzf drbdmanage-docker-volume-0.7.1.tar.gz
cd drbdmanage-docker-volume-0.7.1
/usr/bin/python setup.py build
/usr/bin/python setup.py install
systemctl enable docker-drbdmanage-plugin.socket
############################################################
# DOCKER
############################################################
systemctl enable docker
/bin/curl -o /usr/bin/docker-compose http://10.100.101.40/addons/tools/docker-compose-Linux-x86_64
chmod +x /usr/bin/docker-compose
mkdir -p /etc/systemd/system/docker.service.d
cat << EOF > /etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
#Environment="HTTP_PROXY=http://192.168.2.10:3128/"
EOF
cat << EOF > /etc/systemd/system/docker.service.d/https-proxy.conf
[Service]
#Environment="HTTPS_PROXY=https://192.168.2.10:3128/"
EOF
############################################################
# corosysnc and pacemaker
############################################################
/bin/curl -o /etc/corosync/corosync.conf http://10.100.101.40/configs/gxfsadm/corosync.conf-gxfsadm-cl0
systemctl enable corosync
systemctl enable pacemaker
systemctl enable pcsd
echo necINST. | passwd hacluster --stdin
basic-setup_gxfsadm.txt · Last modified: 2022/07/10 09:34 by 127.0.0.1