[plug] backup script

William Kenworthy billk at iinet.net.au
Wed Nov 26 20:27:04 WST 2003


cut&pasted from the gentoo "/etc/init.d/halt.sh"

___________________________________________
...
ebegin "Remounting remaining filesystems readonly"
# Get better results with a sync and sleep
sync;sync
sleep 1
sync
sleep 1
...
___________________________________________

On Wed, 2003-11-26 at 14:54, Trevor Phillips wrote:
> On Wednesday 26 November 2003 12:10, James Devenish wrote:
> > In message <200311261201.22256.T.Phillips at murdoch.edu.au>
> >
> > > "No manual entry for sync in section 2"
> >
> > <blank stare/> I find that hard to believe :-) Oh well.
> > Perhaps try <http://www.linuxcentral.com/linux/man-pages/sync.2.html>.
> 
> You could've just quoted a sentence or two from the page:
> 
> BUGS
> 
> According to the standard specification (e.g., SVID), sync() schedules the 
> writes, but may return before the actual writing is done. However, since 
> version 1.3.20 Linux does actually wait. (This still does not guarantee data 
> integrity: modern disks have large cashes.)
> 
> So, Linux itself hasn't had this problem in a long time - and you should wait 
> a little anyway for hardware caching. Either way, a sleep would be more 
> effective than multiple sync's...
> 


_______________________________________________
plug mailing list
plug at plug.linux.org.au
http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug


More information about the plug mailing list