mkfs.ocfs2: 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 Debian possible default full paths are:

/sbin/mkfs.ocfs2 - from package: ocfs2-tools

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