Skip to content
Open

Rhel7 #432

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pyazhpc/azinstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ def create_jumpbox_setup_script(tmpdir, sshprivkey, sshpubkey):
else
while ! rpm -q epel-release
do
if ! sudo yum install -y epel-release > {logfile} 2>&1
if grep -q "Red Hat" /etc/redhat-release
then
sudo systemctl stop firewalld.service
sudo systemctl disable firewalld.service
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm >> {logfile} 2>&1
elif ! sudo yum install -y epel-release > {logfile} 2>&1
then
sudo yum clean metadata
fi
Expand Down
22 changes: 20 additions & 2 deletions scripts/lfspkgs.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
#!/bin/bash

yum -y install lustre kmod-lustre-osd-ldiskfs lustre-osd-ldiskfs-mount lustre-resource-agents e2fsprogs lustre-tests || exit 1
# Use CentOS repo to install resource-agents (RHEL does not install them by default)
if  grep -qF "Red Hat" /etc/redhat-release ; then
cat << EOF >> /etc/yum.repos.d/centos.repo
[centos-7-base]
name=CentOS-7 - Base
mirrorlist=http://mirrorlist.centos.org/?release=7&arch=\$basearch&repo=os
#baseurl='http://mirror.centos.org/centos/7/os/\$basearch/'
enabled=1
gpgcheck=1
gpgkey=http://ftp.heanet.ie/pub/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7
EOF
# Stop and disable the firewall for lnet to work
systemctl stop firewalld.service
systemctl disable firewalld.service
fi

yum -y install resource-agents dkms lustre kmod-lustre-osd-ldiskfs lustre-osd-ldiskfs-mount lustre-resource-agents e2fsprogs lustre-tests || exit 1

sed -i 's/ResourceDisk\.Format=y/ResourceDisk.Format=n/g' /etc/waagent.conf

Expand All @@ -12,4 +28,6 @@ if [ -f "/etc/systemd/system/temp-disk-swapfile.service" ]; then
systemctl stop temp-disk-swapfile.service
fi

umount /mnt/resource
if [ -d /mnt/resource ]; then
umount /mnt/resource
fi