diff --git a/daemons/ganeti-watcher b/daemons/ganeti-watcher index 215628b1eb42c61bea0d783d87cb0d1da0812d1c..8b2b1830341988797e41120dbaacad2604ed3d6a 100755 --- a/daemons/ganeti-watcher +++ b/daemons/ganeti-watcher @@ -349,6 +349,7 @@ class Watcher(object): notepad = WatcherState() self.CheckInstances(notepad) self.CheckDisks(notepad) + self.VerifyDisks() notepad.Save() def CheckDisks(self, notepad): @@ -417,6 +418,14 @@ class Watcher(object): msg = Message(NOTICE, "Restart of %s succeeded." % instance.name) self.messages.append(msg) + def VerifyDisks(self): + """Run gnt-cluster verify-disks. + + """ + result = DoCmd(['gnt-cluster', 'verify-disks', '--lock-retries=15']) + if result.output: + self.messages.append(Message(NOTICE, result.output)) + def WriteReport(self, logfile): """Log all messages to file.