05-22-2017 03:29 AM
Hey
We're getting notificationsfrom our VMware about Cisco Prime Infrastructure's /var partition is full.
After logging on to shell and run df -h I get the following:
/dev/mapper/smogsvg-varvol
Size: 3.9G Available:0 Use: 100% Mounted on: /var
Can't find any information about the /var partition or how to clean it up. I've run the normal ncs cleanup without success.
Can anyone point me in the right direction?
05-23-2017 01:10 AM
- You can become root on the prime server if logged via ssh (admin account only) and issue the shell command and afterwards 'sudo -s'. You can find the biggest files in the /var directory , then using,for instance :
find /var -mount -printf '%s %p\n' | sort -nr | head -10
M.
05-23-2017 03:22 AM
Thansk for the information.
Found out that is was the logfiles from /var/cache/logwatch/ that was eating up the space.
Got some help from
https://supportforums.cisco.com/discussion/13194071/cisco-prime-infra-31-does-not-start
and
https://quickview.cloudapps.cisco.com/quickview/bug/CSCvb45802
11-23-2017 04:37 AM
1. SSH to your Prime Infrastructure
2. Login and then typ: shell and login again
3. Run sudo su -
4. run df -h to check the diskspace
5. run cd /var/cache/logwatch/
6. run ls -l to view files
7. run rm -rf logwatch.{filename} to delete a file or logwatch.* to delete all
01-06-2020 03:42 AM
Vider le fichier /var/log/wtmp
02-05-2020 09:26 AM
ran into an issue with prime not booting.
followed advice from this thread and did the:
shell
sudo su -
find /var -mount -printf '%s %p\n' | sort -nr | head -10
Found that the largest file by far was:
/var/log/wtmp
Did the following:
cd /var/log/
rm -rf wmtmp
exit
exit
Restarted the appliance
wmtmp appears to be a swap file that must not be important since PI was able to boot up with no issues following its' removal.
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