LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-08-2013, 08:30 AM   #1
scratchyrat
LQ Newbie
 
Registered: May 2010
Location: United Kingdom
Distribution: Debian, Red Hat, AIX, Ubuntu, Fedora
Posts: 27

Rep: Reputation: 3
Odd disk issue


Hi,

I've tried the obvious with this problem and have hit a brick wall.

I have a xen host server, with a separate 2TB physical disk, volume group and logical volume set aside for my backup server. This disk is mounted in a guest OS (debian squeeze 6.0.2) as /data. No LVM is in place in the guest OS, just at the host level so nested LVM isn't an issue.

The disk is 98% full so we did some housekeeping of old backup files (not in use) but the disk space wouldn't come down. So far the following has been tried

* fsck - all OK
* sync - no effect
* reboot - no effect
* unmapping the disk on the Xen host and adding it back in
* fsck'ing the disk on the xen host

Even after all this, plus several reboots, any files I am removing after trying fixes won't bring down the disk space. It appears to be almost stuck.
 
Old 08-08-2013, 02:22 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Are you sure you removed files from "that" disk?
This isn't something silly like you need to empty trash, right?

Point here is "removing files from a disk, frees up space." Although if you remove a 1K file on a 2T disk, that's not too much extra space.

When you use df, check and recheck your used and available blocks before and after your cleanup. There is also a chance that whatever you cleaned up were symbolic links pointing to somewhere else on the system.
 
Old 08-09-2013, 05:27 AM   #3
scratchyrat
LQ Newbie
 
Registered: May 2010
Location: United Kingdom
Distribution: Debian, Red Hat, AIX, Ubuntu, Fedora
Posts: 27

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by rtmistler View Post
Are you sure you removed files from "that" disk?

This isn't something silly like you need to empty trash, right?

Point here is "removing files from a disk, frees up space." Although if you remove a 1K file on a 2T disk, that's not too much extra space.

When you use df, check and recheck your used and available blocks before and after your cleanup. There is also a chance that whatever you cleaned up were symbolic links pointing to somewhere else on the system.
Positive, it only has (other than its much smaller root disk) one disk attached and mounted as /data. Its our backup server running without a GUI, it isn't configured to have a trash can and we don't use symlinks.

I removed 300GB initially and have been moving 2GB+ files since to test it after trying fixes.

I managed to make some room by running tune2fs and blatting the reserved block count to 0, its a data disk so we don't really need this, and certainly not 100GB's worth.

This did make a difference, and it dropped from 98% to 93%. After removing an 8GB+ sized file, the df -k output shows changes, but only to the Available column, nothing else. The df -h output doesn't show any changes at all, which is weirdness.
 
Old 08-09-2013, 07:44 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Remember that a terabyte is 1000 gigabytes; therefore one percent of 2TB = 20 GB; removing an 8 GB file will show extra space in the summary but will only affect the percentage available value when enough has been freed to make the end result reach the next 1% increment of measure.
 
1 members found this post helpful.
Old 08-09-2013, 08:01 AM   #5
scratchyrat
LQ Newbie
 
Registered: May 2010
Location: United Kingdom
Distribution: Debian, Red Hat, AIX, Ubuntu, Fedora
Posts: 27

Original Poster
Rep: Reputation: 3
Thank you. I'm going to write a cheap and dirty script to look for big/old files and run it over the weekend, then start culling old data in droves on Monday, so hopefully that should help.
 
Old 08-10-2013, 04:57 PM   #6
zrdc28
Member
 
Registered: Dec 2007
Location: Alabama USA
Distribution: Slackware current
Posts: 309

Rep: Reputation: 55
If you write that script would you mind posting it, I have tried and failed to do the same.
 
  


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
Odd issue with df command protocol Linux - General 5 04-05-2010 12:01 PM
Odd Postfix Issue XLA187 Linux - Software 8 05-25-2009 09:59 PM
Odd filetime issue TL_CLD Slackware 2 11-13-2006 01:56 AM
Odd *nix issue with c/c++ Will_C_T Programming 3 09-09-2004 11:17 PM
Odd VMware issue. (disk space recognition) ferreter Linux - General 1 08-31-2003 06:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:31 PM.

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