targetd_lsmplugin: 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:

/usr/bin/targetd_lsmplugin - from package: libstoragemgmt-targetd-plugin

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/targetd_lsmplugin - from package: libstoragemgmtd

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