Error message "Disk usage for /opt/pancfg exceeds limit" seen after upgrade to 10.2.x

Error message "Disk usage for /opt/pancfg exceeds limit" seen after upgrade to 10.2.x

94043
Created On 11/15/22 21:33 PM - Last Modified 01/21/23 04:25 AM


Symptom


  • /opt/pancfg   partition  highly utilized.
  • Unable to  download new content images or not able to login to the WebUI etc.
  • System logs report high disk usage such as "Disk usage for /opt/pancfg exceeds limit"
admin@Panorama> show system disk-space
Filesystem   Size   Used    Avail   Use%    Mounted on
/dev/root    7.9G   5.5G    2.1G    74%      /
 none         32G   116K     32G     1%      /dev
/dev/sda5     24G    21G    2.1G    91%      /opt/pancfg
/dev/sda6     5.8G  1.5G    4.1G    27%      /opt/panrepo
....(output omitted)....
  • Mongo DB  is using huge space;
admin@Panorama> show system pancfg-directory-usage
12G     /opt/pancfg/mgmt
12G     /opt/pancfg
8.6G    /opt/pancfg/mgmt/mongo/data
8.6G    /opt/pancfg/mgmt/mongo   
1.6G    /opt/pancfg/mgmt/deploy/sw-images
....(output omitted)...

 


Environment


  • Any Panorama 
  • PAN-OS 10.2.x


Resolution


  1. To optimize and clean the /opt/pancfg partition, use the following new command.
>debug pancfg-directory-usage set optimize-database-usage
  1. Example of Before and after the command given below. 
admin@Panorama> show system pancfg-directory-usage
12G     /opt/pancfg/mgmt
12G     /opt/pancfg
8.6G    /opt/pancfg/mgmt/mongo/data
8.6G    /opt/pancfg/mgmt/mongo   
1.6G    /opt/pancfg/mgmt/deploy/sw-images
....(output omitted)...

admin@Panorama> debug pancfg-directory-usage set optimize-database-usage
Transfered mdb to storage engine: wired-tiger

admin@Panorama> show system pancfg-directory-usage
3.5G    /opt/pancfg/mgmt
3.5G    /opt/pancfg
1.6G    /opt/pancfg/mgmt/deploy/sw-images
1.6G    /opt/pancfg/mgmt/deploy
1.2G    /opt/pancfg/mgmt/updates
722M    /opt/pancfg/mgmt/updates/curcontent
406M    /opt/pancfg/mgmt/updates/oldcontent
302M    /opt/pancfg/mgmt/mongo/data
302M    /opt/pancfg/mgmt/mongo    
275M    /opt/pancfg/mgmt/content-images
72M     /opt/pancfg/mgmt/content-preview
  1. If the issue still persists, open a support case.

 


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u000000sZtxCAE&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Choose Language