1753597 Members
6878 Online
108796 Solutions
New Discussion юеВ

Re: bdf and du

 
SOLVED
Go to solution
j773303
Super Advisor

bdf and du

The bdf and du doesn't show the same available disk space. Any tools can sync the disk space, let it same both bdf and du. Thanks.
Hero
3 REPLIES 3
KangFeng Cui
New Member

Re: bdf and du

bdf is by bytes,du is by block(512bytes)
Michael Tully
Honored Contributor
Solution

Re: bdf and du

If your talking about the numbers, then use du -k which reports a 1024k block size.

If you think that the filesystem reports it's full, there is probably a file that has been removed that a process is holding it open.
Anyone for a Mutiny ?
Cheryl Griffin
Honored Contributor

Re: bdf and du

sync will flush any recent changes:
# sync; sync; sync

Then you have to consider if a file was deleted but there might be a process that holds the file open. bdf counts these blocks as still allocated whereas du counts these blocks as free.

The way to make them match is to stop/restart the process that is holding the file open.
"Downtime is a Crime."