* [linux-lvm] cleaning archive directory
@ 2006-03-02 10:49 Olle Liljenzin
2006-03-06 17:43 ` Alasdair G Kergon
0 siblings, 1 reply; 4+ messages in thread
From: Olle Liljenzin @ 2006-03-02 10:49 UTC (permalink / raw)
To: linux-lvm
Is the directory /etc/lvm/archive supposed to be cleaned up manually or
should it be done by some tool?
I'm asking since the directory has grown to about 100MB on one of our
machines.
I find parameters like 'retain_min' and 'retain_days' in the file
/etc/lvm.conf, which I thought was indicating some kind of automatic
cleaning tool or process. But I can't find any max values for how many
files or how many days the files should be stored and it looks like the
archive files are never deleted.
/Olle
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] cleaning archive directory
2006-03-02 10:49 [linux-lvm] cleaning archive directory Olle Liljenzin
@ 2006-03-06 17:43 ` Alasdair G Kergon
2006-03-07 15:22 ` Olle Liljenzin
0 siblings, 1 reply; 4+ messages in thread
From: Alasdair G Kergon @ 2006-03-06 17:43 UTC (permalink / raw)
To: LVM general discussion and development
On Thu, Mar 02, 2006 at 11:49:21AM +0100, Olle Liljenzin wrote:
> Is the directory /etc/lvm/archive supposed to be cleaned up manually or
> should it be done by some tool?
> I find parameters like 'retain_min' and 'retain_days' in the file
> /etc/lvm.conf, which I thought was indicating some kind of automatic
> cleaning tool or process.
They should normally get cleaned up automatically.
The parameters apply to each VG separately, and the checks are made
whenever a new archive file is written for that VG.
(So backups of old VGs won't be deleted.)
Default keeps backups for at least 30 days and won't delete any unless
that leaves at least 10 backups of that VG.
Alasdair
--
agk@redhat.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] cleaning archive directory
2006-03-06 17:43 ` Alasdair G Kergon
@ 2006-03-07 15:22 ` Olle Liljenzin
2006-03-07 15:48 ` Alasdair G Kergon
0 siblings, 1 reply; 4+ messages in thread
From: Olle Liljenzin @ 2006-03-07 15:22 UTC (permalink / raw)
To: LVM general discussion and development
Hi,
Thanks for the answer.
Then I think the clean up is broken in RHEL4.
I have filed a bugzilla for it if someone wants to fix it some day.
/Olle
Alasdair G Kergon wrote:
> On Thu, Mar 02, 2006 at 11:49:21AM +0100, Olle Liljenzin wrote:
>
>>Is the directory /etc/lvm/archive supposed to be cleaned up manually or
>>should it be done by some tool?
>
>
>
>>I find parameters like 'retain_min' and 'retain_days' in the file
>>/etc/lvm.conf, which I thought was indicating some kind of automatic
>>cleaning tool or process.
>
>
> They should normally get cleaned up automatically.
>
> The parameters apply to each VG separately, and the checks are made
> whenever a new archive file is written for that VG.
> (So backups of old VGs won't be deleted.)
>
> Default keeps backups for at least 30 days and won't delete any unless
> that leaves at least 10 backups of that VG.
>
> Alasdair
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] cleaning archive directory
2006-03-07 15:22 ` Olle Liljenzin
@ 2006-03-07 15:48 ` Alasdair G Kergon
0 siblings, 0 replies; 4+ messages in thread
From: Alasdair G Kergon @ 2006-03-07 15:48 UTC (permalink / raw)
To: LVM general discussion and development
On Tue, Mar 07, 2006 at 04:22:30PM +0100, Olle Liljenzin wrote:
> Then I think the clean up is broken in RHEL4.
Yep: A fix to a related problem several months ago introduced this
new problem.
I've put a fix into CVS; it's still not perfect because it still
uses the modification time in the filesystem rather than opening
each file and checking the creation time within the archive.
Alasdair
--
agk@redhat.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-03-07 15:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-02 10:49 [linux-lvm] cleaning archive directory Olle Liljenzin
2006-03-06 17:43 ` Alasdair G Kergon
2006-03-07 15:22 ` Olle Liljenzin
2006-03-07 15:48 ` Alasdair G Kergon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).