How can we help?

How to Increase the Space for Logging and Reporting.

Follow

Summary

By default, the space reserved for logging is 5 GB.  This is considered by engineering during a deployment and adjusted based on requirements at the time of deployment.  This setting might need to be increased if you notice that the logs and related reporting are covering fewer days than expected.

Question

How to increase the space reserved on disk for logging?

Answer

For the purposes of this article, a single server deployment is described.

Caution: This is an advanced topic and if you are unsure of the steps, please reach out to Netsweeper Support for assistance by sending email to support@netsweeper.com.  

  • Log into the Netsweeper server shell prompt and su to root.
  • Check the value of the max_disk_size parameter in running system with the following command:
grep max_disk_usage_size /usr/local/netsweeper/var/run/nsd.nsd.conf
  • Check the free space in the root filesystem with the df -h command:
df -h

For example:

 

Note the following recommendations from the Policy Server configuration, nsd.conf file:

# It is recommended you never fully allocate your storage, you should always have more then
# 10% free space. An example for a Netsweeper system maybe the following storage allocations
#
# 20% reserved for Logs and Log files (/usr/local/netsweeper/logs)
# 20% reserved for generated Report output (/usr/local/netsweeper/reports)
# 40% reserved for temporary report files (/usr/local/netsweeper/reports)
  • Edit the value if the max_disk_usage_size parameter in the Webadmin / Policy Server Settings or in the /usr/local/netsweeper/etc/nsd.conf file.  If the server is running with the default setting, you will need to create an entry.  For example:
g1_disk->max_disk_usage_size  10GB
  • Restart the policy service 

  • Check that the new value is set
grep max_disk_usage_size /usr/local/netsweeper/var/run/nsd.nsd.conf
  • Monitor the Request Logs Archive (in the Webadmin / Logs / Request Logs / Archive tab) 

  • Also, monitor the reports and space utilization over the next few days with the "df -h" command to ensure that enough free space remains on disk:
df -h

Additional Considerations

If there is not enough available space in the filesystem, it might need to be extended. This is beyond the scope of Netsweeper support and this article.  Please refer to the link modify the size of a logical volume for details.

 

For details of Netsweeper logging, please refer to the LogMod5 documentation.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request