Skip to content

Continuously monitor network mounted Linux folders (iSCSI, SMB, NFS, etc). If it goes down, shutdown connected docker instances. Docker is utilizing bind mount to secure volume, but this reduces restarting and excess logging.

Notifications You must be signed in to change notification settings

gsxryan/mnt_protect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

mnt_protect

Monitor mounted Linux folder (iSCSI).

  • If it goes down, shutdown connected docker instance.
  • If the folder comes back up, restart the connected docker instance.

Prerequisites

  • An operating storagenode container

  • crontab -e and add: (storj is the user runas, maybe use root)

  • */1 * * * * sudo -u storj -H bash /home/storj/iscsiprotect.sh

  • This will check every 1min to make sure the folder is connected.

About

Continuously monitor network mounted Linux folders (iSCSI, SMB, NFS, etc). If it goes down, shutdown connected docker instances. Docker is utilizing bind mount to secure volume, but this reduces restarting and excess logging.

Resources

Stars

Watchers

Forks

Languages