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
5,235 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
• 52,350 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
• 59,230 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, 2020 in Linux Administration by MD
• 95,460 points
1,774 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 5, 2020 in Linux Administration by Prakash K. Aithal
3,014 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, 2020 in Linux Administration by MD
• 95,460 points
9,814 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, 2020 in Linux Administration by MD
• 95,460 points
1,139 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 14, 2020 in Linux Administration by MD
• 95,460 points
1,317 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, 2020 in Linux Administration by MD
• 95,460 points
1,385 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 25, 2020 in Linux Administration by MD
• 95,460 points
660 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 25, 2020 in Linux Administration by Pistle
• 300 points
14,558 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP