X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=gnt-lv-remove-snap.sh;h=07a9c23991139ae1bcd9b6a1569b7fa82d5509b3;hb=ac3706b53177513bc3dfcda39f5491a0b5ede787;hp=29624fe88e62a750682c8006df95a627b3f15119;hpb=24c0d36678ef48efe2208baa89e2ed17c9b331e2;p=gnt-info diff --git a/gnt-lv-remove-snap.sh b/gnt-lv-remove-snap.sh index 29624fe..07a9c23 100755 --- a/gnt-lv-remove-snap.sh +++ b/gnt-lv-remove-snap.sh @@ -11,7 +11,7 @@ ls /dev/mapper/*.snap | xargs -i lvremove -f {} else # umount all snapshots -gnt-cluster command -M mount | grep snap | awk '{ print "ssh "$1" umount "$4 }' | sed 's/: / /' | xargs -i sh -xec {} +gnt-cluster command -M mount | grep snap | grep -v rbd.disk[0-9].snap | awk '{ print "ssh "$1" umount "$4 }' | sed 's/: / /' | xargs -i sh -exec {} # remove mount directories gnt-cluster command 'rmdir /dev/shm/*.snap'