Upgrading Remote Services Using Yum

It is possible to upgrade the Remote Services servers of your Abiquo platform using yum to shorten the time the RS service is unavailable.

In summary, to do this you can create a local yum repository containing the RPM packages from the new release.

Create a Yum Repo on an NFS Share


Create an NFS share to hold the repo so you can use it on any of your RS servers without manually copying it over.

On the machine that is going to export the NFS share, do the following:

# mkdir /localrepo
# echo "/localrepo *(rw,no_root_squash,subtree_check,insecure)" >> /etc/exports
# exportfs -ra

This will set up the NFS share to allocate the yum repo.

Now you need to copy the Abiquo RPMs into this share and create the repo.

# mount -o loop abiquo-linux-ee-2.3-GA.iso /mnt
# cp /mnt/FrameOS/* /localrepo/
# cd /localrepo/
# createrpo -d .

Perform the Upgrade on RS Servers

Now mount the share and add a reference to this repo in your Abiquo-Base yum repo:

# mkdir /localrepo && mount -t nfs <nfs_ip>:/localrepo /localrepo

Edit /etc/yum.repos.d/Abiquo-Base.repo and add at the end:

[abiquo-localrepo]
name=abiquo-localrepo-2.3
baseurl=file:/localrepo/
enabled=1
gpgcheck=1
priority=0

Now everything is in place to do the upgrade. Stop the Abiquo tomcat service and perform a 'yum update'.

# service abiquo-tomcat stop
# yum clean all
# yum update

After that, replace /etc/yum.repos.d/Abiquo-Base.repo with the new copy from the latest version:

# mv /etc/yum.repos.d/Abiquo-Base.repo /etc/yum.repos.d/Abiquo-Base.repo.old
# mv /etc/yum.repos.d/Abiquo-Base.rpmnew /etc/yum.repos.d/Abiquo-Base.repo

And restart the Abiquo tomcat service.

# service abiquo-tomcat start

You can now perform the remaining upgrade steps, including the upgrade of your Abiquo Server. See, for example, Upgrading from a Previous Version in the Abiquo 2.3 wiki.

 

Unable to render {include} The included page could not be found.