mkfs.gfs2: 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/mkfs.gfs2 - from package: gfs2-utils

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

On Debian possible default full paths are:

/sbin/mkfs.gfs2 - from package: gfs2-utils

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