Difference between revisions of "Upgrade Commands"

From OSNEXUS Online Documentation Site
Jump to: navigation, search
m (Flags and Arguments)
m (Offline Upgrade from Xenial 5.x)
Line 12: Line 12:
 
/mnt/qs-isos and /mnt/qs-isomount
 
/mnt/qs-isos and /mnt/qs-isomount
 
</pre>
 
</pre>
Put the latest qs iso into:
+
Put the latest QuantaStor ISO into the folowing directory:
 
<pre>
 
<pre>
 
/mnt/qs-isos
 
/mnt/qs-isos
Mount ISO:
+
</pre>
  
 +
Mount the ISO:
 +
<pre>
 
mount -o loop `find /mnt/qs-is
 
mount -o loop `find /mnt/qs-is
 
</pre>
 
</pre>
 +
 
os -name “*.iso”` /mnt/qs-isomount
 
os -name “*.iso”` /mnt/qs-isomount
 +
 
Copy the upgrade script to a known location with:
 
Copy the upgrade script to a known location with:
 
+
<pre>
 
+
cp /mnt/qs-isomount/pool/scripts/qs_upgrade.py /opt/osnexus/quantastor/bin/qs_upgrade.py
`cp /mnt/qs-isomount/pool/scripts/qs_upgrade.py /opt/osnexus/quantastor/bin/qs_upgrade.py`
+
</pre>
  
 
Perform a dryrun:
 
Perform a dryrun:
 
/opt/osnexus/quantastor/bin/qs_upgrade.py --offline=True --dryrun=True`
 
/opt/osnexus/quantastor/bin/qs_upgrade.py --offline=True --dryrun=True`
 
  
 
If the dryrun looks good, run the upgrade script:
 
If the dryrun looks good, run the upgrade script:
Line 34: Line 37:
 
</pre>
 
</pre>
  
If it fails........
+
This will take the QuantaStor ISO that is in '''/mnt/qs-isos''' and mount it to '''/mnt/cd-test''', then configure the '''apt''' preference file to use the ISO files for the upgrades. The script then calls itself, specifying '''repoUrl''' as the location of the mounted ISO.
 
+
This will take whatever iso is in '''/mnt/qs-isos''' and mount it to '''/mnt/cd-test''', then configure the apt preference file to use the iso files for the upgrades. The script then calls itself, specifying '''repoUrl''' as the location of the mounted iso.
+
 
+
Notes:
+
*Offline dist upgrades are currently blocked.
+
*make sure there is only one iso in '''/mnt/qs-isos'''.
+
  
 
==== Kernel Upgrade on Xenial 5.x ====
 
==== Kernel Upgrade on Xenial 5.x ====

Revision as of 14:44, 21 August 2019

QuantaStor CLI Upgrade Commands

CLI Upgrade Commands

Upgrade Manager Use Cases

Upgrade from Trusty 4.x to Xenial 5.x

Offline Upgrade from Xenial 5.x

Prepare for offline upgrade. Make directories:

/mnt/qs-isos and /mnt/qs-isomount

Put the latest QuantaStor ISO into the folowing directory:

/mnt/qs-isos

Mount the ISO:

mount -o loop `find /mnt/qs-is

os -name “*.iso”` /mnt/qs-isomount

Copy the upgrade script to a known location with:

cp /mnt/qs-isomount/pool/scripts/qs_upgrade.py /opt/osnexus/quantastor/bin/qs_upgrade.py

Perform a dryrun: /opt/osnexus/quantastor/bin/qs_upgrade.py --offline=True --dryrun=True`

If the dryrun looks good, run the upgrade script:

/opt/osnexus/quantastor/bin/qs_upgrade.py --offline=True

This will take the QuantaStor ISO that is in /mnt/qs-isos and mount it to /mnt/cd-test, then configure the apt preference file to use the ISO files for the upgrades. The script then calls itself, specifying repoUrl as the location of the mounted ISO.

Kernel Upgrade on Xenial 5.x

Run the upgrade script:

/opt/osnexus/quantastor/bin/qs_upgrade.py --includeKernel=True

This command will upgrade all QuantaStor core packages as well as the kernel. After the kernel upgrade is finished, the script stops and prints the message stdout advising the user to reboot the system. After the system reboot, the script will run again and verify the latest QuantaStor version.

If --allowReboot is supplied as true, then the script will reboot automatically instead of stopping and printing a message to stdout.

Service Upgrade from 5.x

Run the upgrade script:


/opt/osnexus/quantastor/bin/qs_upgrade.py --coreOnly=True

Core Service Upgrade only on 5.x

Run the upgrade script:

/opt/osnexus/quantastor/bin/qs_upgrade.py

This will upgrade the QuantaStor core packages and perform an apt-get upgrade.