[rrd-developers] FILE EXISTS when attempting to restore with 23-Apr-2003 CVS
Stanley Hopcroft
Stanley.Hopcroft at IPAustralia.Gov.AU
Wed Apr 23 15:05:40 MEST 2003
Dear Ladies and Gentlemen,
I am attempting to undo some former stupidity (of mine) by following Mr
van den Bogaerdt's advice of
. dump the RRD
. apply MAX limits with tune
. restore the XML to the RRD
Restore reports
.. yada .. lots of warnings about values being tossed as one might
expect
out of range found [ds: 4], [value : -1.9548152421e+05]
out of range found [ds: 5], [value : -1.8420064692e+05]
out of range found [ds: 6], [value : -1.9436716345e+05]
out of range found [ds: 7], [value : -1.9609096002e+05]
out of range found [ds: 12], [value : -1.9625233256e+05]
ERROR: creating 'nwUsage_tsade.rrd': File exists
pc09011>
truss of the restore process shows
write(2,0xbfbfc648,56) = 56 (0x38)
write(2,0xbfbfc648,56) = 56 (0x38)
write(2,0xbfbfc648,56) = 56 (0x38)
write(2,0xbfbfc648,57) = 57 (0x39)
break(0x8337000) = 0 (0x0)
open("nwUsage_tsade.rrd",0xa02,0666) ERR#17 'File exists'
break(0x80e3000) = 0 (0x0)
write(2,0xbfbfcb38,49) = 49 (0x31)
exit(0x0) process exit, rval = 0
pc09011>
The RRD 'nwUsage_tsade.rrd' is owned by the owner of the rrdtool restore
process. I suppose I could try it as root but ...
This looks like the code responsible for the error
} else {
int fd = open(file_name,O_RDWR|O_CREAT|O_EXCL,0666);
if (fd == -1 || (rrd_file = fdopen(fd,"wb")) == NULL) {
rrd_set_error("creating
'%s': %s",file_name,rrd_strerror(errno));
if (fd != -1)
close(fd);
return(-1);
}
SHould I delete the RRD first ?
Yes.
Sorry for the noise. Perhaps some one else will profit from my stupidity
..
Yours sincerely.
--
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------
'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'
from Meditation 17, J Donne.
--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-developers
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-developers
mailing list