[Voyage-linux] periodic sync'ing from tmpfs to flash
Teco Boot
(spam-protected)
Mon Jan 31 23:06:33 HKT 2011
I use it, on daily (25dec2010).
root at voyage:~# grep sync /etc/crontab
10 0 * * * root /usr/local/sbin/sync-tmp-fs >> /var/log/daemon.log 2>&1
root at voyage:~# cat /usr/local/sbin/sync-tmp-fs
#!/bin/sh
remountrw
/etc/init.d/voyage-sync sync
remountro
No problems detected.
When a recovery takes place, system boots for second time.
Recovery is not recorded in syslog. Maybe voyage-sync should log something in daemon.log or alternative.
I'm using ext3. I'll keep fs readonly, but it is rw every now and then. Ext3 better survives Murphy: failure during voyage-sync or maintenance.
Teco
Op 31 jan 2011, om 15:09 heeft Jeff Ramin het volgende geschreven:
>
> Thanks Punky - I'll give that a shot.
>
> Is anybody else doing this? Any problems doing it with running processes?
>
>
> On 01/30/2011 07:32 PM, Punky wrote:
>> Try:
>>
>> remountrw
>> /etc/init.d/voyage-sync sync
>>
>> On Sat, Jan 29, 2011 at 12:37 AM, Jeff Ramin<jeff.ramin at singlewire.com> wrote:
>>> Hi folks.
>>>
>>> I'm running voyage on an Alix board, using flash as the storage system.
>>> I've successfully configured voyage and my app to run in ro mode by
>>> editing /etc/default/voyage-util (I added the directories my app needs to
>>> write to).
>>>
>>> Everything is great, although I want to protect against losing data in
>>> memory if the machine is not shut down cleanly. The scripts in /etc/init.d
>>> do a great job of sync'ing data from memory to disk(flash) when the
>>> machine is shut down.
>>>
>>> I'm thinking about occasional syncs. Does this pose any problems w/
>>> running apps actively writing to a tmpfs? What are the recommended
>>> best practices for how to achieve this?
>>>
>>> Thanks!
>
> --
> Jeff Ramin
> Software Engineer
> Singlewire Software
> 2601 W Beltline Hwy #510
> Madison, WI 53713
>
> Phone Direct - 608.661.1172
> www.singlewire.com
>
>
> _______________________________________________
> Voyage-linux mailing list
> Voyage-linux at list.voyage.hk
> http://list.voyage.hk/mailman/listinfo/voyage-linux
More information about the Voyage-linux
mailing list