fir3net
PPS-Firenetbanner-780.5x190-30-03-17

Upgrade Export on Solaris Fails with "Error: Failed to execute 'gtar -c -C"

When running an upgrade_export on a Solaris Smart Centre you may receive the following error :

    Compressing the files... gtar: Only wrote 2047 of 10240 bytes to export.tgz.tar gtar: Error is not recoverable: exiting now
    Error: Failed to execute 'gtar -c -C "/opt/CPsuite-R65/fw1/tmp/upgrade_temp_dir" -f "export.tgz.tar" .' command [ 26409     1]@#######[10 May 15:35:27] Compress:
   Error >> Failed to run gtar -c -C "/opt/CPsuite-R65/fw1/tmp/upgrade_temp_dir" -f "export.tgz.tar" . command
   Error: Failed to compress Check Point Software files

This is down to a 2Gb limitation of the gtar command. There are 2 ways to resolve this issue :

  • Reduce the size of the files that are being gtar`d. The best way to do this is by normally clearing out any unwanted DB Revisions.
  • Replace the standard gtar command (both the Solaris and Check Point provided binary) with the latest version of gtar. Then when you relaunch the upgrade_export gtar will be able to handle more then 2Gbs worth of files.

Tags: UNIX

About the Author

RDonato

R Donato

Rick Donato is the Founder and Chief Editor of Fir3net.com. He currently works as a Principal Network Security Engineer and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001