Disk space under /
|
Original Message
|
Name: simon p
Date: September 18, 2006 at 03:20:12 Pacific
Subject: Disk space under /OS: Solaris 8CPU/Ram: SPARCModel/Manufacturer: Sun E250 |
Comment: Disk usage under / as displayed by a df command shows as 96%. Files displayed by ls -al under / (excluding other mount points) add up to a fraction of this - how do I find what is using up all the disk space?
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: nails
Date: September 18, 2006 at 06:11:32 Pacific
Subject: Disk space under / |
Reply: (edit)This find command finds the 5 largest files in the present working directory: # all on one line find . -follow -mount -type f -print | xargs ls -l | sort -r -n -k 5,5 | head -10
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: simon p
Date: September 18, 2006 at 09:47:57 Pacific
Subject: Disk space under / |
Reply: (edit)Thanks for that, a useful command, but it basically gives the same files as my ls -al command. The disk usage has grown by 300Mb in the last 3 weeks (in fact it jumped by about 250Mb in on day) but I can't find any files of significant size that would explain this. All the largest files shown by the find command haven't been updated for years.
Report Offensive Follow Up For Removal
|
|
Response Number 3
|
Name: Action Force
Date: September 24, 2006 at 12:56:22 Pacific
Subject: Disk space under / |
Reply: (edit)Hi 1. which solaris are you using? 2. is that a stand-alone station or network? check the /var/adm/messeges - it can grow sometime... and the /var/adm/utmpx + wtmpx good luck
Report Offensive Follow Up For Removal
|
|
Response Number 4
|
Name: simon p
Date: September 25, 2006 at 04:21:27 Pacific
Subject: Disk space under / |
Reply: (edit)Thanks - we're running Solaris 8 on an E250, and it is connected to the network. We've checked /var/adm/messages and /var/adm/utmpx + wtmpx but they're not of significant size. I'm not sure where to look next - might have to get a unix expert in...
Report Offensive Follow Up For Removal
|
|
Response Number 5
|
Name: mndavies
Date: October 9, 2006 at 03:53:47 Pacific
Subject: Disk space under / |
Reply: (edit)Hi, I get this for a number of reasons, but the way I find it is using the du command. Use: du -k|more it is alittle time consuming, but it always works for me. Usually I find the problem with a core file or a big file in /var Hope this helps
Report Offensive Follow Up For Removal
|
|
Response Number 6
|
Name: fushigi
Date: November 9, 2006 at 23:29:01 Pacific
Subject: Disk space under / |
Reply: (edit)Try this command, it will display all hidden dir/files w/ corresponding file size # du -dk | sort -n hello forum
Report Offensive Follow Up For Removal
|
Use following form to reply to current message: