Operating System - HP-UX
1748184 Members
3910 Online
108759 Solutions
New Discussion юеВ

"No space left on device" on a filesystem not full

 
SOLVED
Go to solution
Herve BRANGIER
Respected Contributor

"No space left on device" on a filesystem not full


Hi all

We use Ingres (I-6.4, I know it's old version
but works well, ... normally) on HPUX 11.00
systems.

We have a dedicated partition to ingres files
and database. Our problem is that on some servers
we have an error during database writing :

"Disk file write error on database"....
and
"No space left on device"

But this partition is not full (with bdf we
have 33% space available, about 100MB...)

Could you explain me the way to solve this
problem and find why a partition is full ...
with space left...

Thanks

Herv?


7 REPLIES 7
Thierry Poels_1
Honored Contributor

Re: "No space left on device" on a filesystem not full

hi,

you might be hitting the inode limit. Check with "bdf -i".

good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Santosh Nair_1
Honored Contributor
Solution

Re: "No space left on device" on a filesystem not full

Ok, I'm shooting from the hip now, perhaps its trying to write to some temporary space and the temporary space filesystem is full? Also check memory usage, is there memory available?

-Santosh
Life is what's happening while you're busy making other plans
Stefan Farrelly
Honored Contributor

Re: "No space left on device" on a filesystem not full


Its no lie. Your disk is becoming full. Some application process is holding a file open and trying to write to it - and has been for some time, thus bdf is not reporting the correct space usage. Nor will df. I think du -sk might, try doing this on the directories on the partition which is becoming full to see if you can spot which directory or file is becoming so large. Its basically a poor piece of appication programming which keeps a file open while writing to it without flusing it or closing then reopening it. Another useful tool is lsof which will report open files and hopefully you can then determine which process it is.
The only way to stop the no space left message is increase the available space to that filesystem - it is indeed filling up.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Frank Slootweg
Honored Contributor

Re: "No space left on device" on a filesystem not full

As Santosh suggested, (also) look for *other* filesystems which may be (too) full.

Doesn't Ingres report anything else? I.e. name of the file, filesystem, etc..?

Contrary to what Stefan said, bdf(1M) should tell the truth, i.e. it also accounts for 'un-named' files (files without a name, but with an inode and datablocks).
By default, bdf(1M) does not account for usage by file system swapping. Use "-b" to make sure.

Long shot: According to write(2), write() can report ENOSPC (= errno 28 = "No space left on device") when ulimit it too low.
Herve BRANGIER
Respected Contributor

Re: "No space left on device" on a filesystem not full

Hi

Thanks for your reply. I will try now....

Herv?

KapilRaj
Honored Contributor

Re: "No space left on device" on a filesystem not full

hi,

Would like to through some light.

hv you ever tried lvreduce on this Logical volume ?. If you hv done that then your logical volume is full & but still bdf will show the old file-system size as there is no command called reducefs....

Check it up,

solution is extend the lv to another free space

Best of luck,

kaps
Nothing is impossible
Herve BRANGIER
Respected Contributor

Re: "No space left on device" on a filesystem not full


Hi all


Think we found the origin of this problem :
during some operations Ingres seems to use
temporary files (sometimes really big one).
And at this time the partition is really full.
(we use bdf -i, launch on time per second to
find this explanation).


Thanks for all your reply

Herv?