We experienced long waiting times during making of snapshots on VSX systems, and also during CPUSE. The cause of all this was the existence of millions of zero-byte temporary files. CPUSE ran in a time-out since these files needed to be backupped first before installation of a Jumbo Hotfix continued.
Deleting these files manually with a variation of 'rm *' results in a "argument list too long" error message.
So specific for this issue, here are my top 3 CLI commands 🙂
To find zero-byte files and print to screen:
find / -size 0 -print
You'll soon see the directory containing a lot (perhaps millions) zero-byte files. In this example we found a lot zero-byte files starting with fileAxxxx, fileBxxxx etc in a tmp directory of a Virtual System. So the following commands are based on these filenames and VS 3.
To find zero-byte files in a specific directory and count them:
find /opt/CPshrd-R77/CTX/CTX00003/tmp/ -size 0 -print -type f -name "file*" | wc -l
To find and delete zero-byte files named file* in a specific directory:
find /opt/CPshrd-R77/CTX/CTX00003/tmp/ -size 0 -type f -name "file*" -delete
Last year I posted this on my blog. CPUSE timeout during ‘Saving File Permissions’ – checkpointengineer
Unfortunately we never received an answer on the questions we had back then. Perhaps I will contact TAC again as this issue still exists.
[UPDATE]
Found sk116679. It seems there is a hotfix available but unfortunately it's not included in a Jumbo Hotfix.
The SK is mentioning $CPDIR/tmp/ which is the exact same directory as in my example above.
Snapshot creation on Gaia OS is stuck at 1-2%
[UPDATE 2]
Currently available hotfix is only compatible with versions up to Take 225 on R77.30. Filed an SR for a portfix to install on top of the current GA and also requested to include this permanently in a future Jumbo Hotfix Take.
My blog: https://checkpoint.engineer