First thing I looked at was /var/tmp. The directory has the sticky bit set. I
preseme that is to prolong the life of the SDHC by spreading the wear. Maybe
so, but the directory grows over time. It gets so bad that rm -r fails due to
lack of space.
Another place to look is the .xsession-errors file. It also gets very large.
Finally used the right words in Google to find the reste of the issue. Buried
on the eee users site was a lot of discussion about DCOPServer errors. One
"fix" was to essentially reinstall the base operating system. I'm not sure
what gets trashed by that process.
Further down is the real story. I had been using df with no arguments and
seeing 64% free. And wondering how come the disk was reporting as full. I had
forgotten about inodes. For some reason, again, maybe to spread wear on the
SDHC, inodes re not released. That was evident by running df -i and seeing the
used inodes at 100 percent.
The fix was to remove files that had been created to hold the inodes. The
process took a long time. I was concerned that I was turning my notebook into
a brick. But, it is just fine now.
A procedure was given to release the inodes, which were being held with
filenames starting with .wh - those things are all over the place. I ran the
procedure first to list the files, and it was a huge list. I did not look at
the entire list, but ran the commands to remove the files. Instead of 100
percent used, I am down to 15 percent.
I was lucky that a mount point was available to use, as I could not create one
anymore.
Here is the segment from the page, the url will follow if anybody is inerested.
Code:
#!/bin/bash
# Create directory if needed (never hurts)
sudo mkdir -pv /mnt/sda2
# Mount /dev/sda2 into our new directory
sudo mount /dev/sda2 /mnt/sda2
# Delete the stupid .wh* files
sudo find /mnt/sda2 -iname '.wh*' -delete
# Don't forget to clean up
sudo umount /dev/sda2
And the URL:
http://forum.eeeuser.com/viewtopic.php?id=31194#p303854
I hope thhis helps somebody else.
John McKee
First thing I looked at was /var/tmp. The directory has the sticky bit set. I
preseme that is to prolong the life of the SDHC by spreading the wear.
The fix was to remove files that had been created to hold the inodes. The
process took a long time. I was concerned that I was turning my notebook into
a brick. But, it is just fine now.
A procedure was given to release the inodes, which were being held with
filenames starting with .wh - those things are all over the place. I ran the
procedure first to list the files, and it was a huge list. I did not look at
the entire list, but ran the commands to remove the files. Instead of 100
percent used, I am down to 15 percent.
I appreciate your comments. Running df with no parameters showed 64 percent
used. Adding -i showed 100 percent used. My notebook was close to useless as
no inodes were available.
I got the terminology wrong. Been a long time. A
directory entry consists of the name and an inode number. An inode is assigned
to each block. The df command was reporting space available, but all the
inodes were considered allocated.
UnionFS is most commonly used to overlay a read only file system with a
read/write file system in an attempt to make it act the way one would
expect. This is a very useful means of doing things. Oddly enough it also
fits very well in to the UNIX way of doing things due to the fact that the
underlying File System is optimized for it's need, and UnionFS sits on top
and extends the functions of the underling FS. Of course like anything else
it can be abused.
Austin
I am wondering if the implementation of unionfs is the real issue. Right now
used space is 50 percent. Lowest in a LONG time. Used i-nodes is 15
percent. A huge amount of space was tied up. Would this be same on
another distro, such
as Ubuntu, if unionfs was used?
Is the behavior of renaming file with a .wh prefix part of unionfs? I
read some
on unionfs and did not see that behavior mentioned. Might not have looked in
the right place. Or, is file renaming a Xandros or Asus thing?
John McKee
Is the behavior of renaming file with a .wh prefix part of unionfs? I
read some
on unionfs and did not see that behavior mentioned. Might not have looked in
the right place. Or, is file renaming a Xandros or Asus thing?
> On Thu, May 14, 2009 at 2:09 PM, John McKee <jmm...@flinthills.com> wrote:
>
>>
>> Is the behavior of renaming file with a .wh prefix part of unionfs? I
>> read some
>> on unionfs and did not see that behavior mentioned. Might not have looked
>> in
>> the right place. Or, is file renaming a Xandros or Asus thing?
>>
>
> Yes, it is. I'm not sure what causes it to not clean up, though. If I had
> to guess I'd imagine that the .wh files were the delta files from the
> read-only filesystem, and the .wh files left in /tmp and /var/tmp are deltas
> of temp files, which obviously can be removed after they're no longer in
> use. I believe I saw somewhere that Xandros on the EEPC doesn't run cron by
> default, so my guess (lots of guesses here) is that they're not running a
> standard cronjob to clean up tmp, which is not good practice.
>
> Either way you can see my above suggestions as to how to deal with the
> problem.
>
> Jeffrey.
>
> --
The really surprising thing is just how widespread the .wh files were.
None in
/tmp or /var/tmp. I didn't keep a log of where those things were, especially
since I felt lucky to even be able to run find to look for the things. Some
may have been dropped there by doing an update. Crying shame that they
weren't
moved to a common area or just deleted outright. As I said before, this does
not make Linux look like the superior OS compared to the stuff from
Redmond. A
ticking time bomb like this just makes it all too easy for somebody to hang a
label on all Linux distros, based on very bad experience with one.
I can't remember whwer I read it. Might have been kulua. Somebody
commented on
how files could not be deleted from the eeepc. Now, I know what is
really going
on. I have not looked at the rc stuff on the eeepc. It >might< be
possible to
put something in rc.local, assuming Xandros uses that mechanism. Something I
will look into, as much as I use it.
Can you tell me what the purpose of .xsession-errors is? The standard was to
just append to that file. It also got huge. One the same page where I
learned
about the .wh mess, it was suggested to change the append to overwrite.
Assuming .xsession-errors is of any value, it would seem a better idea
to
maintain a few versions and rotate them, instead of just letting the file grow
huge, or truncating it at start of each session.
John McKee
moved to a common area or just deleted outright. As I said before, this does
not make Linux look like the superior OS compared to the stuff from
Redmond. A
ticking time bomb like this just makes it all too easy for somebody to hang a
label on all Linux distros, based on very bad experience with one.
I can't remember whwer I read it. Might have been kulua. Somebody
commented on
how files could not be deleted from the eeepc. Now, I know what is
really going
on. I have not looked at the rc stuff on the eeepc. It >might< be
possible to
put something in rc.local, assuming Xandros uses that mechanism. Something I
will look into, as much as I use it.
Can you tell me what the purpose of .xsession-errors is? The standard was to
just append to that file. It also got huge. One the same page where I
learned
about the .wh mess, it was suggested to change the append to overwrite.
Assuming .xsession-errors is of any value, it would seem a better idea
to
maintain a few versions and rotate them, instead of just letting the file grow
huge, or truncating it at start of each session.