DRBD Failure: (127) Device minor not allocated

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I use wmware workstation to run two virtual machines with OpenVZ 2.6.32-042stab108.2 installed on top on CentOS 6.6. I have created another primary partition, /dev/sda4, to configure it as drbd resource. I also created a filsystem on it. The second machine is actually created using the virtual disk of the first one, with changed hostname and eth0 ip address. The drbd configuration file is this:



global usage-count no; 
common syncer rate 100M;
resource r0
protocol C;
startup
wfc-timeout 15;
degr-wfc-timeout 60;

net
cram-hmac-alg sha1;
shared-secret "password";

on primary
device /dev/drbd0;
disk /dev/sda4;
address 192.168.18.10:7788;
meta-disk internal;

on secondary
device /dev/drbd0;
disk /dev/sda4;
address 192.168.18.20:7788;
meta-disk internal;




After creating the resource with drbdadm create-md r0, when I enter service drbd start, I get:



Failure: (127) Device minor not allocated.


The output of drbdadm dump all might be helpful:



[root@primary ~]# drbdadm dump all
# /etc/drbd.conf
# resource r0 on primary: not ignored, not stacked
resource r0
protocol C;
on primary
device /dev/drbd0 minor 0;
disk /dev/sda4;
address ipv4 192.168.18.10:7788;
meta-disk internal;

on secondary
device /dev/drbd0 minor 0;
disk /dev/sda4;
address ipv4 192.168.18.20:7788;
meta-disk internal;

net
cram-hmac-alg sha1;
shared-secret danuts;

startup
wfc-timeout 15;
degr-wfc-timeout 60;




What is causing this error and how can it be mitigated? Thanks!










share|improve this question























  • Updated with drbdadm dump all command output.
    – Tanatos Daniel
    Jun 13 '15 at 1:37










  • You mean the guest operating system is openvz+centos6.6?
    – tonioc
    Apr 10 at 15:50














up vote
0
down vote

favorite












I use wmware workstation to run two virtual machines with OpenVZ 2.6.32-042stab108.2 installed on top on CentOS 6.6. I have created another primary partition, /dev/sda4, to configure it as drbd resource. I also created a filsystem on it. The second machine is actually created using the virtual disk of the first one, with changed hostname and eth0 ip address. The drbd configuration file is this:



global usage-count no; 
common syncer rate 100M;
resource r0
protocol C;
startup
wfc-timeout 15;
degr-wfc-timeout 60;

net
cram-hmac-alg sha1;
shared-secret "password";

on primary
device /dev/drbd0;
disk /dev/sda4;
address 192.168.18.10:7788;
meta-disk internal;

on secondary
device /dev/drbd0;
disk /dev/sda4;
address 192.168.18.20:7788;
meta-disk internal;




After creating the resource with drbdadm create-md r0, when I enter service drbd start, I get:



Failure: (127) Device minor not allocated.


The output of drbdadm dump all might be helpful:



[root@primary ~]# drbdadm dump all
# /etc/drbd.conf
# resource r0 on primary: not ignored, not stacked
resource r0
protocol C;
on primary
device /dev/drbd0 minor 0;
disk /dev/sda4;
address ipv4 192.168.18.10:7788;
meta-disk internal;

on secondary
device /dev/drbd0 minor 0;
disk /dev/sda4;
address ipv4 192.168.18.20:7788;
meta-disk internal;

net
cram-hmac-alg sha1;
shared-secret danuts;

startup
wfc-timeout 15;
degr-wfc-timeout 60;




What is causing this error and how can it be mitigated? Thanks!










share|improve this question























  • Updated with drbdadm dump all command output.
    – Tanatos Daniel
    Jun 13 '15 at 1:37










  • You mean the guest operating system is openvz+centos6.6?
    – tonioc
    Apr 10 at 15:50












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I use wmware workstation to run two virtual machines with OpenVZ 2.6.32-042stab108.2 installed on top on CentOS 6.6. I have created another primary partition, /dev/sda4, to configure it as drbd resource. I also created a filsystem on it. The second machine is actually created using the virtual disk of the first one, with changed hostname and eth0 ip address. The drbd configuration file is this:



global usage-count no; 
common syncer rate 100M;
resource r0
protocol C;
startup
wfc-timeout 15;
degr-wfc-timeout 60;

net
cram-hmac-alg sha1;
shared-secret "password";

on primary
device /dev/drbd0;
disk /dev/sda4;
address 192.168.18.10:7788;
meta-disk internal;

on secondary
device /dev/drbd0;
disk /dev/sda4;
address 192.168.18.20:7788;
meta-disk internal;




After creating the resource with drbdadm create-md r0, when I enter service drbd start, I get:



Failure: (127) Device minor not allocated.


The output of drbdadm dump all might be helpful:



[root@primary ~]# drbdadm dump all
# /etc/drbd.conf
# resource r0 on primary: not ignored, not stacked
resource r0
protocol C;
on primary
device /dev/drbd0 minor 0;
disk /dev/sda4;
address ipv4 192.168.18.10:7788;
meta-disk internal;

on secondary
device /dev/drbd0 minor 0;
disk /dev/sda4;
address ipv4 192.168.18.20:7788;
meta-disk internal;

net
cram-hmac-alg sha1;
shared-secret danuts;

startup
wfc-timeout 15;
degr-wfc-timeout 60;




What is causing this error and how can it be mitigated? Thanks!










share|improve this question















I use wmware workstation to run two virtual machines with OpenVZ 2.6.32-042stab108.2 installed on top on CentOS 6.6. I have created another primary partition, /dev/sda4, to configure it as drbd resource. I also created a filsystem on it. The second machine is actually created using the virtual disk of the first one, with changed hostname and eth0 ip address. The drbd configuration file is this:



global usage-count no; 
common syncer rate 100M;
resource r0
protocol C;
startup
wfc-timeout 15;
degr-wfc-timeout 60;

net
cram-hmac-alg sha1;
shared-secret "password";

on primary
device /dev/drbd0;
disk /dev/sda4;
address 192.168.18.10:7788;
meta-disk internal;

on secondary
device /dev/drbd0;
disk /dev/sda4;
address 192.168.18.20:7788;
meta-disk internal;




After creating the resource with drbdadm create-md r0, when I enter service drbd start, I get:



Failure: (127) Device minor not allocated.


The output of drbdadm dump all might be helpful:



[root@primary ~]# drbdadm dump all
# /etc/drbd.conf
# resource r0 on primary: not ignored, not stacked
resource r0
protocol C;
on primary
device /dev/drbd0 minor 0;
disk /dev/sda4;
address ipv4 192.168.18.10:7788;
meta-disk internal;

on secondary
device /dev/drbd0 minor 0;
disk /dev/sda4;
address ipv4 192.168.18.20:7788;
meta-disk internal;

net
cram-hmac-alg sha1;
shared-secret danuts;

startup
wfc-timeout 15;
degr-wfc-timeout 60;




What is causing this error and how can it be mitigated? Thanks!







centos openvz replication drbd






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 13 '15 at 16:51

























asked Jun 8 '15 at 23:52









Tanatos Daniel

18517




18517











  • Updated with drbdadm dump all command output.
    – Tanatos Daniel
    Jun 13 '15 at 1:37










  • You mean the guest operating system is openvz+centos6.6?
    – tonioc
    Apr 10 at 15:50
















  • Updated with drbdadm dump all command output.
    – Tanatos Daniel
    Jun 13 '15 at 1:37










  • You mean the guest operating system is openvz+centos6.6?
    – tonioc
    Apr 10 at 15:50















Updated with drbdadm dump all command output.
– Tanatos Daniel
Jun 13 '15 at 1:37




Updated with drbdadm dump all command output.
– Tanatos Daniel
Jun 13 '15 at 1:37












You mean the guest operating system is openvz+centos6.6?
– tonioc
Apr 10 at 15:50




You mean the guest operating system is openvz+centos6.6?
– tonioc
Apr 10 at 15:50










1 Answer
1






active

oldest

votes

















up vote
0
down vote













I just had the same error , it appeared that IP address for the second node was not reachable.
First i checked the service status:



systemctl status drbd.service
â drbd.service - DRBD -- please disable. Unless you are NOT using a cluster manager.
Loaded: loaded (/usr/lib/systemd/system/drbd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since mar. 2018-04-10 16:21:49 CEST; 5s ago
Process: 3347 ExecStart=/lib/drbd/drbd start (code=exited, status=20)
Main PID: 3347 (code=exited, status=20)

avril 10 16:21:49 GROESSLTCL0B systemd[1]: Starting DRBD -- please disable. Unless you are NOT using a cluster manager....
avril 10 16:21:49 GROESSLTCL0B drbd[3347]: Starting DRBD resources: drbd.d/r0.res:20: in resource r0, on GROESSLTCL0B:
avril 10 16:21:49 GROESSLTCL0B drbd[3347]: IP 192.168.254.2 not found on this host.
avril 10 16:21:49 GROESSLTCL0B systemd[1]: drbd.service: main process exited, code=exited, status=20/n/a
avril 10 16:21:49 GROESSLTCL0B systemd[1]: Failed to start DRBD -- please disable. Unless you are NOT using a cluster manager..
avril 10 16:21:49 GROESSLTCL0B systemd[1]: Unit drbd.service entered failed state.
avril 10 16:21:49 GROESSLTCL0B systemd[1]: drbd.service failed.


So i fixed the IP of the second node in r0.res , the new content is as following:



resource r0 
protocol "C";

net
allow-two-primaries;
after-sb-0pri discard-zero-changes;
after-sb-1pri discard-secondary;
after-sb-2pri disconnect;

on GROESSLTCL0A
device /dev/drbd0;
disk /dev/sdb;
address 163.104.8.108:7789;
meta-disk internal;


on GROESSLTCL0B
device /dev/drbd0;
disk /dev/sdb;
address 163.104.8.107:7789;
meta-disk internal;





Then i recreated the resource:



drbdadm create-md r0


after that i restarted drbd service and all was working as expected.






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f208366%2fdrbd-failure-127-device-minor-not-allocated%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    I just had the same error , it appeared that IP address for the second node was not reachable.
    First i checked the service status:



    systemctl status drbd.service
    â drbd.service - DRBD -- please disable. Unless you are NOT using a cluster manager.
    Loaded: loaded (/usr/lib/systemd/system/drbd.service; disabled; vendor preset: disabled)
    Active: failed (Result: exit-code) since mar. 2018-04-10 16:21:49 CEST; 5s ago
    Process: 3347 ExecStart=/lib/drbd/drbd start (code=exited, status=20)
    Main PID: 3347 (code=exited, status=20)

    avril 10 16:21:49 GROESSLTCL0B systemd[1]: Starting DRBD -- please disable. Unless you are NOT using a cluster manager....
    avril 10 16:21:49 GROESSLTCL0B drbd[3347]: Starting DRBD resources: drbd.d/r0.res:20: in resource r0, on GROESSLTCL0B:
    avril 10 16:21:49 GROESSLTCL0B drbd[3347]: IP 192.168.254.2 not found on this host.
    avril 10 16:21:49 GROESSLTCL0B systemd[1]: drbd.service: main process exited, code=exited, status=20/n/a
    avril 10 16:21:49 GROESSLTCL0B systemd[1]: Failed to start DRBD -- please disable. Unless you are NOT using a cluster manager..
    avril 10 16:21:49 GROESSLTCL0B systemd[1]: Unit drbd.service entered failed state.
    avril 10 16:21:49 GROESSLTCL0B systemd[1]: drbd.service failed.


    So i fixed the IP of the second node in r0.res , the new content is as following:



    resource r0 
    protocol "C";

    net
    allow-two-primaries;
    after-sb-0pri discard-zero-changes;
    after-sb-1pri discard-secondary;
    after-sb-2pri disconnect;

    on GROESSLTCL0A
    device /dev/drbd0;
    disk /dev/sdb;
    address 163.104.8.108:7789;
    meta-disk internal;


    on GROESSLTCL0B
    device /dev/drbd0;
    disk /dev/sdb;
    address 163.104.8.107:7789;
    meta-disk internal;





    Then i recreated the resource:



    drbdadm create-md r0


    after that i restarted drbd service and all was working as expected.






    share|improve this answer
























      up vote
      0
      down vote













      I just had the same error , it appeared that IP address for the second node was not reachable.
      First i checked the service status:



      systemctl status drbd.service
      â drbd.service - DRBD -- please disable. Unless you are NOT using a cluster manager.
      Loaded: loaded (/usr/lib/systemd/system/drbd.service; disabled; vendor preset: disabled)
      Active: failed (Result: exit-code) since mar. 2018-04-10 16:21:49 CEST; 5s ago
      Process: 3347 ExecStart=/lib/drbd/drbd start (code=exited, status=20)
      Main PID: 3347 (code=exited, status=20)

      avril 10 16:21:49 GROESSLTCL0B systemd[1]: Starting DRBD -- please disable. Unless you are NOT using a cluster manager....
      avril 10 16:21:49 GROESSLTCL0B drbd[3347]: Starting DRBD resources: drbd.d/r0.res:20: in resource r0, on GROESSLTCL0B:
      avril 10 16:21:49 GROESSLTCL0B drbd[3347]: IP 192.168.254.2 not found on this host.
      avril 10 16:21:49 GROESSLTCL0B systemd[1]: drbd.service: main process exited, code=exited, status=20/n/a
      avril 10 16:21:49 GROESSLTCL0B systemd[1]: Failed to start DRBD -- please disable. Unless you are NOT using a cluster manager..
      avril 10 16:21:49 GROESSLTCL0B systemd[1]: Unit drbd.service entered failed state.
      avril 10 16:21:49 GROESSLTCL0B systemd[1]: drbd.service failed.


      So i fixed the IP of the second node in r0.res , the new content is as following:



      resource r0 
      protocol "C";

      net
      allow-two-primaries;
      after-sb-0pri discard-zero-changes;
      after-sb-1pri discard-secondary;
      after-sb-2pri disconnect;

      on GROESSLTCL0A
      device /dev/drbd0;
      disk /dev/sdb;
      address 163.104.8.108:7789;
      meta-disk internal;


      on GROESSLTCL0B
      device /dev/drbd0;
      disk /dev/sdb;
      address 163.104.8.107:7789;
      meta-disk internal;





      Then i recreated the resource:



      drbdadm create-md r0


      after that i restarted drbd service and all was working as expected.






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        I just had the same error , it appeared that IP address for the second node was not reachable.
        First i checked the service status:



        systemctl status drbd.service
        â drbd.service - DRBD -- please disable. Unless you are NOT using a cluster manager.
        Loaded: loaded (/usr/lib/systemd/system/drbd.service; disabled; vendor preset: disabled)
        Active: failed (Result: exit-code) since mar. 2018-04-10 16:21:49 CEST; 5s ago
        Process: 3347 ExecStart=/lib/drbd/drbd start (code=exited, status=20)
        Main PID: 3347 (code=exited, status=20)

        avril 10 16:21:49 GROESSLTCL0B systemd[1]: Starting DRBD -- please disable. Unless you are NOT using a cluster manager....
        avril 10 16:21:49 GROESSLTCL0B drbd[3347]: Starting DRBD resources: drbd.d/r0.res:20: in resource r0, on GROESSLTCL0B:
        avril 10 16:21:49 GROESSLTCL0B drbd[3347]: IP 192.168.254.2 not found on this host.
        avril 10 16:21:49 GROESSLTCL0B systemd[1]: drbd.service: main process exited, code=exited, status=20/n/a
        avril 10 16:21:49 GROESSLTCL0B systemd[1]: Failed to start DRBD -- please disable. Unless you are NOT using a cluster manager..
        avril 10 16:21:49 GROESSLTCL0B systemd[1]: Unit drbd.service entered failed state.
        avril 10 16:21:49 GROESSLTCL0B systemd[1]: drbd.service failed.


        So i fixed the IP of the second node in r0.res , the new content is as following:



        resource r0 
        protocol "C";

        net
        allow-two-primaries;
        after-sb-0pri discard-zero-changes;
        after-sb-1pri discard-secondary;
        after-sb-2pri disconnect;

        on GROESSLTCL0A
        device /dev/drbd0;
        disk /dev/sdb;
        address 163.104.8.108:7789;
        meta-disk internal;


        on GROESSLTCL0B
        device /dev/drbd0;
        disk /dev/sdb;
        address 163.104.8.107:7789;
        meta-disk internal;





        Then i recreated the resource:



        drbdadm create-md r0


        after that i restarted drbd service and all was working as expected.






        share|improve this answer












        I just had the same error , it appeared that IP address for the second node was not reachable.
        First i checked the service status:



        systemctl status drbd.service
        â drbd.service - DRBD -- please disable. Unless you are NOT using a cluster manager.
        Loaded: loaded (/usr/lib/systemd/system/drbd.service; disabled; vendor preset: disabled)
        Active: failed (Result: exit-code) since mar. 2018-04-10 16:21:49 CEST; 5s ago
        Process: 3347 ExecStart=/lib/drbd/drbd start (code=exited, status=20)
        Main PID: 3347 (code=exited, status=20)

        avril 10 16:21:49 GROESSLTCL0B systemd[1]: Starting DRBD -- please disable. Unless you are NOT using a cluster manager....
        avril 10 16:21:49 GROESSLTCL0B drbd[3347]: Starting DRBD resources: drbd.d/r0.res:20: in resource r0, on GROESSLTCL0B:
        avril 10 16:21:49 GROESSLTCL0B drbd[3347]: IP 192.168.254.2 not found on this host.
        avril 10 16:21:49 GROESSLTCL0B systemd[1]: drbd.service: main process exited, code=exited, status=20/n/a
        avril 10 16:21:49 GROESSLTCL0B systemd[1]: Failed to start DRBD -- please disable. Unless you are NOT using a cluster manager..
        avril 10 16:21:49 GROESSLTCL0B systemd[1]: Unit drbd.service entered failed state.
        avril 10 16:21:49 GROESSLTCL0B systemd[1]: drbd.service failed.


        So i fixed the IP of the second node in r0.res , the new content is as following:



        resource r0 
        protocol "C";

        net
        allow-two-primaries;
        after-sb-0pri discard-zero-changes;
        after-sb-1pri discard-secondary;
        after-sb-2pri disconnect;

        on GROESSLTCL0A
        device /dev/drbd0;
        disk /dev/sdb;
        address 163.104.8.108:7789;
        meta-disk internal;


        on GROESSLTCL0B
        device /dev/drbd0;
        disk /dev/sdb;
        address 163.104.8.107:7789;
        meta-disk internal;





        Then i recreated the resource:



        drbdadm create-md r0


        after that i restarted drbd service and all was working as expected.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 10 at 14:25









        Soufas

        1




        1



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f208366%2fdrbd-failure-127-device-minor-not-allocated%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay