From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <51A61B9F.4010905@redhat.com> Date: Wed, 29 May 2013 17:15:43 +0200 From: Zdenek Kabelac MIME-Version: 1.0 References: In-Reply-To: Content-Transfer-Encoding: quoted-printable Subject: Re: [linux-lvm] Alert before LVM snapshot becomes full Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="iso-8859-1"; format="flowed" To: LVM general discussion and development Cc: =?ISO-8859-1?Q?Lo=EFc?= Dne 29.5.2013 09:56, Lo=EF=BF=BDc napsal(a): > Hi all, > > I would like to raise my problem because I have not found the answer to my > question by searching on the Internet. Hoping that one of you had experie= nce > with this kind of problem. > > I'm looking for a way to launch a script or disable an LVM snaphot before= it > becomes full. > For example I would like to launch a script that will umount the LVM snap= shot > and delete it if it reaches 90%. That is to avoid LVM issue when snapshot= is full. > > Any ideas ? Write dmeventd plugin - similar as you can find in upstream git source tree. BTW - what's is the point to delete it 90% and delete it when it's invalid ? If you don't need the snapshot you should remove it instantly - since it's = impact system performance. And if you need it - it's probably more useful to extend the snapshot. Zdenek