check_lft_balance command not found

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

Introduction

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

check_lft_balance: command not found

or when using sudo you get the following error message

sudo: check_lft_balance: command not found

Solutions to check_lft_balance: command not found

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

In Ubuntu check_lft_balance is provided by infiniband-diags package.

infiniband-diags is:

InfiniBand is a switched fabric communications link used in high-performance computing and enterprise data centers. Its features include high throughput, low latency, quality of service and failover, and it is designed to be scalable.

This package provides diagnostic programs and scripts needed to diagnose an InfiniBand subnet.

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

sudo apt-get -y install infiniband-diags

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

You can also use apt command to install infiniband-diags.

sudo apt -y install infiniband-diags

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

sudo aptitude install infiniband-diags

Summary

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