LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-26-2007, 02:19 AM   #1
trumpet900
LQ Newbie
 
Registered: Jul 2007
Posts: 4

Rep: Reputation: 0
/dev/md1 nearly full - how do I work out which files/directories are on that disk?


I have Plesk 8.2 running on a Linux webserver at 1&1 Internet. I recently noticed that the /dev/md1 device is showing as nearly full (1GB partition, 700MB+ used) and I figured I'd better work out what was eating all that space.

By issuing "mount" I have learned that it's the "/" directory and I'm aware that "du -h" will give me a listing of all file sizes beneath that in the directory tree, however it's including everything under "/" which is the entire server. "du -s --si /*" shows me the size of each directory, but how do I limit this to just that one device /dev/md1 so that I can work out what's eating the space?

"mount" gives:
/dev/md1 on / type ext3 (rw)
none on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/md5 on /usr type xfs (rw)
/dev/md7 on /var type xfs (rw,usrquota)
/dev/md6 on /home type xfs (rw,usrquota)
none on /tmp type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/proc on /var/named/run-root/proc type none (rw,bind)

"du -s --si /*" gives:
6,1M /bin
8,6M /boot
111k /dev
51M /etc
4,1k /hlds_l
50k /home
74M /lib
19M /lib64
29k /lost+found
4,1k /mnt
4,1k /opt
1,1G /proc
586M /root
18M /sbin
0 /sys
230k /tmp
1,4G /usr
6,5G /var

I'd be grateful for any suggestions!

Thank you,
Jeremy Solly
 
Old 07-26-2007, 05:56 AM   #2
trumpet900
LQ Newbie
 
Registered: Jul 2007
Posts: 4

Original Poster
Rep: Reputation: 0
I found the answer: "du -h -x" keeps it to the same filesystem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
disk space full because alot of files in /var/spool/clientmqueue folder k0nsole.c Linux - Software 4 03-21-2016 09:26 AM
Software RAID; can't create /dev/md1 dplmartin Linux - Software 3 05-16-2006 03:47 AM
/proc filesystem has too many 2gb files hard disk getting full sadun SUSE / openSUSE 5 09-16-2005 07:40 AM
.htaccess files doesn't work in home directories rehtorisi Linux - Software 3 08-08-2005 08:02 AM
Mandrake 10.1 not creating /dev/md1 Meta42 Mandriva 1 11-23-2004 06:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration