« Previous | Next » 

Revision 64d68496

ID64d68496aafc60e55ddd44b87d292e0a39f87854
Parent af9f06e0
Child dd493d92

Added by Anton Todorov about 5 years ago

im/monitor_ds.sh skip broken symlinks

Most probably my test setup is too weird but if you have
/var/lib/one/datastores shared on all hosts and want to have
SYSTEM datastore with TM_MAD on one of the hosts, I am doing the following:

mkdir -p /var/lib/one-local/102
ln -s /var/lib/one/local/102 /var/lib/one/datastores/102

This way I have "local" datastore nested in "shared" filesystem.

In the above scenario on all other hosts the symlink is dead.

The proposed patch test the is the $dir directory and continue only if it is indeed directory.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences