NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: best way of logging on flash based systems



On Thu, Jun 10, 2010 at 11:01 AM, DL <devinlasalle%hotmail.com@localhost> wrote:
> matthew sporleder <msporleder <at> gmail.com> writes:
>>
>> I wrote this a little while ago:
>> http://www.mspo.com/netbsdreadmostly.html
>> and it needs some updating (especially on the mail advice, etc) but it
>> might give some hints about syslog and var.
>
> Thanks again for pointing to this reference on the other
> http://article.gmane.org/gmane.os.netbsd.general/28712 thread Matthew.
>
> Let me try to understand the advantage of the mfs/union method that you
> suggest there.  With that method anything that the system writes to /var/log
> or /var/run ultimately ends up written to the swap partition so that it will
> persist through a reboot... correct?  But *scratching my head trying to figure
> this out* how can that work if the swap partition does not have a newfs'd
> filesystem?

I don't think your changes will last through a reboot.  I think you
would need to modify the lower layer of the union on shutdown.  But I
may be wrong.

I've actually had one or two problems with the unionfs method and
would recommend something more like the method found here:
http://mspo.com/blog/2009/05/netbsd-seedtmpfs-tool-for-easier.html


Home | Main Index | Thread Index | Old Index