if the File system is full how to troubleshoot ?

+1 vote
help me on this.

Thanks,

kondal
Nov 15, 2019 in Linux Administration by kondalarao
• 130 points
72 views

2 answers to this question.

0 votes

Hello @kondalarao, use the df command. 

df -h

It will show you all the files and how much space they are taking up. The only way out is deleting the files you do not need. 

answered Nov 15, 2019 by Kalgi
• 49,340 points
0 votes

Check filesystem usage.

df -h

If /var is showing 100% full then check actual usage of /var

du -h -x /var|tail -1   ---> It will show actual usage of  /var

Check for deleted files which are getting accessed. If actual usage of /var is less than showing in “df -h” command then there must be issue with open log files which are deleted but still accessed by Process.

Check for deleted files which are getting accessed.

lsof +L1

lsof | grep "/var" | grep deleted

You will also get process id accessing that files. Just kill or stop these processes. And now check filesystem usage, it should show normal.

answered Nov 18, 2019 by Sirajul
• 44,350 points

Related Questions In Linux Administration

0 votes
1 answer
0 votes
1 answer

how to loop through the content of a file using bash

One of the ways to do it ...READ MORE

answered Feb 15, 2019 in Linux Administration by ajs3033
• 7,280 points
126 views
0 votes
1 answer
–1 vote
1 answer

How to get octal file permission in linux?

You can use this: stat -c "%a %n" ...READ MORE

answered Jan 3, 2019 in Linux Administration by Omkar
• 68,840 points
154 views
0 votes
1 answer

How to collect all output in one file?

You can use 2> to redirect it: foo ...READ MORE

answered Mar 1, 2019 in Linux Administration by ajs3033
• 7,280 points
46 views
0 votes
1 answer

How to install a deb file?

You can install a .deb file with ...READ MORE

answered Apr 1, 2019 in Linux Administration by Shaan
37 views
0 votes
1 answer

How to change the default shell in Linux?

1. Change the password file directly for ...READ MORE

answered May 24, 2019 in Linux Administration by Upasana
• 8,570 points
44 views
0 votes
1 answer

How to extract file base name without path and extension in bash?

You don't actually have to call the ...READ MORE

answered May 31, 2019 in Linux Administration by Shubham
• 13,370 points
228 views
0 votes
1 answer

How to change IP address of an Ubuntu VM?

Go to your Linux terminal and execute ...READ MORE

answered Nov 20, 2019 in Linux Administration by Kalgi
• 49,340 points
77 views