Skip to content
Snippets Groups Projects
Commit 2e1124e2 authored by Gin Tan's avatar Gin Tan
Browse files

Merge branch 'fix_lustre_check' into 'master'

Fix lustre check

See merge request hpc-team/ansible_cluster_in_a_box!253

Former-commit-id: 7a8f41c2
parents 8d68278c 66f3788f
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
function check_lustre_health() { function check_lustre_health() {
health_check=`cat /proc/fs/lustre/health_check` # lustre health check file is different on different versions
HEALTH_FILE="/proc/fs/lustre/health_check"
if [ ! -f $HEALTH_FILE ]; then
HEALTH_FILE="/sys/fs/lustre/health_check"
fi
health_check=`cat $HEALTH_FILE`
if [ $health_check != "healthy" ] if [ $health_check != "healthy" ]
then then
die 1 " $FUNCNAME Lustre Health check failed $health_check" die 1 " $FUNCNAME Lustre Health check failed $health_check"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment