Skip to content
Snippets Groups Projects
Commit d3124225 authored by Chris Hines's avatar Chris Hines
Browse files

Merge branch 'master' of gitlab.erc.monash.edu.au:hpc-team/ansible_cluster_in_a_box into mountstats

Former-commit-id: 1e011933
parents 34695f7d 469949eb
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