Gavin W. Burris on 28 Sep 2017 08:57:29 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Reclaiming inodes


Command to find mapped files that have been deleted:  sudo lsof |grep DEL

On Thu 09/28/17 11:51AM EDT, Gavin W. Burris wrote:
> It's also possible that files that have been deleted are still being cached, not freed, because they are mapped by some process in memory.  You can check with lsof, or just reboot to see if it clears.  Cheers.
> 
> On Thu 09/28/17 11:48AM EDT, Gavin W. Burris wrote:
> > Hello, Thomas.
> > 
> > Maybe you have many, many small files, smaller than the inode size.  Or is this a very old fs format with a fixed max?  Migrate to an XFS filesystem and use a smaller inode size.
> > 
> > Cheers.
> > 
> > On Thu 09/28/17 09:48AM EDT, Thomas Delrue wrote:
> > > I'm in a bit of a bind and have never seen this before so if anyone can 
> > > explain to me what is happening, that would be great:
> > > 
> > > I have a machine that keeps reporting that it's run out of disk space.
> > > So I do the usual "df -h" and get this:
> > > username@host ~ $ df -h
> > > Filesystem      Size  Used Avail Use% Mounted on
> > > /dev/root        12G  3.9G  7.1G  36% /
> > > devtmpfs        997M     0  997M   0% /dev
> > > tmpfs           999M     0  999M   0% /dev/shm
> > > tmpfs           999M  9.5M  990M   1% /run
> > > tmpfs           5.0M     0  5.0M   0% /run/lock
> > > tmpfs           999M     0  999M   0% /sys/fs/cgroup
> > > 
> > > But it reports that it has no more disk space, so I dig a little deeper and I 
> > > find that I could also run df with the -i (inodes) flag, which gives me this:
> > > 
> > > username@host ~ $ df -hi
> > > Filesystem     Inodes IUsed IFree IUse% Mounted on
> > > /dev/root        735K  735K     0  100% /
> > > devtmpfs         250K  1.4K  248K    1% /dev
> > > tmpfs            250K     1  250K    1% /dev/shm
> > > tmpfs            250K  1.2K  249K    1% /run
> > > tmpfs            250K     3  250K    1% /run/lock
> > > tmpfs            250K    16  250K    1% /sys/fs/cgroup
> > > 
> > > I appear to have "run out of inodes"? Is there a way to reclaim them?
> > > 
> > > Thanks
> > > Thomas
> > 
> > 
> > 
> > > ___________________________________________________________________________
> > > Philadelphia Linux Users Group         --        http://www.phillylinux.org
> > > Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
> > > General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
> > 
> > 
> > -- 
> > Gavin W. Burris
> > Senior Project Leader for Research Computing
> > The Wharton School
> > University of Pennsylvania
> > Search our documentation: http://research-it.wharton.upenn.edu/about/
> > Subscribe to the Newsletter: http://whr.tn/ResearchNewsletterSubscribe
> > ___________________________________________________________________________
> > Philadelphia Linux Users Group         --        http://www.phillylinux.org
> > Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
> > General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
> 
> -- 
> Gavin W. Burris
> Senior Project Leader for Research Computing
> The Wharton School
> University of Pennsylvania
> Search our documentation: http://research-it.wharton.upenn.edu/about/
> Subscribe to the Newsletter: http://whr.tn/ResearchNewsletterSubscribe
> ___________________________________________________________________________
> Philadelphia Linux Users Group         --        http://www.phillylinux.org
> Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
> General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug

-- 
Gavin W. Burris
Senior Project Leader for Research Computing
The Wharton School
University of Pennsylvania
Search our documentation: http://research-it.wharton.upenn.edu/about/
Subscribe to the Newsletter: http://whr.tn/ResearchNewsletterSubscribe
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug