remove mount directory which functions as a lock
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 23 Dec 2016 18:01:56 +0000 (19:01 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 23 Dec 2016 18:01:56 +0000 (19:01 +0100)
this allows us to find failed backups and never re-try for that host
(until reboot of instance and /dev/shm cleanup that is)

gnt-lv-snap-rsync.sh

index e4ad7eb..c8d719e 100755 (executable)
@@ -37,6 +37,8 @@ cat <<__SHELL__ | tee /dev/shm/$instance.sh
        umount /dev/shm/$lv.snap
 
        lvremove -f /dev/ffzgvg/$lv.snap
+
+       rmdir /dev/shm/$lv.snap
 __SHELL__
 
        scp /dev/shm/$instance.sh $node:/dev/shm/$instance.sh