Skip to main content

check-storage

Storage validation suite with health checks for disk space, mount points, file/directory existence, and filesystem monitoring.

Available Health Checks

CheckPurposeKey Feature
disk-usageDisk space & inode monitoringConfigurable thresholds for usage alerting
mounted-directoryMount verificationVerify directories are mounted
file-existsFile existence validationCheck files exist or optionally do not exist
directory-existsDirectory validationVerify directories exist on filesystem
check-mountpointMountpoint consistencyEnsure fstab matches /proc/mounts
disk-sizeDisk size validationValidate disk size meets criteria

Quick Start

# Disk usage check
health_checks check-storage disk-usage --volume /home [CLUSTER] app

# Verify mounted directories
health_checks check-storage mounted-directory --directory /mnt/nfs [CLUSTER] app

# Check file exists
health_checks check-storage file-exists --file /etc/slurm/slurm.conf [CLUSTER] app

# Check directory exists
health_checks check-storage directory-exists --directory /scratch [CLUSTER] app

# Verify mountpoint consistency
health_checks check-storage check-mountpoint --mountpoint /mnt [CLUSTER] app

# Validate disk size
health_checks check-storage disk-size --volume /scratch --size-unit T --operator ">=" --value 10 [CLUSTER] app