housekeeping a filesystem, but met inner filesytesms... clarify.
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > housekeeping a filesystem, but met inner filesytesms... clarify.




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    housekeeping a filesystem, but met inner filesytesms... clarify.  
yls177


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 09:53 PM

df shows my /usr 97%. so i intend to do some housekeeping. however, in
/usr , there are other filesystems as well, like
/usr/sap/SID and others.

i could do a find size +10000. but these output could be in other
filesystems besides /usr. hence, the 97% of /usr will still remain.

my solution is to find files that are big and could be deleted under
/usr but are not in other filesystem and that can be done by doing a
df -kt | grep usr. so directories under /usr that are not listed by
the previous command will affect
the size of /usr?

am i right?





[ Post a follow-up to this message ]



    Re: housekeeping a filesystem, but met inner filesytesms... clarify.  
Andy


Report This Message To A Moderator Edit/Delete Message


 
01-23-04 09:53 PM

yls177 wrote:
quote:
> df shows my /usr 97%. so i intend to do some housekeeping. however, in > /usr , there are other filesystems as well, like > /usr/sap/SID and others. > > i could do a find size +10000. but these output could be in other > filesystems besides /usr. hence, the 97% of /usr will still remain. > > my solution is to find files that are big and could be deleted under > /usr but are not in other filesystem and that can be done by doing a > df -kt | grep usr. so directories under /usr that are not listed by > the previous command will affect > the size of /usr? > > am i right?
I'm not sure of your Unix version, but check out "man find" and look at the -mount option. HTH, Andy.




[ Post a follow-up to this message ]



    Re: housekeeping a filesystem, but met inner filesytesms... clarify.  
Barry Margolin


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 09:53 PM

In article <c06e4d68.0311111914.198a148f@posting.google.com>,
yls177 <yls177@hotmail.com> wrote:
quote:
>df shows my /usr 97%. so i intend to do some housekeeping. however, in >/usr , there are other filesystems as well, like >/usr/sap/SID and others. > >i could do a find size +10000. but these output could be in other >filesystems besides /usr. hence, the 97% of /usr will still remain.
Use the -xdev option to find to prevent it from leaving the filesystem. -- Barry Margolin, barry.margolin@level3.com Level(3), Woburn, MA *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups. Please DON'T copy followups to me -- I'll assume it wasn't posted to the gro up.




[ Post a follow-up to this message ]



    Re: housekeeping a filesystem, but met inner filesytesms... clarify.  
Doug Freyburger


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 09:53 PM

Andy wrote:
quote:
> yls177 wrote: > > > I'm not sure of your Unix version, but check out "man find" and look at > the -mount option.
Also -xdev on several variants.




[ Post a follow-up to this message ]



    Re: housekeeping a filesystem, but met inner filesytesms... clarify.  
Juha Laiho


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 09:53 PM

yls177@hotmail.com (yls177) said:
quote:
>df shows my /usr 97%. so i intend to do some housekeeping. however, in >/usr , there are other filesystems as well, like >/usr/sap/SID and others. > >i could do a find size +10000. but these output could be in other >filesystems besides /usr. hence, the 97% of /usr will still remain. > >my solution is to find files that are big and could be deleted under >/usr but are not in other filesystem and that can be done by doing a >df -kt | grep usr. so directories under /usr that are not listed by >the previous command will affect >the size of /usr?
I tend to hunt for large directories first by du -x /usr | sort -n | tail -40 or something like that. So, first look for "big collections", only after that go for large single files. -- Wolf a.k.a. Juha Laiho Espoo, Finland (GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++ "...cancel my subscription to the resurrection!" (Jim Morrison)




[ Post a follow-up to this message ]



    Re: housekeeping a filesystem, but met inner filesytesms... clarify.  
yls177


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 09:53 PM

Juha Laiho <Juha.Laiho@iki.fi> wrote in message news:<bou2vr$ojq$1@ichaos.ichaos-int>...
quote:
[co lor=darkred] > yls177@hotmail.com (yls177) said: > > I tend to hunt for large directories first by > du -x /usr | sort -n | tail -40 > or something like that. So, first look for "big collections", only > after that go for large single files.[/color]
hi.. thanks all for helping me.. really appreciate... thanks i did my homework... as a hardworking student and its as belows find /usr -xdev -size +10000 > bigfiles




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:21 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register