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,109 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,360 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,693 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
2,859 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,573 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
941 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,189 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,315 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
595 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,286 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