cache_metadata_size: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/sbin/cache_metadata_size - from package: device-mapper-persistent-data
/usr/sbin/cache_metadata_size - from package: device-mapper-persistent-data

You may install the required package with command yum install {package}
Error in other languages:
cache_metadata_size: bevel nie gevind nie
cache_metadata_size: comandă negăsită
cache_metadata_size: comando não encontrado
cache_metadata_size: commande introuvable
cache_metadata_size: command not found
cache_metadata_size: käsku ei ole
cache_metadata_size: không tìm thấy lệnh
cache_metadata_size: komanda nerasta
cache_metadata_size: Kommando nicht gefunden.
cache_metadata_size: kommandot finns inte
cache_metadata_size: komut yok
cache_metadata_size: nie znaleziono polecenia
cache_metadata_size: níor aimsíodh an t-ordú
cache_metadata_size: no se encontró la orden
cache_metadata_size: no s'ha trobat l'ordre
cache_metadata_size: opdracht niet gevonden
cache_metadata_size: parancs nem található
cache_metadata_size: perintah tidak ditemukan
cache_metadata_size: príkaz nenájdený
cache_metadata_size: příkaz nenalezen
cache_metadata_size: команда не найдена
cache_metadata_size: командата не е открита
cache_metadata_size: 命令找不到
cache_metadata_size: コマンドが見つかりません