File localhost_access_log in CVM | Nutanix Community
Skip to main content
Solved

File localhost_access_log in CVM


Hi, 

I have one CVM out of space in /home, I have seen that I have the file localhost_access_host.txt with almost 20GB.

Could I rotate or delete this file?

In another CVM I don’t see this file.

Regards,

Antonio Maeso

Best answer by Alona

Hi AntonioM,

There is an article on KB-8561 Prism Central/Prism Element upgrade failing with /home space constraints due to localhost_access_log.txt files not rotating. It explains the issue and provides a temporary solution as well as a fix. Instead of deleting the file it suggest to zero out the log file to reclaim the space on the CVM.

Alternatively, there is also a post on this CVM Non-Root Partitions Space Usage High - clear space safetly.

Let me know if this is helpful.

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

5 replies

frsbeckum
Forum|alt.badge.img+12
  • Trailblazer
  • 24 replies
  • October 5, 2020

ssh nutanix@ip-of-your-cvm…… 

  • “sudo -i”
  • rm -f /home/localhost_access_host.txt
  • exit
  • exit

 


  • Author
  • Voyager
  • 2 replies
  • October 5, 2020

Hi,

Thanks for your reply.

Can I delete this file without any problem?

Regards 


Alona
Nutanix Employee
Forum|alt.badge.img+5
  • Nutanix Employee
  • 432 replies
  • Answer
  • October 6, 2020

Hi AntonioM,

There is an article on KB-8561 Prism Central/Prism Element upgrade failing with /home space constraints due to localhost_access_log.txt files not rotating. It explains the issue and provides a temporary solution as well as a fix. Instead of deleting the file it suggest to zero out the log file to reclaim the space on the CVM.

Alternatively, there is also a post on this CVM Non-Root Partitions Space Usage High - clear space safetly.

Let me know if this is helpful.


  • Author
  • Voyager
  • 2 replies
  • October 6, 2020

Hi Alona, 

 

Thanks for your reply, I have followed this KB and now the file has a normal size.

But, the file is growing continuously, several MBs per minute, could you say me why? and why does this file is only in one CVM?

 

Regards,

 


Alona
Nutanix Employee
Forum|alt.badge.img+5
  • Nutanix Employee
  • 432 replies
  • October 6, 2020

This file is for tracking API calls. It only exists on the Prism leader. As the KB explains this is a software issue and is resolved in future releases where logs rotation is made more aggressive.

If the file size continues to grow to size in GB without rotation it would be a good idea to open a case with Nutanix Suport.