<div dir="ltr"><br><div>I am trying to understand how  verify that a replicated volume is up to date.</div><div><br></div><div><br></div><div>Here is my scenario.  I have a gluster cluster with two nodes serving vm images to ovirt.</div>

<div><br></div><div>I have a volume called vm-store with a brick from each of the nodes:</div><div><br></div><div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Volume Name: vm-store<br>Type: Replicate<br>Volume ID: 379e52d3-2622-4834-8aef-b255db1c67af<br>Status: Started<br>Number of Bricks: 1 x 2 = 2<br>Transport-type: tcp<br>Bricks:<br>Brick1: gluster1:/export/brick0<br>Brick2: gluster0:/export/brick0<br>
Options Reconfigured:<br>user.cifs: disable<br>nfs.rpc-auth-allow: *<br>auth.allow: *<br>storage.owner-gid: 36<br>storage.owner-uid: 36</blockquote>

</div><div><br></div></div><div style>The bricks are formated with xfs using the same options on both servers and the two servers are identical hardware and OS version and release (CentOS 6.5) with glusterfs v 3.4.2  from <a href="http://bits.gluster.org">bits.gluster.org</a>.</div>
<div style><br></div><div style>I have a 20GB sparse disk image for a VM but I am confused about why I see differend reported disk usage on each of the nodes:</div><div style><br></div><div style><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
[root@gluster0 ~]#  du -sh /export/brick0<br>48G<span class="" style="white-space:pre">        </span>/export/brick0<br>[root@gluster0 ~]# du -sh /export/brick0/6d637c7f-a4ab-4510-a0d9-63a04c55d6d8/images/5dfc7c6f-d35d-4831-b2fb-ed9ab8e3392b/5933a44e-77d6-4606-b6a9-bbf7e4235b13<br>
8.6G<span class="" style="white-space:pre">        </span>/export/brick0/6d637c7f-a4ab-4510-a0d9-63a04c55d6d8/images/5dfc7c6f-d35d-4831-b2fb-ed9ab8e3392b/5933a44e-77d6-4606-b6a9-bbf7e4235b13<br>[root@gluster1 ~]# du -sh /export/brick0<br>
52G<span class="" style="white-space:pre">        </span>/export/brick0<br>[root@gluster1 ~]# du -sh /export/brick0/6d637c7f-a4ab-4510-a0d9-63a04c55d6d8/images/5dfc7c6f-d35d-4831-b2fb-ed9ab8e3392b/5933a44e-77d6-4606-b6a9-bbf7e4235b13<br>
12G<span class="" style="white-space:pre">        </span>/export/brick0/6d637c7f-a4ab-4510-a0d9-63a04c55d6d8/images/5dfc7c6f-d35d-4831-b2fb-ed9ab8e3392b/5933a44e-77d6-4606-b6a9-bbf7e4235b13</blockquote></div><div><br></div><div style>
sure enough stat also shows different number of blocks:</div><div style><br></div><div style><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
[root@gluster0 ~]# stat /export/brick0/6d637c7f-a4ab-4510-a0d9-63a04c55d6d8/images/5dfc7c6f-d35d-4831-b2fb-ed9ab8e3392b/5933a44e-77d6-4606-b6a9-bbf7e4235b13<br>  File: `/export/brick0/6d637c7f-a4ab-4510-a0d9-63a04c55d6d8/images/5dfc7c6f-d35d-4831-b2fb-ed9ab8e3392b/5933a44e-77d6-4606-b6a9-bbf7e4235b13&#39;<br>
  Size: 21474836480<span class="" style="white-space:pre">        </span>Blocks: 17927384   IO Block: 4096   regular file<br>Device: fd03h/64771d<span class="" style="white-space:pre">        </span>Inode: 1610613256  Links: 2<br>Access: (0660/-rw-rw----)  Uid: (   36/    vdsm)   Gid: (   36/     kvm)<br>
Access: 2014-02-18 17:06:30.661993000 -0500<br>Modify: 2014-02-20 13:29:33.507966199 -0500<br>Change: 2014-02-20 13:29:33.507966199 -0500<br>[root@gluster1 ~]# stat /export/brick0/6d637c7f-a4ab-4510-a0d9-63a04c55d6d8/images/5dfc7c6f-d35d-4831-b2fb-ed9ab8e3392b/5933a44e-77d6-4606-b6a9-bbf7e4235b13<br>
  File: `/export/brick0/6d637c7f-a4ab-4510-a0d9-63a04c55d6d8/images/5dfc7c6f-d35d-4831-b2fb-ed9ab8e3392b/5933a44e-77d6-4606-b6a9-bbf7e4235b13&#39;<br>  Size: 21474836480<span class="" style="white-space:pre">        </span>Blocks: 24735976   IO Block: 4096   regular file<br>
Device: fd03h/64771d<span class="" style="white-space:pre">        </span>Inode: 3758096942  Links: 2<br>Access: (0660/-rw-rw----)  Uid: (   36/    vdsm)   Gid: (   36/     kvm)<br>Access: 2014-02-20 09:30:38.490724245 -0500<br>
Modify: 2014-02-20 13:29:39.464913739 -0500<br>Change: 2014-02-20 13:29:39.465913754 -0500</blockquote><div><br></div></div><div><br></div><div style>Can someone clear up my understanding?</div><div style><br></div><div style>
Thanks, Alastair</div><div style><br></div><div><br></div><div><br></div><div><br></div></div>