Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #213235 > unrolled thread

/usr 100%

Started byHadi Motamedi <motamedi24@gmail.com>
First post2019-08-25 09:40 +0200
Last post2019-08-25 10:10 +0200
Articles 6 — 5 participants

Back to article view | Back to linux.debian.user


Contents

  /usr 100% Hadi Motamedi <motamedi24@gmail.com> - 2019-08-25 09:40 +0200
    Re: /usr 100% Hadi Motamedi <motamedi24@gmail.com> - 2019-08-25 10:10 +0200
      Re: /usr 100% Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-08-25 11:00 +0200
        Re: /usr 100% root <hans.ullrich@loop.de> - 2019-08-25 12:30 +0200
        Re: /usr 100% David Wright <deblis@lionunicorn.co.uk> - 2019-08-25 21:00 +0200
    Re: /usr 100% "der.hans" <deb-user@LuftHans.com> - 2019-08-25 10:10 +0200

#213235 — /usr 100%

FromHadi Motamedi <motamedi24@gmail.com>
Date2019-08-25 09:40 +0200
Subject/usr 100%
Message-ID<yyVi1-3MI-1@gated-at.bofh.it>
Dear All
On my server , the "df -m" shows /usr as 100% occupied .
How can I find big size files on it to delete someone to free more space ?
Thank you

[toc] | [next] | [standalone]


#213237

FromHadi Motamedi <motamedi24@gmail.com>
Date2019-08-25 10:10 +0200
Message-ID<yyVL3-4dx-3@gated-at.bofh.it>
In reply to#213235
On 8/25/19, der.hans <deb-user@lufthans.com> wrote:
> Am 25. Aug, 2019 schwätzte Hadi Motamedi so:
>
> moin moin Hadi,
>
> du -sh /usr/*
>
> That will show you disk usage per directory in /usr/.
>
> You can then investigate the directories using lots of space.
>
> You might also verify you don't have a bunch of deleted files that haven't
> yet been removed from the disk.
>
> sudo lsof | grep dele
>
> My experience with /usr filling up is that something is putting data in
> there that shouldn't go there or that /usr isn't big enough to hold all
> the library files. For the latter, see if there are unused packages you
> can uninstall.
>
> There shouldn't be any hidden files in /usr, but you might want to verify.
>
> ls -la /usr/
>
> ciao,
>
> der.hans
>
>> Dear All
>> On my server , the "df -m" shows /usr as 100% occupied .
>> How can I find big size files on it to delete someone to free more space
>> ?
>> Thank you
>>
>
> --
> #  https://www.LuftHans.com   https://www.PhxLinux.org
> #  "Try not to become a man of success, but rather try to become a man
> #  of value" -- Albert Einstein


Thank you !
with "du -sh" , I am able to find big files and try to remove them .
so problem solved !
thank you again !

[toc] | [prev] | [next] | [standalone]


#213241

FromPascal Hambourg <pascal@plouf.fr.eu.org>
Date2019-08-25 11:00 +0200
Message-ID<yyWxs-4uQ-7@gated-at.bofh.it>
In reply to#213237
Le 25/08/2019 à 10:06, Hadi Motamedi a écrit :
> On 8/25/19, der.hans <deb-user@lufthans.com> wrote:
>>
>> du -sh /usr/*
>>
>> That will show you disk usage per directory in /usr/.

My preferred command is

du -hxd1 /usr | sort -h

- ignores other filesystem (e.g. if you mounted something on /usr/local)
- does not ignore "dot" files and directories
- sorts by size for easier reading

> with "du -sh" , I am able to find big files and try to remove them .

Be aware that /usr contains mostly files belonging to installed 
packages, so you should not remove such files by hand, but remove 
unnecessary packages instead. Exceptions are /usr/local and possibly 
/usr/src (although the latter should not be used for local compilation) 
as the whole /usr should be considered read-only.

[toc] | [prev] | [next] | [standalone]


#213243

Fromroot <hans.ullrich@loop.de>
Date2019-08-25 12:30 +0200
Message-ID<yyXWx-5vJ-7@gated-at.bofh.it>
In reply to#213241
Hi,

if your /usr is full, you can do this:

1. Add a fresh harrdrive  into your computer, format it ext2, 3 or 4,

2. mount it to some dir like /disk1

3. Then rsync all files from /usr to /disk1

4. edit /etc/fstab, so that the new harddrive is mounted to /usr

5. remount all, or reboot

6. You can then mount the OLD partition (where the old /usr resides)
and examine it.

7. Have fun and thank the developers for all the great tools in debian

Best regards

Hans 

[toc] | [prev] | [next] | [standalone]


#213269

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2019-08-25 21:00 +0200
Message-ID<yz5U5-27e-17@gated-at.bofh.it>
In reply to#213241
On Sun 25 Aug 2019 at 10:54:45 (+0200), Pascal Hambourg wrote:
> Le 25/08/2019 à 10:06, Hadi Motamedi a écrit :
> > On 8/25/19, der.hans <deb-user@lufthans.com> wrote:
> > > 
> > > du -sh /usr/*
> > > 
> > > That will show you disk usage per directory in /usr/.
> 
> My preferred command is
> 
> du -hxd1 /usr | sort -h
> 
> - ignores other filesystem (e.g. if you mounted something on /usr/local)
> - does not ignore "dot" files and directories
> - sorts by size for easier reading
> 
> > with "du -sh" , I am able to find big files and try to remove them .
> 
> Be aware that /usr contains mostly files belonging to installed
> packages, so you should not remove such files by hand, but remove
> unnecessary packages instead. Exceptions are /usr/local and possibly
> /usr/src (although the latter should not be used for local
> compilation) as the whole /usr should be considered read-only.

This might be awkward if the OP was installing software at the time
and things are in a partially installed state.

Assuming /usr is a separate partition, a short term fix might be to
borrow some space on another partition and move some parts of, say,
/usr/share/doc onto it. For example, here are the biggies on this
system:

15M     /usr/share/doc/sqlite3-doc
30M     /usr/share/doc/ffmpeg
35M     /usr/share/doc/python2.7
41M     /usr/share/doc/python3.5
56M     /usr/share/doc/imagemagick-6-common
73M     /usr/share/doc/debian-handbook
1.3G    /usr/share/doc/texlive-doc

101M    /usr/share/doc/texlive-doc/fonts
334M    /usr/share/doc/texlive-doc/generic
844M    /usr/share/doc/texlive-doc/latex

Then the software installation can be completed, and a decision made
on a longer term strategy.

Cheers,
David.

[toc] | [prev] | [next] | [standalone]


#213238

From"der.hans" <deb-user@LuftHans.com>
Date2019-08-25 10:10 +0200
Message-ID<yyVL3-4dx-5@gated-at.bofh.it>
In reply to#213235

[Multipart message — attachments visible in raw view] — view raw

Am 25. Aug, 2019 schwätzte Hadi Motamedi so:

moin moin Hadi,

du -sh /usr/*

That will show you disk usage per directory in /usr/.

You can then investigate the directories using lots of space.

You might also verify you don't have a bunch of deleted files that haven't
yet been removed from the disk.

sudo lsof | grep dele

My experience with /usr filling up is that something is putting data in
there that shouldn't go there or that /usr isn't big enough to hold all
the library files. For the latter, see if there are unused packages you
can uninstall.

There shouldn't be any hidden files in /usr, but you might want to verify.

ls -la /usr/

ciao,

der.hans

> Dear All
> On my server , the "df -m" shows /usr as 100% occupied .
> How can I find big size files on it to delete someone to free more space ?
> Thank you
>

-- 
#  https://www.LuftHans.com   https://www.PhxLinux.org
#  "Try not to become a man of success, but rather try to become a man
#  of value" -- Albert Einstein

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web