1829695 Members
4704 Online
109992 Solutions
New Discussion

File System Full

 
SOLVED
Go to solution
Thamm
Occasional Advisor

File System Full

Hi,
following situation:

There is a full vxfs-filesystem:
1063 -> bdf .
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvtmp 12288 12288 0 100% /home/gdg/EMPTY

Now I execute the following comand:
echo "XXXX" > /home/gdg/EMPTY/hilf2

I get the following error message:
vxfs: mesg 001: vx_nospace - /dev/vg00/lvtmp file system full (1 block extent)

Nevertheless a file "hilf2" was genererated (but empty):
-rw-r--r-- 1 root sys 0 Oct 13 10:56 /home/gdg/EMPTY/hilf2

Question:
1. Why could the file be generated.
2. Is it possible to avoid that the file is generated if the space in the filesystem is not large enough?

Regards,
Stefan.
4 REPLIES 4
john korterman
Honored Contributor
Solution

Re: File System Full

Hi,
1) the file is generated because the file system is not out of inodes, check by "bdf -i ."
The file name, ownership, permissions etc. require only inode space.

2) only if the situation occurs that the filesystem is out of both space and inodes simultaneously - a situation problably not even of theoretical interest.

regards,
John K.
it would be nice if you always got a second chance
Bharat Katkar
Honored Contributor

Re: File System Full

HI,
Yes that is rightly explained.

Is it possible to avoid that the file is generated if the space in the filesystem is not large enough?

...Instead i would suggest you to run the script thr' cron to monitor the filesystems usage and set alerts accordingly and take corrective action before anything happens.

Hope that helps.
Regards,

You need to know a lot to actually know how little you know
Kent Ostby
Honored Contributor

Re: File System Full

Stefan -- In answer to #2, this is something that would have to be done at an application level (i.e. check the free space before write).

Its unlikely that someone would want to code this since it would be considered an error situation that should be corrected at the OS level and would require overhead for each write.
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Ted Buis
Honored Contributor

Re: File System Full

I haven't verified this for a while but it may still be true. In the past, HP-UX by default would reserve 10% for root only access and bdf would report a file system as full, but root would still have some room to play. I had actually filed a file system so bdf reported 111% (1/(1-.90)) utilization as root. Naturally, that cause big problems.
Mom 6