cancel
Showing results for 
Search instead for 
Did you mean: 
bchanakya
Mission Specialist
Mission Specialist
  • 1,325 Views

Linux file system issue

Hi

File system size is 40 G

but i check for the size of files and folders it's not more han 7 GB what about 33g.Here unable to find which file/folder utilising more space.  solution plz 

Hidden files are lss than 500 mb

## df -h

/dev/mapper/local_data    40G    40G   228K   100%   /local/data

but, after 

## cd /local/data

## du  -sh *

6.6G  InCharge
0       containers
89M data-scratch
62M home
21M nagios.cache
0      opt
8.0K scratch
24K var

---------------------------

 

4 Replies
Fran_Garcia
Starfighter Starfighter
Starfighter
  • 1,307 Views

You probably have deleted files which are sill opened, therefore not flushed from the filesystem. Please have a read at https://access.redhat.com/solutions/2316 .

bchanakya
Mission Specialist
Mission Specialist
  • 1,225 Views

Thank you

0 Kudos
Andres_Tarallo
Flight Engineer
Flight Engineer
  • 1,286 Views

Have you tried using lsof to find openfiles?

0 Kudos
Chetan_Tiwary_
Community Manager
Community Manager
  • 1,281 Views

@bchanakya You can check something for troubleshooting :

1. check for "open" deleted files using : lsof | grep deleted

you need to clear those files - example some log files are still kept in memory after deletion by a service - so found out and clear them. use kill -9 to remove the zombies. Restart the service if that is the culprit. 

2. Use the link given by @Fran_Garcia to Truncate open files in process.

3. SOmetimes when you mount a dir on another FS which has some files - you may not be able to see those. Mount the FS somewhere else and see the unseen. 

Refer the link for more details on the same : https://access.redhat.com/solutions/2794 

Join the discussion
You must log in to join this conversation.