drbdmeta command not found

In this troubleshooting guide we learn how to fix drbdmeta command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

drbdmeta: command not found

or when using sudo you get the following error message

sudo: drbdmeta: command not found

Solutions to drbdmeta: command not found

How To Fix drbdmeta: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu drbdmeta is provided by drbd-utils package.

drbd-utils is:

Drbd is a block device which is designed to build high availability clusters by providing a virtual shared device which keeps disks in nodes synchronised using TCP/IP. This simulates RAID 1 but avoiding the use of uncommon hardware (shared SCSI buses or Fibre Channel). It is currently limited to fail-over HA clusters.

This package contains the programs that will control the drbd kernel module provided in the Linux kernel.

To fix this problem, we can install more using the command below.

sudo apt-get -y install drbd-utils

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install drbd-utils.

sudo apt -y install drbd-utils

Or if you have aptitude installed you can use the following command.

sudo aptitude install drbd-utils

Summary

In this tutorial we learn how to fix drbdmeta command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.