Please consider following crontab (root):
SHELL=/bin/bash ... ... 0 */3 * * * /var/maintenance/raid.sh
And the bash script /var/maint
/var/maint
cron tasks run in a shell that is started without your login scripts being run, which set up paths, environment variables etc.
When building cron tasks, prefer things like absolute paths and explicit options etc