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 at 5-cent.us <m.roth at 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 -- kkeller at wombat.san-francisco.ca.us
On 06/13/2012 12:18 PM, m.roth at 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 at 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. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20120613/b795f63c/attachment-0004.sig>
Johnny Hughes wrote:> On 06/13/2012 12:18 PM, m.roth at 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 Wednesday 13 June 2012, Johnny Hughes <johnny at 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 -- Yves Bellefeuille <yan at storm.ca> "La Esperanta Civito ne rifuzas anticipe la kunlaboron de erarintoj, se ili konscias pri sia eraro." -- Heroldo Komunikas, n-ro 473.