[linux-lvm] How to monitor and possibly autoextend snapshots
jbrassow at redhat.com
Fri Oct 24 16:30:00 UTC 2008
Right now, you get notified when the snapshot becomes invalid. I
thought I heard someone talking about adding forewarning, but I don't
know where that stands.
You can respond to events (like the snapshot going invalid) through
dmeventd, but any solution like that would require new code... and you
would also need new code in the kernel to do the forewarning.
Since you have some knowledge of the arguments given to other programs
for this feature... :) Perhaps if you would be willing to envision
the arguments necessary to 'lvcreate' when creating the snapshot, we
could get the ball rolling.
On Oct 24, 2008, at 4:33 AM, marcin.kaluza at comarch.pl wrote:
> Is there a way to get notified, when the snapshot fills up to a
> level? i.e. via dmsetup wait  ? I looked for event numbers but
> find any doc for them.
> The best thing would be to make snapshots autoextensible when given
> a max
> size and resize value (just like oracle tablespaces do), but I suppose
> that would require much coding...
> Any thoughts?
> We're using lvm snapshots for samba shadow copies and database
> but there's a problem with monitoring snapshots % of usage - now we
> have a daemon that polls lvdisplay periodically and extends the lv
> necessary. But this is unreliable - you have to either poll often or
> enough of free space and still you can end up with a trashed snap.
> linux-lvm mailing list
> linux-lvm at redhat.com
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
More information about the linux-lvm