<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div>hi,<br></div><div>pure drbd, no corosync/pacemaker (first attempt, i started to read about lvm,cluster,... some days ago) <br><br></div>when drbd on top of lv (lvm-logical-volumn) and on both nodes the lv are formatted with <br>


mkfs.ext4, cause of error 40 i had to zero the start of lv. <br></div>after &#39;create-md&#39; and &#39;up&#39; on both nodes (cs:Connected ro=Sec/Sec ds=Inconsistant/Inconsistant) now i tried<br></div> drbdadm --force primary r0  <br>


</div>but i got error 17 and found in www a solution <br></div> drbdadm invalidate r0<br></div>now automatically sync starts (cs:SyncTarget ro=Sec/Sec ds=Incons/Uptodate)  <br></div>the peer is implicit declared uptodate this way ?<br>


</div>i should have invalidated the peer if i want to set local node to be primary ? (in case there are actually data on the node that shall become primary) <br><br></div>but the main question:<br></div>can i avoid the sync process, if on new disks there are no data ?<br>
<br></div><br></div><div>sync is done (cs:Connected ro=Sec/Sec ds=Uptodate/Uptodate) <br></div><div><br></div>i read, when brbd with pacemaker, then (i guess the resource-manager forces this) only on <br>
</div>primary i have rw-access, and on secondary i cannot even read the mirrored data. <br>
</div>i found the data (lv) already mounted on primary. i created a small file in /mnt/lva (mountpoint declared in /etc/fstab) <br><div><br></div><div>now i want to change roles (manual 6.5 basic manual failover).<br>`mount` or `df -h` does not show the mounted device.<br>


</div><div><br></div><div>umount /dev/vg_xxx/lv_aaa   =&gt; not mounted<br></div><div>umount /mnt/lva                   =&gt; not mounted<br></div><div>umount /dev/mapper/vg_xxx-lv_aaa =&gt; not mounted <br><br></div><div>

i simply tried (on current primary) :<br></div><div> drbdadm secondary r  <br></div><div> cd /mnt/lva<br></div><div> # change on that small file <br></div><div> /proc/drbd -&gt; ds:uptodate/uptodate <br><br></div><div>on secondary : <br>

</div><div> drbdadm primary r <br></div><div> -&gt; ro:Primary/Secondary ds:uptodate/uptodate (roles changed) <br><br></div><div>on new primary i cannot mount the volumn cause its busy <br></div><div>on old primary i can still see the new file <br>

<br></div><div>now i stopped drbd on old primary and tried to mount the lv <br></div><div>but it cannot mounted as ext4 anymore, cause it is damaged by the call of dd ?!<br><br></div><div>how this is done correct: brbd on top of lv with internal metadata ? <br>
</div><div> ? i must not zero the head of the formatted lv <br></div><div> ? i have to force writing metadata to the end of that lv <br></div><div><br></div><div>thanks in advance<br>andreas<br></div><div><br></div>

<div><br></div><div><div><div><div><div><div><div><br></div></div></div></div></div></div></div></div>