Error when running the Spectrum post install script on Linux

Document ID : KB000122847
Last Modified Date : 11/12/2018
Show Technical Document Details
Issue:
The Spectrum convert_current_myisam_to_innodb.pl script on Linux fails for lack of disk space. However, running "df -k" shows plenty of disk space available for running the script.
Environment:
Running the convert_current_myisam_to_innodb.pl on Linux after upgrading to Spectrum 10.3.0.
Cause:
The convert_current_myisam_to_innodb.pl script uses "df $SPECROOT | awk '{print $4}'| tail -1" to determine free disk space. When run on the system, the result is the percentage used (in this case 22%) not the the available disk as expected. In this case, the available disk is the third parameter not the fourth as the script is expecting.
Resolution:
Modify the script to use the third parameter not the fourth.

1. Make a backup of the script 

2. Edit the script 
    a. Look for the line that reads "$FREE_DISK_SPACE = `df $SPECROOT | awk '{print \$4}'| tail -1`; #size in KB" 
    b. Change it to read "$FREE_DISK_SPACE = `df $SPECROOT | awk '{print \$3}'| tail -1`; #size in KB" 

3. Rerun the script
Additional Information:
Please reference the "Post Upgrade Tasks" section of the documentation for more information.

https://docops.ca.com/ca-spectrum/10-3-0/en/installing-and-upgrading/upgrading#Upgrading-PostUpgradeTasks