Bug 184226

Summary: Old archive files not cleaned up
Product: Red Hat Enterprise Linux 4 Reporter: Olle Liljenzin <olle>
Component: lvm2Assignee: Alasdair Kergon <agk>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 4.0CC: mbroz
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2006-0504 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-10 21:46:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 181409    
Attachments:
Description Flags
lvm.conf none

Description Olle Liljenzin 2006-03-07 15:10:55 UTC
Description of problem:
Old archive files are not removed

Version-Release number of selected component (if applicable):
lvm2-2.01.14-2.0.RHEL4

How reproducible:
Always

Steps to Reproduce:
1. lvcreate -L 10M -n test /dev/vg0
2. lvremove /dev/vg0/test
3. repeat a number of times
  
Actual results:
The directory /etc/lvm/archive gets filled up with archive files

Expected results:
Old archive files should be removed, with respect to the parameters 'retain_min'
and 'retain_days' in /etc/lvm.conf

Additional info:
The clean up works in FC4. In both cases with lvm.conf unmodified.

Comment 1 Alasdair Kergon 2006-03-07 15:14:02 UTC
Please provide specific details:
   long listing of the backup and archive directories before and after
   lvm.conf


Comment 2 Alasdair Kergon 2006-03-07 15:17:06 UTC
and output of: vgcfgrestore -ll

Comment 3 Alasdair Kergon 2006-03-07 15:29:46 UTC
Ah - I've reproduced something similar.

Comment 4 Olle Liljenzin 2006-03-07 15:36:31 UTC
Created attachment 125757 [details]
lvm.conf

Comment 5 Olle Liljenzin 2006-03-07 15:41:59 UTC
I guess you don't want my listings now when you reproduced it. :-)

Comment 6 Alasdair Kergon 2006-03-07 15:46:21 UTC
A fix applied upstream for 2.02.03

Comment 12 Red Hat Bugzilla 2006-08-10 21:46:24 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2006-0504.html