QuantaStor Local Update Mirror: Difference between revisions
mNo edit summary Tags: Manual revert Visual edit: Switched |
m Examples use rsync:// not ssh, removed ssh. Removed support@osnexus.com and redirected to https://www.osnexus.com. |
||
Line 1: | Line 1: | ||
[[Category: | [[index.php?title=Category:Local update mirror]] | ||
== Overview == | == Overview == | ||
Line 15: | Line 15: | ||
Follow the steps below to create a local mirror of the OSNEXUS QuantaStor update repository. | Follow the steps below to create a local mirror of the OSNEXUS QuantaStor update repository. | ||
1 | 1. Setup a Linux VM with a web server, below is an example config file using nginx on Ubuntu 18.04 or newer: | ||
Edit the /etc/nginx/sites-enabled/osnexus-mirror file. '''Please note. The file may be different depending on your nginx version or Linux OS. ''' | Edit the /etc/nginx/sites-enabled/osnexus-mirror file. '''Please note. The file may be different depending on your nginx version or Linux OS. ''' | ||
Line 46: | Line 44: | ||
</pre> | </pre> | ||
2. Run an initial rsync to synchronize the QuantaStor update repository. | |||
<pre> | <pre> | ||
Line 55: | Line 51: | ||
</pre> | </pre> | ||
3. For periodic automatic updates, add a cron entry that will run to synchronize your local mirror with the QuantaStor repository. The example below runs daily. | |||
<pre> | <pre> | ||
Line 62: | Line 58: | ||
</pre> | </pre> | ||
4. Add your new local repository mirror to your QuantaStor systems for all updates: | |||
Replace "yourserver.example.net" with your web server DNS FQDN. | |||
<pre> | <pre> | ||
Line 74: | Line 70: | ||
</pre> | </pre> | ||
If you need any further assistance, please | If you need any further assistance, please see https://www.osnexus.com for support options. |
Revision as of 16:47, 10 April 2025
index.php?title=Category:Local update mirror
Overview
QuantaStor systems are sometimes deployed in sites where there's no public internet access. On these deployments the QuantaStor systems are unable to directly access packages.osnexus.com and in order for the systems to run upgrades they will need a local package mirror.
The local package mirror is usually a VM, which has a copy of the QuantaStor repository, and other package files from packages.osnexus.com, so that the local DNS server can be configured to resolve packages.osnexus.com to the local mirror within the datacenter.
Below is our supported method of creating a local repository.
Nginx + RSync Package Mirror Method
The Nginx + RSync method is the simplest and most common way to mirror the OSNexus package repository at packages.osnexus.com.
Follow the steps below to create a local mirror of the OSNEXUS QuantaStor update repository.
1. Setup a Linux VM with a web server, below is an example config file using nginx on Ubuntu 18.04 or newer:
Edit the /etc/nginx/sites-enabled/osnexus-mirror file. Please note. The file may be different depending on your nginx version or Linux OS.
Replace yourserver.example.net with your web server DNS FQDN.
# # A virtual host entry for an OSNEXUS QuantaStor mirror # server { listen 80; server_name yourserver.example.net packages; location / { root /var/lib/www/packages-root; autoindex on; } }
Now restart and ensure it is enabled to startup automatically.
systemctl enable nginx systemctl restart nginx
2. Run an initial rsync to synchronize the QuantaStor update repository.
mkdir -p /var/lib/www/packages-root/ RSYNC_PASSWORD=guest rsync -aPv rsync://guest@pkgmirror.osnexus.com/packages /var/lib/www/packages-root/
3. For periodic automatic updates, add a cron entry that will run to synchronize your local mirror with the QuantaStor repository. The example below runs daily.
edit the /etc/cron.d/osnexus-mirror-sync file and add the below contents: 0 02 * * * root RSYNC_PASSWORD=guest /usr/bin/rsync -aPv rsync://guest@pkgmirror.osnexus.com/packages /var/lib/www/packages-root/
4. Add your new local repository mirror to your QuantaStor systems for all updates:
Replace "yourserver.example.net" with your web server DNS FQDN.
# for focal based quantastor deployments echo 'deb http://yourserver.example.net/packages quantastor-focal main' > /etc/apt/sources.list.d/osnexus.list # for bionic based QuantaStor deployments echo 'deb http://yourserver.example.net/packages quantastor-bionic main' > /etc/apt/sources.list.d/osnexus.list
If you need any further assistance, please see https://www.osnexus.com for support options.