- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sync function call - man page prompts question!
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2007 06:58 AM
11-07-2007 06:58 AM
The manpage for sync states the following:
"In some HP-UX systems, sync() may be reduced to a no-op. This is
permissible on a system which does not cache buffers, or in a system
that in some way ensures that the disks are always in a consistent
state."
Does anyone know what setups might fulfill those scenarios? We want to run sync/sync/sync right before we split a business-copy of some database disks, in order to flush anything that may be pending since we are using "delaylog" on those filesystems.
How can we tell when the system reduces the sync() call to a no-op?
Thanks in advance for any guidance...
-Eric
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2007 07:09 AM
11-07-2007 07:09 AM
Re: Sync function call - man page prompts question!
Just call it already!
No harm done if it is redundant.
>> a business-copy of some database disks
Sync can only flush through what was hand to the OS. Right? The database however might (will!) be holding on to 'dirty' data pages, so you can sync all you want, but if the db has not given the data to the os, it makes no difference.
Of course and self respecting DB will have made sure to flush out enough data to (redo/journal/log) files to make sure the commited data can be recovered, but that recovery may take longer than needed.
So first and foremost you need to checkpoint the database, and then optionally sync to the disk.
Which database?
Cheers,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2007 07:11 AM
11-07-2007 07:11 AM
Re: Sync function call - man page prompts question!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2007 07:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2007 10:17 PM
11-07-2007 10:17 PM
Re: Sync function call - man page prompts question!
I'm just trying to mitigate a risk we've encountered where we having a copy of the DB control file written to one of the database directories, and the split happened as that process was executing - ended up with an unreferenced inode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2007 07:37 AM
11-08-2007 07:37 AM
Re: Sync function call - man page prompts question!
http://docs.hp.com/en/145/diskwp2.pdf
...and also in these forum discussions:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=768101&admit=-682735245+1194553897225+28353475
http://forums1.itrc.hp.com/service/forums/questionanswer.do?admit=716493758+1103577549963+28353475&threadId=134174