08-06-2009
No space left on device
We are using this function tmpfile() :
FILE *tmpfp ;
if ((tmpfp = tmpfile()) == NULL)
{
fprintf(stderr, "%s: ERROR: init_operator(): ", ROUTINE);
perror("tmpfile()");
exit(ERR_OPEN);
}
and the above is raising error :
MSMD0603: ERROR: init_operator(): tmpfile(): No space left on device.
Note that /tmp is 1% used which is pointed to by $TMPDIR .....
Kindly help us in that ....
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
This seems like it would be a common question, but I didn't find much that helped in a search...
I have a script scheduled in my crontab that outputs to /dev/null
ie: /dir/scripts/script1 > /dev/null
I have recently started getting the error:
cp /dir1/dir2/file.xls: No space left on... (1 Reply)
Discussion started by: kristy
1 Replies
2. UNIX for Advanced & Expert Users
I have a SCO UNIX on my Server. When I last tried to shutdown my system, I got an error message
“no space left on device”.
Now when I try to boot the system again, I
just can't and I get the same error message. Please help! (2 Replies)
Discussion started by: anjane
2 Replies
3. Solaris
Hi all,
A very strange problem I have this morning with my Solaris 8.
I have a FS full, I deleted some files but the system doesn't seems to reallocate the free space (I'm using Veritas):
df -k :
/dev/vx/dsk/dlds02vg/dlds02oralv 4194304 4194304 0 100% /dlds02/lds/oracle
... (4 Replies)
Discussion started by: unclefab
4 Replies
4. UNIX for Dummies Questions & Answers
hello all,
i have a proc binary that we run on unix environment, and it is generating this error
'' tstfile(): No space left on device ''
can you please assist on how to narrow down the problem?
thanks (4 Replies)
Discussion started by: mjdbouk
4 Replies
5. Solaris
Hi,
During package install, am getting:
WARNING: unable to write temp contents file </var/sadm/install/t.contents>
(errno 28: No space left on device)
I tried to delete some stuff under "/var" But I cannot locate who is occupying "/var" space. Because:
# df -h /var/
Filesystem ... (5 Replies)
Discussion started by: viki250
5 Replies
6. Solaris
hi guys, me again ;)
i recently opened a thread about physical to zone migration.
My zone is mounted over a "bigger" LUN (500GB) and step is now to move the old files, from the physical server, to my zone.
We are talking about 22mio of files.
i used rsync to do that and every time at... (8 Replies)
Discussion started by: beta17
8 Replies
7. Shell Programming and Scripting
Hi,
We are trying to sort the 40GB file in unix and getting following error.
Error:
sort: can't write /var/tmp/stmAAAvsaGfJ.00002929: No space left on device
sort -t ',' -k4 $DIR/INF_ff_FULL.dat >>$DIR/Sort_INF_ff_FULL.dat; 2>$DIR/sort_error.log
Can you please advise how to... (2 Replies)
Discussion started by: koti_rama
2 Replies
8. Ubuntu
I am running a build on Jenkins and I get:
No space left on device
But when I do df, I get:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/ROOT 19249724 18267492 4380 100% /
udev 1457152 4 1457148 1% /dev
tmpfs ... (4 Replies)
Discussion started by: sgffgs
4 Replies
9. Linux
Hello people
I have a small fileserver running busybox (very small linux distro with most essential stuff on it) and I am trying to remove some unused directories on it.
When I try this:
rm -R test/I get:
rm: cannot remove 'test': No space left on devicedf shows:
Filesystem ... (8 Replies)
Discussion started by: GTCG
8 Replies
10. Linux
Hello all
posting here after scanning the net and tried most of the things offered
still no solution that worked
when I do :
$ df -h
Filesystem Size Used Avail Use% Mounted on
footmpfs 7.9G 60K 7.9G 1% /dev
tmpfs 7.9G 0 7.9G 0% /dev/shm
/dev/da1 ... (3 Replies)
Discussion started by: umen
3 Replies
LEARN ABOUT OPENSOLARIS
tmpfile
tmpfile(3C) Standard C Library Functions tmpfile(3C)
NAME
tmpfile - create a temporary file
SYNOPSIS
#include <stdio.h>
FILE *tmpfile(void);
DESCRIPTION
The tmpfile() function creates a temporary file and opens a corresponding stream. The file will automatically be deleted when all refer-
ences to the file are closed. The file is opened as in fopen(3C) for update (w+).
The largest value that can be represented correctly in an object of type off_t will be established as the offset maximum in the open file
description.
RETURN VALUES
Upon successful completion, tmpfile() returns a pointer to the stream of the file that is created. Otherwise, it returns a null pointer and
sets errno to indicate the error.
ERRORS
The tmpfile() function will fail if:
EINTR A signal was caught during the execution of tmpfile().
EMFILE There are OPEN_MAX file descriptors currently open in the calling process.
ENFILE The maximum allowable number of files is currently open in the system.
ENOSPC The directory or file system which would contain the new file cannot be expanded.
The tmpfile() function may fail if:
EMFILE There are FOPEN_MAX streams currently open in the calling process.
ENOMEM Insufficient storage space is available.
USAGE
The stream refers to a file which is unlinked. If the process is killed in the period between file creation and unlinking, a permanent
file may be left behind.
The tmpfile() function has a transitional interface for 64-bit file offsets. See lf64(5).
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO
unlink(2), fopen(3C), mkstemp(3C), mktemp(3C), tmpnam(3C), lf64(5), standards(5)
SunOS 5.11 4 Aug 2003 tmpfile(3C)