This article is from a FAQ concerning SCO operating systems. While some of the information may be applicable to any OS, or any Unix or Linux OS, it may be specific to SCO Xenix, Open Desktop or Openserver.

There is lots of Linux, Mac OS X and general Unix info elsewhere on this site: Search this site is the best way to find anything.

Unix, Xenix and ODT General FAQ

Do haltsys and reboot do a sync()?

Yes. haltsys and reboot are both the same file. In some versions, they are a binary, but rest assured that they do sync(). In other versions, they are a shell script and you can look at them to determine that they do call /bin/sync.


Hate these ads?

If it's at all possible to use shutdown to shut the system down, rather than using haltsys or reboot, do so. shutdown is the proper way to do it; it goes out and kills processes and attempts to shut the system down as cleanly as possible. haltsys and reboot, on the other hand, try to shut the system down as quickly as possible, and any programs which are running will be rudely interrupted.

Also, if you're using a caching hard drive controller, be aware that it may not realize the system has been shut down, so even though Xenix or Unix tells you it's *** Safe to power down ***, there may still be data left in the hardware cache that isn't flushed to disk yet. A good, but not foolproof, precaution is to press a key to allow the system to reboot, and not power down until the Boot: prompt comes up. The added time and disk activity may allow the controller to flush its cache. If your caching controller has a specific driver for SCO and you're using that driver, then it can communicate with the operating system to ensure that its buffers are all flushed, and this problem does not arise.

Note that using a caching hard drive controller on a caching operating system is generally of little or no use, though there are certainly some cases in which it makes a significant performance difference (but only by defeating the order in which write requests were made by the kernel or the application, possibly decreasing data integrity somewhat if the system crashes).



Comments /SCOFAQ/FAQ_scotec6sync.html


Add your comments
cartoon
Need eyes on the ground at your customer's site?
Installation and light training Boston and New England
Reliable and experienced, punctual and professional.

Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)

Or use any RSS reader

Delivered by FeedBurner

cartoon
Forget the expense of flying to New England. Forget hotel and meals costs.
Installation and light training Boston and New England


Views for this page
Today This Week This Month This Year  Overall
52826762 941

/SCOFAQ/FAQ_sync.html copyright 1997-2003 (various) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

More:
       - FAQ




Unix/Linux Consultants

Your ad here - $24.00 yearly!

http://bcstechnology.net Full service Linux & UNIX systems integrator; Windows to UNIX/Linux Client-Server Specialist; Secure E-Mail & Website Hosting; Thoroughbred Software Developer; Custom Industrial Automation; Hardware & Electronics Experts; In Business Since 1985.


http://www.loch-raven.com/Loch Raven provides consulting services for Linux, UNIX, SCO OpenServer, SCO UnixWare, AIX, Solaris and FreeBSD systems. Services include: System administration, Backup and Disaster Recovery planning and implementation, Custom Shell Scripting, System Recovery, Remote Administration, Secure Remote Access configuration, Troubleshooting, System Migration and Windows/Linux/Unix integration with Samba. Loch Raven also provides web site hosting, solutions, and consulting along with Joomla CMS.


larryi@ccamedical.com SCO OS5, Debian Linux, RedHat Linux, MySQL, Apache, AJAX development using dXport/dL4/Unibasic, Windows Connectivity, Sharing Resouces, Automation, Shell Scripting









Change Congress


Related Posts