Solved

File localhost_access_log in CVM

  • 5 October 2020
  • 5 replies
  • 93 views

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

icon

Best answer by Alona 6 October 2020, 07:53

View original

This topic has been closed for comments

5 replies

Userlevel 2
Badge +12

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

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

 

Hi,

Thanks for your reply.

Can I delete this file without any problem?

Regards 

Userlevel 6
Badge +5

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.

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,

 

Userlevel 6
Badge +5

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.