The rack must be properly grounded.
Use a rack grounding kit and a ground conductor that is carried back to earth or to another suitable building ground.
AC-powered switches do not need separate chassis grounding.
Note
Because building codes vary worldwide, consult an electrical contractor to ensure proper equipment grounding for your specific installation.