[CentOS] sadc output to a circular file of given size?

nate centos at linuxpowered.net
Wed Sep 16 21:22:28 UTC 2009


Alan McKay wrote:
>> You could create one, use dd to create an empty file that is the
>> size you want, format it with mke2fs and mount it via loopback
>
> Would it automatically do the loop thing though?  i.e. overwrite the
> oldest data in the file?

No but you could be sure you'd never fill your normal
file system up.

If you want to automatically overwrite the oldest file come up
with a naming/numbering scheme for the files and iterate through
them and then repeat.

nate




More information about the CentOS mailing list