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
414 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
• 51,970 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
• 58,130 points

Related Questions In Linux Administration

0 votes
1 answer
0 votes
1 answer

How to check permissions of a file in the Linux system?

Hi@akhtar, If you prefer using the command line, ...READ MORE

answered Aug 13 in Linux Administration by MD
• 66,620 points
112 views
0 votes
2 answers

how to loop through the content of a file using bash

#!/bin/bash for i in  `cat peptides.txt` do echo $i done READ MORE

answered Sep 4 in Linux Administration by Prakash K. Aithal
796 views
0 votes
1 answer

How to check permissions of a folder in the Linux system?

Hi@akhtar, You can use ls command to check ...READ MORE

answered Aug 13 in Linux Administration by MD
• 66,620 points
108 views
0 votes
1 answer

How to give the read power of a folder in Linux system?

Hi@akhtar, You can use chmod command in your ...READ MORE

answered Aug 13 in Linux Administration by MD
• 66,620 points
70 views
0 votes
1 answer

How to change the owner of any folder in Linux system?

Hi@akhtar, Linux system has one command named chown. This ...READ MORE

answered Aug 13 in Linux Administration by MD
• 66,620 points
86 views
0 votes
1 answer

How to change the group of a folder in Linux system?

Hi@akhtar, You can use chgrp command in your ...READ MORE

answered Aug 14 in Linux Administration by MD
• 66,620 points
68 views
0 votes
1 answer

How to change the current time in Linux system?

Hi@akhtar, You can use timedatectl command in your ...READ MORE

answered Sep 24 in Linux Administration by MD
• 66,620 points
31 views
0 votes
2 answers

How to change IP address of an Ubuntu VM?

The easiest method is through network manager: 1- ...READ MORE

answered Aug 24 in Linux Administration by Pistle
• 300 points
872 views