https://tracker.ceph.com/https://tracker.ceph.com/favicon.ico2018-03-30T14:00:08ZCeph rbd - Bug #23516: [rbd-mirror] entries_behind_master will not be zero after mirror overhttps://tracker.ceph.com/issues/23516?journal_id=1099362018-03-30T14:00:08ZJason Dillamandillaman@redhat.com
<ul><li><strong>Priority</strong> changed from <i>Normal</i> to <i>Low</i></li></ul><p>This is actually just an artifact of IO batching within rbd-mirror. The commit position is only updated after every 32 IOs in the absence of a flush request. Under a real workload, you would have flush requests so the updated commit position would be appropriately advanced. If you were to take a snapshot of your source image and compare it to your destination, you would discover that both images are identical (you would also discover your 'entries_behind_master' dropping to zero since a snapsoht would flush).</p> rbd - Bug #23516: [rbd-mirror] entries_behind_master will not be zero after mirror overhttps://tracker.ceph.com/issues/23516?journal_id=1099772018-04-02T02:09:00Zliuzhong chen
<ul></ul><p>Thank you! @Jason Dillaman<br />I have anther two question.I find the non-primary image used volumes is equal to primary image used volumes although the entries_behind_master is not zero.It means just the mirror_commit_position not update but all the date have been mirror to mirror image.Am I right?<br /><pre><code class="cpp syntaxhl"><span class="CodeRay">[root<span class="error">@</span>node-<span class="integer">1</span> ~]<span class="preprocessor"># rbd</span> du poolclz1/rbdclz1
NAME PROVISIONED USED
rbdclz1 <span class="integer">1024</span>M <span class="integer">940</span>M
</span></code></pre><br /><pre><code class="cpp syntaxhl"><span class="CodeRay">[root<span class="error">@</span>node-<span class="integer">1</span> ~]<span class="preprocessor"># ssh</span> node-<span class="integer">2</span>
Last login: Fri Mar <span class="integer">30</span> <span class="octal">01</span>:<span class="integer">51</span>:<span class="integer">34</span> <span class="integer">2018</span> from <span class="integer">19</span><span class="float">2</span><span class="float">.168</span><span class="float">.122</span><span class="float">.1</span>
[root<span class="error">@</span>node-<span class="integer">2</span> ~]<span class="preprocessor"># rbd</span> mirror image status poolclz1/rbdclz1
rbdclz1:
global_id: <span class="integer">0</span><span class="float">9f</span>ebb93-<span class="float">3</span>eac-<span class="integer">4467</span>-a284-f02f90b846b5
state: up+replaying
description: replaying, master_position=[object_number=<span class="integer">3</span>, tag_tid=<span class="integer">2</span>, entry_tid=<span class="integer">619</span>], mirror_position=[object_number=<span class="integer">3</span>, tag_tid=<span class="integer">2</span>, entry_tid=<span class="integer">607</span>], entries_behind_master=<span class="integer">12</span>
last_update: <span class="integer">2018</span>-<span class="octal">03</span>-<span class="integer">30</span> <span class="octal">02</span>:<span class="integer">08</span>:<span class="integer">19</span>
</span></code></pre><br /><pre><code class="cpp syntaxhl"><span class="CodeRay">[root<span class="error">@</span>node-<span class="integer">2</span> ~]<span class="preprocessor"># rbd</span> du poolclz1/rbdclz1
NAME PROVISIONED USED
rbdclz1 <span class="integer">1024</span>M <span class="integer">940</span>M
</span></code></pre></p> rbd - Bug #23516: [rbd-mirror] entries_behind_master will not be zero after mirror overhttps://tracker.ceph.com/issues/23516?journal_id=1099782018-04-02T02:17:51Zliuzhong chen
<ul></ul><p>Another question is if I use fio to write for 60s.Is there any other parameter to indicate that the mirror is over?<br />If there is no other paramete,I think if the entries_behind_master is less than 32,I can affirm the mirror is over.Whether this method is feasible or not.<br />Thank you!</p> rbd - Bug #23516: [rbd-mirror] entries_behind_master will not be zero after mirror overhttps://tracker.ceph.com/issues/23516?journal_id=1099992018-04-02T15:48:05ZJason Dillamandillaman@redhat.com
<ul></ul><p>We'll get this status artifact fixed. You can use the admin socket to the rbd-mirror daemon to force a flush if desired: 'ceph --admin-daemon /path/to/rbd-mirror.asok rbd mirror flush'.</p> rbd - Bug #23516: [rbd-mirror] entries_behind_master will not be zero after mirror overhttps://tracker.ceph.com/issues/23516?journal_id=1100202018-04-03T03:18:58Zliuzhong chen
<ul></ul><p>Thank you! This method can flush it.But now need to write a script to judge the mirror is over automatic,so I wonder if it is all data of primary image have been mirrored to non-primary although the entries_behind_master stop at 12?</p> rbd - Bug #23516: [rbd-mirror] entries_behind_master will not be zero after mirror overhttps://tracker.ceph.com/issues/23516?journal_id=1143472018-05-30T20:56:08ZJason Dillamandillaman@redhat.com
<ul><li><strong>Subject</strong> changed from <i>rbd mirror: entries_behind_master will not be zero after mirror over</i> to <i>[rbd-mirror] entries_behind_master will not be zero after mirror over</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li><li><strong>Assignee</strong> set to <i>Jason Dillaman</i></li><li><strong>Backport</strong> set to <i>jewel,luminous,mimic</i></li></ul> rbd - Bug #23516: [rbd-mirror] entries_behind_master will not be zero after mirror overhttps://tracker.ceph.com/issues/23516?journal_id=1143952018-05-31T13:32:38ZJason Dillamandillaman@redhat.com
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Fix Under Review</i></li></ul><p><strong>PR</strong>: <a class="external" href="https://github.com/ceph/ceph/pull/22342">https://github.com/ceph/ceph/pull/22342</a></p> rbd - Bug #23516: [rbd-mirror] entries_behind_master will not be zero after mirror overhttps://tracker.ceph.com/issues/23516?journal_id=1144582018-06-01T13:07:29ZJason Dillamandillaman@redhat.com
<ul><li><strong>Status</strong> changed from <i>Fix Under Review</i> to <i>Pending Backport</i></li></ul> rbd - Bug #23516: [rbd-mirror] entries_behind_master will not be zero after mirror overhttps://tracker.ceph.com/issues/23516?journal_id=1144592018-06-01T13:08:02ZJason Dillamandillaman@redhat.com
<ul><li><strong>Copied to</strong> <i><a class="issue tracker-9 status-3 priority-3 priority-lowest closed" href="/issues/24378">Backport #24378</a>: luminous: [rbd-mirror] entries_behind_master will not be zero after mirror over</i> added</li></ul> rbd - Bug #23516: [rbd-mirror] entries_behind_master will not be zero after mirror overhttps://tracker.ceph.com/issues/23516?journal_id=1144622018-06-01T13:09:49ZJason Dillamandillaman@redhat.com
<ul><li><strong>Status</strong> changed from <i>Pending Backport</i> to <i>Fix Under Review</i></li></ul> rbd - Bug #23516: [rbd-mirror] entries_behind_master will not be zero after mirror overhttps://tracker.ceph.com/issues/23516?journal_id=1145012018-06-02T06:50:11ZMykola Golubmgolub@suse.com
<ul><li><strong>Status</strong> changed from <i>Fix Under Review</i> to <i>Pending Backport</i></li></ul> rbd - Bug #23516: [rbd-mirror] entries_behind_master will not be zero after mirror overhttps://tracker.ceph.com/issues/23516?journal_id=1145042018-06-02T07:05:19ZNathan Cutlerncutler@suse.cz
<ul><li><strong>Copied to</strong> <i><a class="issue tracker-9 status-3 priority-4 priority-default closed" href="/issues/24391">Backport #24391</a>: mimic: [rbd-mirror] entries_behind_master will not be zero after mirror over</i> added</li></ul> rbd - Bug #23516: [rbd-mirror] entries_behind_master will not be zero after mirror overhttps://tracker.ceph.com/issues/23516?journal_id=1145062018-06-02T07:05:21ZNathan Cutlerncutler@suse.cz
<ul><li><strong>Copied to</strong> <i><a class="issue tracker-9 status-5 priority-4 priority-default closed" href="/issues/24392">Backport #24392</a>: jewel: [rbd-mirror] entries_behind_master will not be zero after mirror over</i> added</li></ul> rbd - Bug #23516: [rbd-mirror] entries_behind_master will not be zero after mirror overhttps://tracker.ceph.com/issues/23516?journal_id=1210742018-09-20T13:04:39ZJason Dillamandillaman@redhat.com
<ul><li><strong>Status</strong> changed from <i>Pending Backport</i> to <i>Resolved</i></li></ul>