<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    Hi,<br>
    <br>
    As of now when statedump command is issued via cli (gluster volume
    statedump &lt;volname&gt; [options]) depending upon what options is
    given via cli a temporary file (glusterdump.&lt;pid&gt;.options)
    file is created by glusterd and glusterfsd process read that file to
    decide what information should be dumped. But the problem is
    glusterd after issuing the SIGUSR1 signal to the glusterfsd
    processes, sleeps for 1 second and then unlinks the options file. To
    fix that a patch was sent (
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <a href="http://review.gluster.org/#change,2585">http://review.gluster.org/#change,2585</a>),
    where<br>
    <br>
    * the glusterfsd process after dumping the information to the
    statedump file, unlinked the options by (instead of glusterd doing
    it)<br>
    <br>
    Another approach suggested to me was this:<br>
    <br>
    * Have a separate thread in glusterd which keeps on polling for the
    file glusterdump.&lt;pid&gt;.options.over (i.e some renamed file).
    glusterfsd after dumping the information, renames the options file
    and thats when glusterd realizes the statedump is taken and unlinks
    the file. (The new thread is spawned whenever statedump is issued
    and is finished after unlinking the renamed options file).<br>
    <br>
    Please let me know the inputs.<br>
    <br>
    <br>
    Regards,<br>
    Raghavendra Bhat<br>
  </body>
</html>