[rrd-users] Re: rrd update hangs?

Clifton Royston cliftonr at lava.net
Mon Jul 9 21:45:48 MEST 2001

On Mon, Jul 09, 2001 at 01:46:29PM -0500, Wendy Faulkner wrote:
> More info - I'm running other rrds with no problem at all.  Nothing has changed
> - 3 of them just stopped working at midnight.
> I recreate the rrd
> rrdtool create daily.rrd --start 994654800 --step 3600
> DS:received:GAUGE:6000:U:U DS:delivered:GAUGE:6000:U:U
> DS:bounced:GAUGE:6000:U:U RRA:MAX:0.5:1:600 DS:deferred:GAUGE:6000:U:U
> RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797
> and I can truss the command (solaris 2.6) truss
> /usr/local/rrdtool-1.0.33/bin/rrdtool update /opt/Mail/daily.rrd
> 994654800:1970:2048:176:210
> read(3, " R R D\0 0 0 0 1\0\0\0\0".., 8192)     = 8192
> llseek(3, 0, SEEK_CUR)                          = 8192
> lseek(3, 0xFFFFEAEC, SEEK_CUR)                  = 2796
> fcntl(3, F_SETLK, 0xEFFFCED0)   (sleeping...)

That's attempting to set a fcntl-type lock on access to the RRD file.

> and it hangs here forever.  Any ideas?  Thx.
> Wen

I assume it's unable to get the lock and is hanging forever waiting for
it.  Maybe on that Friday midnight, something funny happened causing
some processes to die while holding the lock open, and the OS didn't
release the locks.

I'd try to research whether Solaris gives you any tools or utilities
for forcibly unlocking the file.  You might also want to see if the
"lsof" (list open files) utility is available on your system and if it
lets you figure out whether any processes currently have those files

  -- Clifton

 Clifton Royston  --  LavaNet Systems Architect --  cliftonr at lava.net
   WWJD?   "JWRTFM!" - Scott Dorsey (kludge)   "JWG" - Eddie Aikau

Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the rrd-users mailing list