+
+ def fprobe_repair_node(self):
+ # When fprobe data gets too much, it fills the root partition and
+ # fails to boot
+ c = self.c
+ self.c.modules.sys.path.append("/tmp/source/")
+
+ # NOTE: assume that the root fs is already mounted...
+ if self.c.modules.os.path.exists('/tmp/mnt/sysimg/var/local/fprobe'):
+ print "CLEARING FPROBE DATA on %s" % self.node
+ self.c.modules.os.chdir('/tmp/mnt/sysimg/var/local/fprobe')
+ cmd = """ ls -lrt . | awk '{if (i<NR/2 && $9) {print "rm "$9;i=i+1;}}' | sh """
+ self.c.modules.os.system(cmd)
+ else:
+ print "COULD NOT CLEAR FPROBE DATA on %s" % self.node