Error performing "drbdadm create-md ..."

Configuring three node cluster, two diskful nodes plus diskless quorum.

drbd config file on three nodes -

[root@memverge drbd.d]# cat ha-ha_nfs.res
resource ha-ha_nfs {
  volume 0 {
    device      minor 1;
    disk        /dev/nfs_vg/ha_nfs_internal_lv;
    meta-disk   internal;
  }

  on memverge {
    address   10.72.14.152:7100;
    node-id   1;
  }
  on memverge2 {
    address   10.72.14.154:7100;
    node-id   2;
  }
  on qs {
    disk      none;
    address   10.72.14.156:7100;
    node-id   3;
  }

  connection-mesh {
        hosts memverge memverge2 qs;
  }
}

Error -

[root@memverge drbd.d]# drbdadm create-md ha-ha_nfs
/etc/drbd.d/ha-ha_nfs.res:1: in resource ha-ha_nfs, on memverge resp. qs: volume 0 must not be implicit on one but not the other

The error output is trying to say that you cannot specify specific volumes within the “global” resource section of the configuration, and then not specify which volume you’re setting disk none; to on the diskless quorum node.

This will work for you:

resource ha-ha_nfs {
  volume 0 {
    device      minor 1;
    disk        /dev/nfs_vg/ha_nfs_internal_lv;
    meta-disk   internal;
  }

  on memverge {
    address   10.72.14.152:7100;
    node-id   1;
  }
  on memverge2 {
    address   10.72.14.154:7100;
    node-id   2;
  }
  on qs {
    volume 0 {
      disk    none;
    }
    address   10.72.14.156:7100;
    node-id   3;
  }

  connection-mesh {
    hosts memverge memverge2 qs;
  }
}
2 Likes