Results 1 to 17 of 17
Thread: Disappearing Disk Space?
-
11-09-2009, 09:16 PM #1Junior Guru Wannabe
- Join Date
- Aug 2009
- Posts
- 79
Disappearing Disk Space?
I have some weird problems here:
Code:# df -H Filesystem Size Used Avail Use% Mounted on /dev/sda1 967G 917G 0 100% / tmpfs 4.3G 0 4.3G 0% /dev/shm /usr/tmpDSK 508M 15M 467M 4% /tmp
-
11-09-2009, 09:22 PM #2Web Hosting Guru
- Join Date
- Sep 2006
- Location
- Dallas, TX
- Posts
- 333
Is this shared hosting, a VPS, or dedicated server?
-
11-09-2009, 09:23 PM #3Web Hosting Master
- Join Date
- Jan 2008
- Location
- St. John's, NL
- Posts
- 2,201
Odd, perhaps the file system or hard drive is corrupt?
Cpanel/WHM • PHP • Perl • Ruby • Full Time Support
LCWSoft - Canada web hosting (based in Newfoundland) since 2007
Servers based in the US and Canada (Uptime Report)
-
11-09-2009, 09:58 PM #4Junior Guru Wannabe
- Join Date
- Aug 2009
- Posts
- 79
Dedicated. The hard drive shouldn't be corrupted, although it was once read-only but it was fixed.
This system uses a lot of symbolic links, I mean, seriously, a lot. I once thought the number of files was the problem but after I cleaned all unnecessary symbolic links, the disk usage still remains like this. Any more ideas?
-
11-09-2009, 10:06 PM #5Web Hosting Master
- Join Date
- Jan 2008
- Location
- St. John's, NL
- Posts
- 2,201
Try running
fsck -fb /dev/hda1
If I remember correctly, it will force a check and look for bad blocks on the drive as well.Cpanel/WHM • PHP • Perl • Ruby • Full Time Support
LCWSoft - Canada web hosting (based in Newfoundland) since 2007
Servers based in the US and Canada (Uptime Report)
-
11-09-2009, 10:13 PM #6Junior Guru Wannabe
- Join Date
- Aug 2009
- Posts
- 79
Can I do that while the server is running? Will it cause any data loss?
-
11-09-2009, 10:15 PM #7Web Hosting Master
- Join Date
- Jan 2008
- Location
- St. John's, NL
- Posts
- 2,201
It is best to take the server offline to do that, just to be safe.
Cpanel/WHM • PHP • Perl • Ruby • Full Time Support
LCWSoft - Canada web hosting (based in Newfoundland) since 2007
Servers based in the US and Canada (Uptime Report)
-
11-09-2009, 10:22 PM #8Junior Guru Wannabe
- Join Date
- Aug 2009
- Posts
- 79
What's the -b argument for? It's saying
Code:-b superblock Use alternative superblock
-
11-09-2009, 10:27 PM #9Web Hosting Master
- Join Date
- Jan 2008
- Location
- St. John's, NL
- Posts
- 2,201
Yes, you are right. I was given some faulty info, my apologies. The correct command is
fsck -f /dev/hda1Cpanel/WHM • PHP • Perl • Ruby • Full Time Support
LCWSoft - Canada web hosting (based in Newfoundland) since 2007
Servers based in the US and Canada (Uptime Report)
-
11-09-2009, 10:30 PM #10Junior Guru Wannabe
- Join Date
- Aug 2009
- Posts
- 79
Ok, running it now. Will post an update when it's complete.
-
11-09-2009, 10:39 PM #11Web Hosting Master
- Join Date
- Jan 2008
- Location
- St. John's, NL
- Posts
- 2,201
Ok, I would reboot when it's done and see if anything changes.
Cpanel/WHM • PHP • Perl • Ruby • Full Time Support
LCWSoft - Canada web hosting (based in Newfoundland) since 2007
Servers based in the US and Canada (Uptime Report)
-
11-10-2009, 12:27 AM #12Junior Guru Wannabe
- Join Date
- Aug 2009
- Posts
- 79
Seems like the problem still persists.
Code:# df -H Filesystem Size Used Avail Use% Mounted on /dev/sda1 967G 613G 305G 67% / tmpfs 4.3G 0 4.3G 0% /dev/shm /usr/tmpDSK 508M 15M 467M 4% /tmp
-
11-10-2009, 12:38 AM #13Web Hosting Master
- Join Date
- Jan 2008
- Location
- St. John's, NL
- Posts
- 2,201
You cleared up 305G of files?
Hmmm if you want to track down large files, here's a nice little command I've seen. It lists all files over 20mb, with the biggest ones listed first
Code:find / -type f -size +20000k -exec ls -lh {} \; 2> /dev/null | awk '{ print $NF ": " $5 }' | sort -nrk 2,2
Cpanel/WHM • PHP • Perl • Ruby • Full Time Support
LCWSoft - Canada web hosting (based in Newfoundland) since 2007
Servers based in the US and Canada (Uptime Report)
-
11-10-2009, 12:49 AM #14Junior Guru Wannabe
- Join Date
- Aug 2009
- Posts
- 79
Well, the problem is if the number of files that are taking up the disk space is normal, used disk space + available disk space = disk size. In my server, it doesn't seem to appear so. There is 50 GB missing which I can't use it as storage. I do store large temporary files so its ok for me to clear large files once in a while but this certainly isn't gonna be the solution.
-
11-10-2009, 12:59 AM #15Web Hosting Master
- Join Date
- Jan 2008
- Location
- St. John's, NL
- Posts
- 2,201
Is it a 1TB drive? I have heard of quite a few problems with them, like high failure rates.
Still, did you run the last command I gave you? It's easy enough to overlook somethingCpanel/WHM • PHP • Perl • Ruby • Full Time Support
LCWSoft - Canada web hosting (based in Newfoundland) since 2007
Servers based in the US and Canada (Uptime Report)
-
11-10-2009, 01:09 AM #16Junior Guru Wannabe
- Join Date
- Aug 2009
- Posts
- 79
Yeah, it should be a 1 TB hard drive. Before this there were failure of 2 750 GB hdds so my host switched 1 TB hard disk for me. Everything was working fine except this little weird problem...
I'm running your command now.
-
11-10-2009, 04:40 AM #17Junior Guru Wannabe
- Join Date
- Aug 2009
- Posts
- 79
I ran your command, some log files showed up and I rotated them, but it still doesn't change. Disk used + Disk available != Disk size.
Similar Threads
-
Use almost disk space will harm hard disk?
By kalaj in forum Hosting Security and TechnologyReplies: 6Last Post: 04-29-2008, 07:38 AM -
Steal the Deal Offer :: Double RAM & Disk Space :: $8.95 - 256MB RAM - 10GB Space!
By SHAdmin in forum VPS Hosting OffersReplies: 2Last Post: 01-26-2008, 11:05 PM -
Web & Reseller Sale 50% Off & Double BW & Disk Space 6gb space, 60gb xfer $5.50 WHM
By shellcentral in forum Shared Hosting OffersReplies: 0Last Post: 06-01-2006, 04:53 PM -
Disappearing Disk Space!
By billybatson in forum Hosting Security and TechnologyReplies: 3Last Post: 09-14-2003, 12:45 AM