From: David Galloway Date: Tue, 16 Feb 2021 14:46:45 +0000 (-0500) Subject: common: Ignore /snap mountpoints when checking disk usage X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=3f0b3613002771de965182aa439a401a6886c318;p=ceph-cm-ansible.git common: Ignore /snap mountpoints when checking disk usage Signed-off-by: David Galloway --- diff --git a/roles/common/files/libexec/diskusage.pl b/roles/common/files/libexec/diskusage.pl index 49200da..d4d21ab 100644 --- a/roles/common/files/libexec/diskusage.pl +++ b/roles/common/files/libexec/diskusage.pl @@ -56,7 +56,7 @@ my $crit = 0; my @parts; my $hostname = `hostname`; chomp $hostname; -@parts = `mount | grep -vi fuse`; +@parts = `mount | grep -vi fuse\|/snap`; #if ( $hostname eq 'zartan' ) { # @parts = `mount`;