<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi, was wondering if you could guide me as to what could be the issue here. I configured 3 servers with <span>drbdmanage-0.99.16-1 and <span>drbd-9.3.1-1 and related packages.</span></span></p>
<p style="margin-top:0;margin-bottom:0"><span><span><br>
</span></span></p>
<p style="margin-top:0;margin-bottom:0"><span><span>I created a zfs pool, then use zfs2.Zfs2 plugin and created a resource. All seems fine, up to the point when I want to test the resource and create a file system in it. At that point, if I try to create say
an XFS filesystem, things freeze. If I create a ZFS pool on the drbd device, the creation succeeds, but then I cannot write or read from that.</span></span></p>
<p style="margin-top:0;margin-bottom:0"><span><span><br>
</span></span></p>
<p style="margin-top:0;margin-bottom:0"><span><span><span style="font-family:monospace"># zfs list
<br>
NAME USED AVAIL REFER MOUNTPOINT <br>
mainpool 11.6T 1.02T 24K none <br>
mainpool/export_00 11.6T 12.6T 7.25G -<br>
<br>
The plugin configuration:<br>
</span><span style="font-family:monospace">[GLOBAL] <br>
<br>
[Node:ae-fs01] <br>
storage-plugin = drbdmanage.storage.zvol2.Zvol2 <br>
<br>
[Plugin:Zvol2] <br>
volume-group = mainpool<br>
<br>
</p>
<div># drbdmanage list-nodes</div>
<div>+------------------------------------------------------------------------------------------------------------+</div>
<div>| Name | Pool Size | Pool Free | | State |</div>
<div>|------------------------------------------------------------------------------------------------------------|</div>
<div>| ae-fs01 | 13237248 | 1065678 | | ok |</div>
<div>| ae-fs02 | 13237248 | 1065683 | | ok |</div>
<div>| ae-fs03 | 13237248 | 1065672 | | ok |</div>
<div>+------------------------------------------------------------------------------------------------------------+</div>
<p style="margin-top:0;margin-bottom:0"><span><span><span style="font-family:monospace"><br>
</span></span></span></p>
<span style="font-family:monospace"># drbdmanage list-volumes <br>
+------------------------------------------------------------------------------------------------------------+
<br>
| <span style="color: rgb(24, 178, 178);">Name</span> | <span style="color: rgb(178, 104, 24);">
Vol ID</span> | <span style="color: rgb(178, 104, 24);">Size</span> | <span style="color: rgb(178, 104, 24);">
Minor</span> | | <span style="color: rgb(24, 178, 24);">
State</span> | <br>
|------------------------------------------------------------------------------------------------------------|
<br>
| <span style="color: rgb(24, 178, 178);">export</span> | <span style="color: rgb(178, 104, 24);">0</span> |
<span style="color: rgb(178, 104, 24);">10.91 TiB</span> | <span style="color: rgb(178, 104, 24);">106</span> | | <span style="color: rgb(24, 178, 24);">ok</span> |
<br>
+------------------------------------------------------------------------------------------------------------+<br>
<br>
</span>But trying to make one node primary and creating a file system, either a new zfs pool for data or XFS file system fail.</span></span></span>
<p></p>
<p style="margin-top:0;margin-bottom:0"><span><span><span style="font-family:monospace"><br>
</span></span></span></p>
<p style="margin-top:0;margin-bottom:0"><span><span><span style="font-family:monospace"><span style="font-family:monospace"># drbdadm primary export
<br>
# drbdadm status <br>
.drbdctrl role:Secondary <br>
volume:0 disk:<span style="font-weight: bold; color: rgb(84, 255, 84);">UpToDate</span>
<br>
volume:1 disk:<span style="font-weight: bold; color: rgb(84, 255, 84);">UpToDate</span>
<br>
ae-fs02 role:<span style="color: rgb(24, 178, 178);">Primary</span> <br>
volume:0 peer-disk:<span style="color: rgb(24, 178, 24);">UpToDate</span> <br>
volume:1 peer-disk:<span style="color: rgb(24, 178, 24);">UpToDate</span> <br>
ae-fs03 role:Secondary <br>
volume:0 peer-disk:<span style="color: rgb(24, 178, 24);">UpToDate</span> <br>
volume:1 peer-disk:<span style="color: rgb(24, 178, 24);">UpToDate</span> <br>
<br>
export role:<span style="font-weight: bold; color: rgb(84, 255, 255);">Primary</span>
<br>
disk:<span style="font-weight: bold; color: rgb(84, 255, 84);">UpToDate</span> <br>
ae-fs02 role:Secondary <br>
peer-disk:<span style="color: rgb(24, 178, 24);">UpToDate</span> <br>
ae-fs03 role:Secondary <br>
peer-disk:<span style="color: rgb(24, 178, 24);">UpToDate</span><br>
<br>
</span><span style="font-family:monospace"># zpool create export /dev/drbd106 <br>
# zfs set compression=lz4 export <br>
# ls /export <br>
ls: reading directory /export: Not a directory<br>
<br>
If I destroy the pool and try to format /dev/drbd106 as XFS, it just hangs forever. Any ideas as to what is happening? </span></span></span></span></p>
<p style="margin-top:0;margin-bottom:0"><span><span><span style="font-family:monospace"><span style="font-family:monospace"><br>
</span></span></span></span></p>
<p style="margin-top:0;margin-bottom:0"><span><span><span style="font-family:monospace"><span style="font-family:monospace">Diego<br>
<br>
</span><br>
</span><br>
</span></span></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p></p>
</div>
</div>
</div>
</body>
</html>