Skip to content

Instantly share code, notes, and snippets.

@taomaree
taomaree / chknfs.sh
Last active December 16, 2019 12:49
nfs ha keepalived configure file
#!/bin/bash
###filename: chknfs.sh
###usage: crontab */1 * * * * root /root/chknfs.sh > /dev/null 2>&1
keep="/data/.keep"
if [ ! -f $keep ]; then
umount -f /data && mount /data
fi