How to create offline repos for IML 6.3.0.0
Software Installation Guide Table of Contents
The following is a procedure for creating local repos using a CentOS 7 VM or container.
-
Install
createrepo
andyum-plugin-copr
if they are not present:yum install -y createrepo yum-plugin-copr
-
Add upstream repos needed for IML to you work node:
yum copr enable -y managerforlustre/manager-for-lustre yum-config-manager --add-repo https://downloads.whamcloud.com/public/lustre/lustre-2.12.4/el7/client/ yum-config-manager --add-repo https://downloads.whamcloud.com/public/lustre/lustre-2.12.4/el7/server/ yum-config-manager --add-repo https://downloads.whamcloud.com/public/e2fsprogs/latest/el7/
-
Create a dir to hold local repos and navigate to it:
mkdir local_repos; cd local_repos
-
Run
reposync
for the repos we want to sync:reposync -n --repoid=downloads.whamcloud.com_public_e2fsprogs_latest_el7_ \ --repoid=managerforlustre-manager-for-lustre \ --repoid=downloads.whamcloud.com_public_lustre_lustre-2.12.0_el7_client_ \ --repoid=downloads.whamcloud.com_public_lustre_lustre-2.12.0_el7_server_
-
(Optional) You may want to sync EPEL and or CentOS Extras as well if you don’t have them where you are deploying to. Make sure you are syncing versions that match your OS, you may need to use the CentOS vault for this.
reposync -n --repoid=epel --repoid=extras
-
Use
createrepo
to create repomd (xml-rpm-metadata) repositories:createrepo ./downloads.whamcloud.com_public_e2fsprogs_latest_el7_ createrepo ./downloads.whamcloud.com_public_lustre_lustre-2.12.0_el7_server_ createrepo ./downloads.whamcloud.com_public_lustre_lustre-2.12.0_el7_client_ createrepo ./managerforlustre-manager-for-lustre/
-
(Optional) use
createrepo
for EPEL and CentOS Extras if you ranreposync
for them earlier:createrepo ./epel createrepo ./extras
-
Navigate out of local_repos and tar the resulting dir:
tar -czvf local_repos.tar.gz ./local_repos
-
Take the
local_repos.tar.gz
and move it to the manager node. -
Fetch the IML manager install repo as described in The install guide. Do not install yet.
-
Expand the local_repos tarball. Update the
chroma_support.repo
so that eachbaseurl
points to its correspondinglocal_repos
subdir. -
Install the manager as usual. Do not deploy agents.
-
Once installed, move the local_repos subdirs into
/var/lib/chroma/repo
. -
Update
/usr/share/chroma-manager/base.repo
,/usr/share/chroma-manager/lustre-server.repo
, and/usr/share/chroma-manager/lustre-client.repo
so that eachbaseurl
points back to the url of the manager node, and ssl props are put in place. Example fore2fsprogs
:[e2fsprogs] name=Lustre e2fsprogs baseurl=https://<MANAGER-URL-HERE>/repo/e2fsprogs/ enabled=1 gpgcheck=0 sslverify = 1 sslcacert = /etc/iml/authority.crt sslclientkey = /etc/iml/private.pem sslclientcert = /etc/iml/self.crt proxy=_none_
-
Deploy agents as usual.