Hi Matt,<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<i>> node1: [>....................] sync'ed: 0.2% (6858868/*6869920*)M<br>
> node0 says 6,869,922, and node1 says 6,869,920.<br></i>
<div><i>><br>
> I have tried to sync this box a couple of times already, and it always gets<br>
> stalled at 100%.<br><br></i>
</div><i>This doesn't seem right. What does "blockdev --getsize" return on the backing<br>
device for both machines? This should generally return the same number, and a<br>
number that's smaller than the output of "blockdev --getsize /dev/drbdX" on<br>
the primary machine unless you're using external metadata.</i><br></blockquote><div><br>I put the node0 as primary, and executed:<br><br>[<span style="font-family:courier new,monospace">~]# blockdev --getsize /dev/drbd0</span><br style="font-family:courier new,monospace">
<br>Then, put it back as secondary, went to node1, put it as primary and executed the same above. The output was exactly the same on both:<br><br><span style="font-family:courier new,monospace">31248970352</span><br><span style="font-family:courier new,monospace"></span> <br>
</div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<i>I see both machines are set to Secondary. Why is that?</i></blockquote><div><br>As I said, I have been trying to sync this box for a long time, and I always get stalled at 100%. This time, I just tried to:<br><ul><li>
umount the unit (to prevent any data modification)</li><li>set both to secondary (to prevent anything trying to mount it)</li><li>sync without touching the content of the device.<br></li></ul></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<i> Is there a filesystem on this DRBD device?</i></blockquote><div><br>Yes!! There is!! It's a 16Tb device, with 7Tb of data in it. I had just transferred 6Tb of data to the primary node, last week. (I mean, the secondary node was down, but I transferred the data to the primary anyway). My data is on the primary, and I can't get the secondary to sync.<br>
<br>I have already tried to discard the secondary, and force a overwrite from the primary to the secondary. No success, though.<br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<i>If there is, there may be stupid things going on if the<br>
filesystem is larger than one machine's backing device. If there isn't a<br>
filesystem on the device yet, you may be able to get away with just "drbdadm<br>
resize" on the resource--that should shrink the DRBD resource to (size of<br>
smallest device - internal metadata space) and prevent weirdness in the<br>
future.</i><span><font color="#888888"><br></font></span></blockquote><div><br>How can I fix/shrink it without losing the data in it??<br><br>Thanks,<br>Marcelo </div></div>