Bug #250
closedmon: delete old states to avoid filling disk
0%
Description
We trim the pgmap (which gets the most activity), but not the others: logs, mdsmap, osdmap, etc. Unfortunately the others are trickier. mds may be safe, but for the osdmap the clients/osds currently needs a full history from where they are to present in order to behave. Need to be careful about throwing out old states. Maybe a min age would help?
Updated by Wido den Hollander almost 13 years ago
I keep running into this, my monitors keep running out of inodes which causes them to stall.
Right now I have cron's like:
@daily find /var/lib/ceph/mon.logger/logm -type f -ctime +7 -delete
pgmap already gets trimmed, but the logm doesn't.
I was thinking about a cron which runs every day and ships with the Ceph packages, would that be OK? Or do you prefer to implement this in the monitor itself?
Updated by Greg Farnum almost 13 years ago
We should probably just do this in the monitor. The logm is never read so it's safe to delete whenever, unlike the other maps we're concerned about.
Updated by Sage Weil almost 13 years ago
log trimming fixed by 4c1cb28cb6cbb3d23a1736d02f6af524481c886a
osdmap, mdsmap, monmap still need trimming, but that's a whole 'nother thing.
Updated by Sage Weil over 12 years ago
- Target version set to v0.38
- Translation missing: en.field_position deleted (
569) - Translation missing: en.field_position set to 958
Updated by Sage Weil over 12 years ago
- Status changed from New to Resolved
- Translation missing: en.field_position deleted (
958) - Translation missing: en.field_position set to 958
Updated by Sage Weil over 12 years ago
- Translation missing: en.field_position deleted (
958) - Translation missing: en.field_position set to 958