percona-monitoring-plugins icon indicating copy to clipboard operation
percona-monitoring-plugins copied to clipboard

support checking the snapshot age

Open evgeni opened this issue 9 years ago • 2 comments

Hi,

we have a need to verify that we do not have too old snapshots (people keep forgetting things, you know). To fix that, I have implemented an optional age check (in days).

Code is dependent on the new lvs call from #4, sorry :)

Greets

evgeni avatar Aug 25 '15 08:08 evgeni

Thanks for this.

However, I noticed that lvs on Ubuntu does not recognize role and time fields. The package lvm2 2.02.66-4ubuntu7.4. Is there any workaround to make it working on both redhat and debian distros?

roman-vynar avatar Jan 06 '16 13:01 roman-vynar

Hi,

meh, I only checked on RHEL6 and expected it to work on others too. Will have look and come back to you :)

Greets

Edit: Debian Wheezy (lvm2 2.02.95-8) does not support this either. Debian Jessie (lvm2 2.02.111-2.2) supports this just fine. Ubuntu version mentioned above is from Precise, 12.04 LTS.

evgeni avatar Jan 06 '16 13:01 evgeni