<div dir="ltr">Thanks for the response,<div>but I still don't get the point. Assume that I use same names for my VGs, In this case if I do for example:</div><div><i>retain_days = 10</i></div><div>and</div><div><i>retain_min = 15</i></div><div>in lvm.conf file, what is the system's behaviour when archiving backup files? Please explain specifically.</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Nov 28, 2018 at 2:35 PM Zdenek Kabelac <<a href="mailto:zkabelac@redhat.com">zkabelac@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dne 28. 11. 18 v 10:51 Far Had napsal(a):<br>
> Hi<br>
> There are two parameters in lvm.conf which I don't understand the exact <br>
> meaning of.<br>
> <br>
> 1. retain_min<br>
> 2. retain_days<br>
> <br>
> What do "*the minimum number of archive files you wish to keep*" and "*minimum <br>
> time you wish to keep an archive file for*" mean?<br>
> Is there any auto deletion mechanism for backup archives?<br>
<br>
Hi<br>
<br>
<br>
There is kept history for 'created' VGs, where you can specify how many<br>
and for how long archives for individual VG you want to store.<br>
<br>
This works reasonably well if you use 'same VG names' all the time.<br>
<br>
However - when you use lvm2 on some testing machine where the VG name is <br>
essentially some random hash md5 lengthy string - you will sooner or later end <br>
with gazillion archive files in your /etc/lvm/archive directory.<br>
<br>
In this case it's admins responsibility to prune VG archive files that are no <br>
longer necessary.<br>
<br>
lvm2 has no idea if the VG named like: "myvg01320982woicdo8uagcd97wghcd"<br>
will be still ever needed again - so such archives are kept mostly forever....<br>
<br>
Every command you run which modifies metadata of particular VG does care only <br>
about that particular VG and it's archives.<br>
<br>
Hopefully this explains it.<br>
<br>
Regards<br>
<br>
Zdenek<br>
</blockquote></div>