cleaning archive directory
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
Quoted 6 lines · Olle Liljenzin
Is the directory
/etc/lvm/archivesupposed 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
Signature · 1 line
[email protected]
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
Quoted 18 lines · Alasdair G Kergon
Quoted 5 lines · Olle Liljenzin
Is the directory
/etc/lvm/archivesupposed 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
Quoted 1 line · Olle Liljenzin
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
Signature · 1 line
[email protected]