The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   Hardware and Peripherals (http://hintsforums.macworld.com/forumdisplay.php?f=21)
-   -   Mirrored Hard Drive being Swallowed by "My-Guess-is-as-Good-as-Yours" (http://hintsforums.macworld.com/showthread.php?t=19049)

Virgil 12-30-2003 05:09 PM

The office files are, in fact, backed up on another hard drive regularly. One can never be too sure.
Any other suggestions, anyone? I'm thinking about formatting entire HD and upgrading to Panther (non-server edition), but I am still wary of Panther due to its share of problems.

stetner 12-30-2003 05:57 PM

It could be a deleted file that is still being held open by a process.

Now I have not tested this on HFS+, but on all other unixes I have dealt with, if you open a file and write 100MB to it, du and df will both see that space taken up.

If a process opens the file (for read or write) and then you delete the file, the 'directory entry' goes away but the file still has a 'link' count of 1 due to the reading process, so the space is not freed. Once the process quits, the link count drops to 0 and the OS will turf the file.

In such cases, while the process is still holding the file open, 'df' should report the correct amount of used disk space, but du will not as it checks files that have directory entries.

You may want to try a reboot and see if you then have recovered your space (I think it may be too hard to locate and kill a process that is doing this, but that would be the better option).

I have seen questions on deleting swap files (/var/vm/swapfile0,1...), and would think this would apply to them as well.

As I said, I have not had a chance to test this on HFS+, maybe someone with some more time on their hands can do it.....

Virgil 12-30-2003 06:55 PM

The swapfile0 located in /var/vm is just 87 mb. There is but one swapfile in that directory. Thank you for your advice.

stetner 12-30-2003 07:04 PM

The swapfile thing was just an example. It could be any file that is held open.

Have you tried a reboot?

Craig R. Arko 12-30-2003 07:26 PM

For future reference: RAID (in pictures).

I don't think it's applicable to the situation under discussion here, though.

Virgil 12-31-2003 12:04 AM

I have rebooted quite a few times now, for various reasons. And to what avail? None noticeable. I don't understand why it cannot list what is eating my space.

stetner 12-31-2003 01:01 AM

Well, it may take a while, but could you post the output from the following commands?
Code:

$ du -xsk /*
$ df -k

(I know we have seen the df before, but things may have changed.)

The other thing that is a possibility is the mounting of a file system onto a directory that already contains stuff. When that happens, du cannot see the files contained in the directory as they are 'covered' by the new mount, but df still knows about them.

Any mounted filesystems?

Virgil 12-31-2003 01:18 AM

I'm at home right now. I just wanted to say gracias for all of your altruism. I'll try that command tomorrow when I'm at the office.

Merci

Miss Virgil


All times are GMT -5. The time now is 09:56 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.