if the File system is full how to troubleshoot ?

+1 vote
help me on this.

Thanks,

kondal
Nov 15 in Linux Administration by kondalarao
• 130 points
44 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 by Kalgi
• 45,740 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 by Sirajul
• 40,980 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 in Linux Administration by ajs3033
• 7,280 points
99 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 in Linux Administration by Omkar
• 68,180 points
131 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 in Linux Administration by ajs3033
• 7,280 points
41 views
0 votes
1 answer

How to install a deb file?

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

answered Apr 1 in Linux Administration by Shaan
30 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 in Linux Administration by Upasana
• 8,550 points
40 views
0 votes
1 answer
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 in Linux Administration by Kalgi
• 45,740 points
38 views