[Voyage-linux] periodic sync'ing from tmpfs to flash
Teco Boot
(spam-protected)
Sat Feb 5 04:31:40 HKT 2011
The daily build works without any update.
0.6.5 needed a fix (as far as I remember).
Once, I saw some old stuff in syslog, it was about a week older
then rotated syslog. That's why I want recordings of the recovery.
I tested on console, there I saw the copy_back and reboot.
But there is no trail of this.
I a perfect world, the system starts, detects a need for recovery,
copies back the temp folders, saves this activity in log files
and restart. I think only syslog matters.
Procedure would be:
- save "syslog-start" (if needed)
- copy back (the rsync part)
- record recovery in syslog (e.g. with logger)
- append "syslog-start" to syslog
- reboot
I'll try something.
Thanks, Teco
Op 4 feb 2011, om 20:34 heeft Jeff Ramin het volgende geschreven:
>
> Do I need to change anything in /etc/default/voyage-util, or any other
> config file? I'm using the script below, but if I remove power (as opposed
> to shutting down), when the system comes back up, the data that was
> written when / was mounted as read-only has been lost.
>
> Thanks.
>
>>
>> On 01/31/2011 09:06 AM, Teco Boot wrote:
>>> 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
>>
>
>
> --
> Jeff Ramin
> Software Engineer
> Singlewire Software
> 2601 W Beltline Hwy #510
> Madison, WI 53713
>
> Phone Direct - 608.661.1172
> www.singlewire.com
>
More information about the Voyage-linux
mailing list