<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Dear DRBD-Users,</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Currently I'm trying to learn and test DRBD 9 on Oracle Linux 6 system (the same for production), and it's isolated from outside network, so using yum is out of question (and I can't upgrade the distro since it will be used on the running production). Currently, I'm building it using the tarball.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>[Configuration] </p><p class=MsoNormal>Oracle release: Oracle Linux Server release 6.10 (based on RHEL Server release 6.10)</p><p class=MsoNormal>Kernel version: 4.1.12-124.16.4 el6uek.x86_64</p><p class=MsoNormal>DRBD: drbd- drbd-9.0.21-1</p><p class=MsoNormal style='text-indent:.5in'>drbd-utils-9.13.0</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>[Installation]<o:p></o:p></p><p class=MsoNormal>Currently, I’m using <a href="https://www.server-world.info/en/note?os=CentOS_7&p=drbd9&f=1">https://www.server-world.info/en/note?os=CentOS_7&p=drbd9&f=1</a> guide and skipping the drbdmanage step (because it got replaced with linstor and there’s no archive anywhere that I searched). There’s also <a href="https://www.server-world.info/en/note?os=CentOS_6&p=drbd&f=1">https://www.server-world.info/en/note?os=CentOS_6&p=drbd&f=1</a> guide for EL6 but the DRBD version there is 8.4. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I need to install DRBD 9 because we already use 8.4 in our production and we’re looking to upgrade it.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I can run `make kmp-rpm` for DRBD 9 and `./configure` for drbd-utils just fine, but when I run `make rpm` for drbd-utils, it gives me this error (ran as root):<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><pre><code>RPM build errors:<o:p></o:p></code></pre><pre><code> %defattr doesn't define directory mode so file mode defined in %defattr is used for directory: /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/lib/drbd<o:p></o:p></code></pre><pre><code> File not found: /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/usr/sbin/drbdmon<o:p></o:p></code></pre><pre><code> %defattr doesn't define directory mode so file mode defined in %defattr is used for directory: /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/usr/lib/drbd<o:p></o:p></code></pre><pre><code> %defattr doesn't define directory mode so file mode defined in %defattr is used for directory: /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/var/lib/drbd<o:p></o:p></code></pre><pre><code> %defattr doesn't define directory mode so file mode defined in %defattr is used for directory: /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/var/run/drbd<o:p></o:p></code></pre><pre><code> File not found by glob: /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/usr/share/man/man8/drbdmon-*<o:p></o:p></code></pre><pre><code>make: *** [rpm] Error 1<o:p></o:p></code></pre><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I tried installing different versions:<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'>drbd-9.0.25-2 with drbd-utils 9.15.1<o:p></o:p></p><p class=MsoNormal> drbd-9.0.21-1 with drbd-utils 9.15.1<o:p></o:p></p><p class=MsoNormal> drbd-9.0.25-2 with drbd-utils 9.13.0<o:p></o:p></p><p class=MsoNormal>but it still gives me the same error.<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Here’s the files in directories of the error above:<o:p></o:p></p><pre><code># ls /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/lib/<o:p></o:p></code></pre><pre><code>drbd udev<o:p></o:p></code></pre><pre><code><o:p> </o:p></code></pre><pre><code># ls /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/usr/sbin/<o:p></o:p></code></pre><pre><code>drbdadm drbdmeta drbdsetup<o:p></o:p></code></pre><pre><code><o:p> </o:p></code></pre><pre><code># ls /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/usr/lib/<o:p></o:p></code></pre><pre><code>debug drbd ocf<o:p></o:p></code></pre><pre><code><o:p> </o:p></code></pre><pre><code># ls /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/var/lib/<o:p></o:p></code></pre><pre><code>drbd<o:p></o:p></code></pre><pre><code><o:p> </o:p></code></pre><pre><code># ls /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/var/run/<o:p></o:p></code></pre><pre><code>drbd<o:p></o:p></code></pre><pre><code><o:p> </o:p></code></pre><pre><code># ls /root/rpmbuild/BUILDROOT/drbd-9.13.0-1.el6.x86_64/usr/share/man/man8/<o:p></o:p></code></pre><pre><code>drbd-8.3.8.gz drbdadm-8.4.8.gz drbdmeta-8.3.8.gz drbdsetup-8.4.8.gz<o:p></o:p></code></pre><pre><code>drbd-8.4.8.gz drbdadm-9.0.8.gz drbdmeta-8.4.8.gz drbdsetup-9.0.8.gz<o:p></o:p></code></pre><pre><code>drbd-9.0.8.gz drbddisk-8.3.8.gz drbdmeta-9.0.8.gz<o:p></o:p></code></pre><pre><code>drbdadm-8.3.8.gz drbddisk-8.4.8.gz drbdsetup-8.3.8.gz<o:p></o:p></code></pre><pre><code><o:p> </o:p></code></pre><p class=MsoNormal>My question is:<o:p></o:p></p><p class=MsoNormal>Is drbdmon part of drbdmanage? How do I solve this issue?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Any help will be much appreciated. <o:p></o:p></p></div></body></html>