<html><body><div style="font-family: lucida console,sans-serif; font-size: 12pt; color: #000000"><div>Hello Everyone,</div><div>I am use the following sh to rotate jabber logs.</div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>#!/bin/bash<br>#<br>#<br>#<br>sudo -u jabber db_checkpoint -1 -h /var/lib/jabberd/db/<br>db_archive -a -h /var/lib/jabberd/db/<br>db_archive -d -h /var/lib/jabberd/db/<br>service jabberd restart<br></div><div><br data-mce-bogus="1"></div><div>Slava.</div><div><br></div><div><br data-mce-bogus="1"></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>"Thomas Mueller" <thomas@chaschperli.ch><br><b>To: </b>"spacewalk-list" <spacewalk-list@redhat.com><br><b>Sent: </b>Friday, 26 February, 2016 05:57:51<br><b>Subject: </b>Re: [Spacewalk-list] jabber sm segfault<br></div><br><div data-marker="__QUOTED_TEXT__"><br>
    <br>
    <div class="moz-cite-prefix">Am 25.02.2016 um 12:50 schrieb Stehle,
      Christian:<br>
    </div>
    <blockquote cite="mid:C9E9752A7B0DF24096E52816A4DD64CECC204E@ex-mbx1.fhnu.uas">
      
      
      
      <style><!--

@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Lucida Console";
        panose-1:2 11 6 9 4 5 4 2 2 4;}

p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.object
        {mso-style-name:object;}
span.E-MailFormatvorlage18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.E-MailFormatvorlage19
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
      <div class="WordSection1">
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US" lang="EN-US">Hi,</span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US" lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US" lang="EN-US">i tried this workaround and it seems to work.</span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US" lang="EN-US"><a class="moz-txt-link-freetext" href="https://bugzilla.redhat.com/show_bug.cgi?id=1222868" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1222868</a></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US" lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US" lang="EN-US">in etc/crontab I call once a day this command
            to reset the jabbed db, now with a short sleep before
            starting osa-dispatcher.</span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US" lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US" lang="EN-US">service jabberd stop</span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US" lang="EN-US">service osa-dispatcher stop</span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US" lang="EN-US">rm -Rf /var/lib/jabberd/db/*</span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US" lang="EN-US">service jabberd start</span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US" lang="EN-US">sleep 10m (or other time, depends on number of
            systems running)</span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US" lang="EN-US">service osa-dispatcher start</span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US" lang="EN-US"> </span></p>
      </div>
    </blockquote>
    Deleting /var/lib/jabberd you'll delete all state information about
    jabber clients. This will cause you trouble if you have
    spacewalk/satellite proxies in use. The clients connected to the
    spacewalk-proxy won't notice the deleted data and therefore not
    re-subscribe. Any osad action regarding this clients will be queued
    without a error message until the osad service on the affected
    services get restarted.<br>
    <br>
    I would not recommend to delete jabberd data.<br>
    <br>
    <br>
    - Thomas<br>
    <br>
    <br>
  

<br>_______________________________________________<br>Spacewalk-list mailing list<br>Spacewalk-list@redhat.com<br>https://www.redhat.com/mailman/listinfo/spacewalk-list<br></div></div></body></html>