Difference between revisions of "Install M2 on Stock Minimal CentOS/RHEL Install"

From AN!Wiki
Jump to: navigation, search
(Prepare The OS)
(Preparing ISO)
 
(One intermediate revision by one user not shown)
Line 48: Line 48:
 
=== If you don't have Internet Access ===
 
=== If you don't have Internet Access ===
  
'''If you '''''don't''''' have access to the internet''', after copying and mounting the Anvil ISO (see below), create the repo file: <span class="code"></span> with the body:
+
'''If you '''''don't''''' have access to the internet''', after copying and mounting the Anvil ISO (see below);
  
 +
<syntaxhighlight lang="bash">
 +
vim /etc/yum.repos.d/local.repo
 +
</syntaxhighlight>
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
[local]
 
[local]
Line 55: Line 58:
 
baseurl=file:///mnt/iso
 
baseurl=file:///mnt/iso
 
gpgcheck=0
 
gpgcheck=0
enabled=1
+
enabled=0
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 88: Line 91:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
mkdir /mnt/iso
 
mkdir /mnt/iso
mount -o loop /root/Anvil_m2-master_2020-02-18_CentOS-6.10.iso /mnt/iso/
+
mount -o loop /root/Anvil_m2-v2.0.8_CentOS-6.10.iso /mnt/iso/
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Latest revision as of 02:13, 7 May 2020

 AN!Wiki :: How To :: Install M2 on Stock Minimal CentOS/RHEL Install

This is meant to show how to install the Striker dashboard and Anvil! nodes using machines with generic EL6 minimal installs. This is needed in some cases, like when installing on UEFI machines.

Contents

[edit] Partitioning Storage

Please partition your system without a dedicated /home partition. The default leaves only 50 GiB of space for the root partition, which may not be enough for logs, cache, the striker database, and the rest of the system. The recommended layout is;

Partition Size LVM?
/boot/efi 200 MiB no
/boot 500 MiB no
<swap> 4 GiB yes
/ Balance yes

[edit] Build Install Media

You will still need the install media if you want to have Striker operate as an install target post-setup.

[edit] Prepare The OS

Template note icon.png
Note: If you're installing on RHEL proper, be sure to subscribe to RH first.
subscription-manager register --username rh_user --password rh_pass --auto-attach --force
subscription-manager repos --enable=rhel-6-server-optional-rpms

Once the minimal OS install is complete, you need a few steps to prepare for the Striker install.

[edit] If you don't have Internet Access

If you don't have access to the internet, after copying and mounting the Anvil ISO (see below);

vim /etc/yum.repos.d/local.repo
[local]
name=Anvil ISO repo
baseurl=file:///mnt/iso
gpgcheck=0
enabled=0

Then run:

yum -y --disablerepo=* --enablerepo=local install perl usbutils wget unzip rsync vim alteeve-repo kernel-devel kernel-source kernel-headers gcc

[edit] If you do have Internet Access

If you do have Internet access, add the Alteeve repo;

yum -y install https://www.alteeve.com/an-repo/el6/RPMS/noarch/alteeve-repo-0.1-4.noarch.rpm

Install dependencies;

yum -y install perl usbutils wget unzip rsync vim kernel-devel kernel-source kernel-headers gcc

Switch to the root user's home directory, download and extract the source and copy the striker-installer into place.

[edit] Preparing ISO

If you've got an optical drive, insert and mount the DVD. If not, copy the ISO to the newly build dashboard and then mount ot.

Once copied, create a mount point, then mount the ISO;

mkdir /mnt/iso
mount -o loop /root/Anvil_m2-v2.0.8_CentOS-6.10.iso /mnt/iso/
Template note icon.png
Note: If you insert the DVD into an optical drive, use /mnt/cdrom in the steps below.

[edit] Install Striker

Run the installer.

Template note icon.png
Note: Change the options to suit your environment. Run: ./striker-installer --help to see options.
Template note icon.png
Note: The --source switch is required for these types of installs.
/mnt/iso/striker/tools/striker-installer \
 --source /mnt/iso \
 -i 192.168.122.41/24,dg=192.168.122.1,dns1=8.8.8.8 \
 -b 10.20.4.1/16 \
 -c Alteeve \
 -n an-striker01.alteeve.com \
 -p 10.20.1.200:10.20.1.220 \
 --router-mode \
 -u admin:Initial1 \
 --peer-dashboard hostname=an-striker02.alteeve.com,bcn_ip=10.20.4.2

From here, the install should proceed normally.

 

Any questions, feedback, advice, complaints or meanderings are welcome.
Us: Alteeve's Niche! Support: Mailing List IRC: #clusterlabs on Freenode   © Alteeve's Niche! Inc. 1997-2019
legal stuff: All info is provided "As-Is". Do not use anything here unless you are willing and able to take responsibility for your own actions.
Personal tools
Namespaces

Variants
Actions
Navigation
projects
Toolbox