Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[MX] Disk storage recovery taking a lot of time after stopping "file archive compress" with CTRL+C



Article ID: KB36187 KB Last Updated: 20 Aug 2020Version: 1.0

This article explains what to do to ensure that disk space recovery happens soon after you stop the file archive compress command with CTRL+C, along with a detailed explanation for why release of disk storage may take some time.



Even after stopping the file archive compress process by using Ctrl+C, file recovery does not happen immediately or takes a very long time.



This is expected behavior. However, logging out as the current user will enable immediate release of disk space after use of Ctrl+C.

The file archive compress command is a wrapper for a UNIX tar command. It starts the tar archive with a temporary destination file name, and after the tar command execution completes, renames the temporary file to the original destination.

When the file archive compress command is stopped with Ctrl+C, the mgd code stops the tar process and deletes this temporary file. However, since the parent process of tar (mgd) is still running, the kernel does not release the disk storage. Given this, logging out as the user will stop the parent process and enable the kernel to release the disk storage.

Note: The temporary file should be always created under /var/tmp regardless of the path to the destination file, and named .tgzxxyy (the last four characters are random) or something similar. This will ensure that the files show up when the file list command is run while processing the file archive.


Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search