02-13-2013 10:14 AM - edited 03-10-2019 08:05 PM
Hi all.
I have acs showing that its opt folder 100% used , how can delete or free up this path. All the time hanging because of this issue
Show disks
Internal file systems: warning -/ opt is 100% used ......................
Sent from Cisco Technical Support iPad App
Solved! Go to Solution.
02-13-2013 11:37 AM
Thought so. Not the greatest news here
This means that the file partition is full and this is usually due to the size of the M&T database. I think you need to contact TAC for them to sort it out and M&T data may need to be cleared
I think can find more details on this in following CDETS which was included in ACS 5.2 patch 6
CSCto47203: ACS 5 runs out of disk space
Issue was that a purge of M&T data would only happen if a backup of the data had been previously performed. If no backup of the data had been performed the database could go endlesly and would not purge.
Note that moving forward there were extensive fixes in this area; up to and including patch
5.3.0.40.6 or later that improves database management processes
This cumulative patch includes fixes/enhancements related to disk management to avoid following issue
CSCtz24314: ACS 5.x *still* runs out of disk space
and also fix for
CSCua51804: View backup fails even when there is space in disk
Following is taken from the readme for this patch
The Monitoring and Reporting database can increase when as records are collected. There are two mechanisms to reduce this size and prevent it from exceeding the maximum limit.
1. Purge: In this mechanism the data will be purged based on the configured data retention period or upon reaching the upper limit of the database.
2. Compress: This mechanism frees up unused space in the database without deleting any records.
Previously the compress option could only be run manually. In ACS 5.3 Patch 6 there are enhancements so it will run daily at a predefined time, automatically when specific criteria are met. Similarly by default purge job runs every day at 4 AM. In Patch 6 new option provided to do on demand purge as well.
2. New GUI option is provided to enable the Monitoring and Reporting database compress to run on every day at 5 AM. This can be configured under GUI Monitoring And Configuration -> System Operations -> Data Management -> Removal and Backup
3. Changed the upper and lower limit of purging of Monitoring and Reporting data. This is to make sure at lower limit itself ACS has enough space to take the backup. The maximum size allocated for monitoring and reporting database is 42% of /opt( 139 GB). The lower Limit at which ACS purges the data by taking the backup is 60% of maximum size Monitoring and Reporting database (83.42 GB). The upper limit at which ACS purges the data without taking backup is 80% of maximum size Monitoring and Reporting database (111.22 GB).
4. The acsview-database compress operation stops all services till 5.3 patch 5 , now only Monitoring and Reporting related services are stopped during this operation.
5. Provided “On demand purge” option in Monitoring and Reporting GUI. This option will not try to take any backup, it will purge the data based on window size configured.
6. Even if the “Enable ACS View Database compress” option is not enabled in GUI then also automatic view database compress will be triggered if the physical size of Monitoring and Reporting database reached to the upper limit of its size.
7. This automatic database compress takes place only when the “LogRecovery” feature is enabled, this is to make sure that the logging which happens during this operation will be recovered once this operation is completed. ACS generates alert when there is a need to do automatic database compress and also to enable this feature.
8. Before enabling “LogRecovery” feature configure the Logging Categories in such way that only mandatory data to log into Local Log Target and Remote Log Target as Log collector under System Administration > ... > Configuration > Log Configuration
This “LogRecovery” feature can recover the logs only if the logs are present under local log target.
9 This automatic database compress operation also performed only when the difference between actual and physical size of Monitoring and Reporting database size is > 50GB.
10 The new CLI “acsview” with option “show-dbsize” is provided to show the actual and physical size of the Monitoring and Reporting database. This is available in “acs-config” mode.
acsview show-dbsize Show the actual and physical size of View DB and transaction log file
02-13-2013 10:45 AM
What specific ACS version are you running?
release and patch
02-13-2013 11:28 AM
Thanks for the quick reply iam using Acs Version 5.2.0.26
Sent from Cisco Technical Support iPad App
02-13-2013 11:37 AM
Thought so. Not the greatest news here
This means that the file partition is full and this is usually due to the size of the M&T database. I think you need to contact TAC for them to sort it out and M&T data may need to be cleared
I think can find more details on this in following CDETS which was included in ACS 5.2 patch 6
CSCto47203: ACS 5 runs out of disk space
Issue was that a purge of M&T data would only happen if a backup of the data had been previously performed. If no backup of the data had been performed the database could go endlesly and would not purge.
Note that moving forward there were extensive fixes in this area; up to and including patch
5.3.0.40.6 or later that improves database management processes
This cumulative patch includes fixes/enhancements related to disk management to avoid following issue
CSCtz24314: ACS 5.x *still* runs out of disk space
and also fix for
CSCua51804: View backup fails even when there is space in disk
Following is taken from the readme for this patch
The Monitoring and Reporting database can increase when as records are collected. There are two mechanisms to reduce this size and prevent it from exceeding the maximum limit.
1. Purge: In this mechanism the data will be purged based on the configured data retention period or upon reaching the upper limit of the database.
2. Compress: This mechanism frees up unused space in the database without deleting any records.
Previously the compress option could only be run manually. In ACS 5.3 Patch 6 there are enhancements so it will run daily at a predefined time, automatically when specific criteria are met. Similarly by default purge job runs every day at 4 AM. In Patch 6 new option provided to do on demand purge as well.
2. New GUI option is provided to enable the Monitoring and Reporting database compress to run on every day at 5 AM. This can be configured under GUI Monitoring And Configuration -> System Operations -> Data Management -> Removal and Backup
3. Changed the upper and lower limit of purging of Monitoring and Reporting data. This is to make sure at lower limit itself ACS has enough space to take the backup. The maximum size allocated for monitoring and reporting database is 42% of /opt( 139 GB). The lower Limit at which ACS purges the data by taking the backup is 60% of maximum size Monitoring and Reporting database (83.42 GB). The upper limit at which ACS purges the data without taking backup is 80% of maximum size Monitoring and Reporting database (111.22 GB).
4. The acsview-database compress operation stops all services till 5.3 patch 5 , now only Monitoring and Reporting related services are stopped during this operation.
5. Provided “On demand purge” option in Monitoring and Reporting GUI. This option will not try to take any backup, it will purge the data based on window size configured.
6. Even if the “Enable ACS View Database compress” option is not enabled in GUI then also automatic view database compress will be triggered if the physical size of Monitoring and Reporting database reached to the upper limit of its size.
7. This automatic database compress takes place only when the “LogRecovery” feature is enabled, this is to make sure that the logging which happens during this operation will be recovered once this operation is completed. ACS generates alert when there is a need to do automatic database compress and also to enable this feature.
8. Before enabling “LogRecovery” feature configure the Logging Categories in such way that only mandatory data to log into Local Log Target and Remote Log Target as Log collector under System Administration > ... > Configuration > Log Configuration
This “LogRecovery” feature can recover the logs only if the logs are present under local log target.
9 This automatic database compress operation also performed only when the difference between actual and physical size of Monitoring and Reporting database size is > 50GB.
10 The new CLI “acsview” with option “show-dbsize” is provided to show the actual and physical size of the Monitoring and Reporting database. This is available in “acs-config” mode.
acsview show-dbsize Show the actual and physical size of View DB and transaction log file
02-13-2013 11:44 AM
Excellent explanation by jrabinow.
I second jrabinow on the fact that TAC can only help you to delete the view-database from the /opt via root patch.
Once done you can upgrade the code to ACS 5.4 with latest patch.
Jatin Katyal
02-13-2013 01:47 PM
Thank you very much.
To open a tac I need a support contract . But for this system I don have. So I am planning to promote the secondary to be the primary then I will rebuild the server again. After that I will upgrade the server ....?...
Is that valid Idea????
Sent from Cisco Technical Support iPad App
02-13-2013 01:55 PM
Where is log collector? Is it on the primary?
02-13-2013 02:07 PM
Yes
Sent from Cisco Technical Support iPad App
02-13-2013 10:10 PM
Yes. I think this should work. Make secondary standalone by either promoting or deregistering from the deployment. Then take the previous primary, reimage and re-register back to the deployment.
Along the way install the patch that I had mentioned.
Only caveat is that I cna't full perdict how primary functions with /opt full and whether that impacts ability to either promote or deregister. I would recommend the promote approach since is "lighter"
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide