CentOS 6.2. I have a 2TB drive, one partition, which is used for online backups. It filled up the other day. I moved a couple of b/u directories off it, and deleted the originals, which should have given me 42G free. I also reduced the reserved blocks by 1/3rd.
I've just finished an fsck, which it needed anyway, and in which there was a problem in an HTREE directory node.
df *still* tells me that there are zero bytes free.
Clues?
mark
On 2012-06-13, m.roth@5-cent.us m.roth@5-cent.us wrote:
CentOS 6.2. I have a 2TB drive, one partition, which is used for online backups. It filled up the other day. I moved a couple of b/u directories off it, and deleted the originals, which should have given me 42G free. I also reduced the reserved blocks by 1/3rd.
How are you taking backups? If you're using something like rsnapshot, you may have only deleted one of the many hard links to your files. In doing so you may have removed the directory entries but your files are still there. (That should still have freed up some space, just not much.)
Also, perhaps check df -i?
--keith
On 06/13/2012 12:18 PM, m.roth@5-cent.us wrote:
CentOS 6.2. I have a 2TB drive, one partition, which is used for online backups. It filled up the other day. I moved a couple of b/u directories off it, and deleted the originals, which should have given me 42G free. I also reduced the reserved blocks by 1/3rd.
I've just finished an fsck, which it needed anyway, and in which there was a problem in an HTREE directory node.
df *still* tells me that there are zero bytes free.
Clues?
maybe the files you removed are still open by some other process? info unlink The `unlink' function deletes the file name FILENAME. If this is a file's sole name, the file itself is also deleted. (Actually, if any process has the file open when this happens, deletion is postponed until all processes have closed the file.)
use lsof to find processes which might still have the file open.
On 06/13/2012 12:18 PM, m.roth@5-cent.us wrote:
CentOS 6.2. I have a 2TB drive, one partition, which is used for online backups. It filled up the other day. I moved a couple of b/u directories off it, and deleted the originals, which should have given me 42G free. I also reduced the reserved blocks by 1/3rd.
I've just finished an fsck, which it needed anyway, and in which there was a problem in an HTREE directory node.
df *still* tells me that there are zero bytes free.
Clues?
A 2TB drive is 2048 GB.
If it was 100% full, and if you freed up 42GB, then it would be:
2006/2048 = 98% full (well, 97.95% to be exact).
so it would only show 2% space free max anyway.
Johnny Hughes wrote:
On 06/13/2012 12:18 PM, m.roth@5-cent.us wrote:
CentOS 6.2. I have a 2TB drive, one partition, which is used for online backups. It filled up the other day. I moved a couple of b/u directories off it, and deleted the originals, which should have given me 42G free. I also reduced the reserved blocks by 1/3rd.
I've just finished an fsck, which it needed anyway, and in which there was a problem in an HTREE directory node.
df *still* tells me that there are zero bytes free.
Clues?
A 2TB drive is 2048 GB. If it was 100% full, and if you freed up 42GB, then it would be: 2006/2048 = 98% full (well, 97.95% to be exact). so it would only show 2% space free max anyway.
Actually, IIRC, one directory was 42G, and the other was 15G or so. That, along with reducing the reserved blocks on the f/s should have given me 3%-4%. I know that; what's driving me nuts is df, not df -h, is showing "available" as a blank.
Oh, and for the other folks who wondered, we use rsync with hard links.
mark
On Wed, Jun 13, 2012 at 1:36 PM, m.roth@5-cent.us wrote:
Actually, IIRC, one directory was 42G, and the other was 15G or so. That, along with reducing the reserved blocks on the f/s should have given me 3%-4%. I know that; what's driving me nuts is df, not df -h, is showing "available" as a blank.
Oh, and for the other folks who wondered, we use rsync with hard links.
So... are you sure the things you removed to clear space were the _last_ hardlinks to the data? Otherwise, for the same reason you use the links to save space, you don't get the space back.
Les Mikesell wrote:
On Wed, Jun 13, 2012 at 1:36 PM, m.roth@5-cent.us wrote:
Actually, IIRC, one directory was 42G, and the other was 15G or so. That, along with reducing the reserved blocks on the f/s should have
given me
3%-4%. I know that; what's driving me nuts is df, not df -h, is showing "available" as a blank.
Oh, and for the other folks who wondered, we use rsync with hard links.
So... are you sure the things you removed to clear space were the _last_ hardlinks to the data? Otherwise, for the same reason you use the links to save space, you don't get the space back.
Well, I found a bit more space - of the two directories I moved, I'd forgotten to delete one (I was doing an offline backup at the time, and didn't want that to take more hours). I now see 0 available, and /dev/sdb1 1922858352 1892387276 0 100% /export/3
But even with that 60G + the reserved block count reduced from 24174711 to 16116474, it's still showing nothing free, and the used only shows 30G free.
mark
mark
On Wednesday 13 June 2012, Johnny Hughes johnny@centos.org wrote:
If it was 100% full, and if you freed up 42GB, then it would be:
2006/2048 = 98% full (well, 97.95% to be exact).
so it would only show 2% space free max anyway.
And by default 5% is reserved for root, so a drive can be 5% free and still say it's full to a normal user.
Yves