<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Sync command details in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sync-command-details/m-p/2814170#M85076</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The 'sync' command should do none of the above.  Here is a snippet from the man page for 'sync':&lt;BR /&gt;&lt;BR /&gt;sync executes the sync() system call (see sync(2)).  If the system is&lt;BR /&gt;to be stopped, the sync command must be called to ensure file system&lt;BR /&gt;integrity.&lt;BR /&gt;&lt;BR /&gt;sync flushes all previously unwritten system buffers including&lt;BR /&gt;modified super blocks, modified inodes, and delayed block I/O out to&lt;BR /&gt;disk.  This ensures that all file modifications are properly saved&lt;BR /&gt;before performing a critical operation such as a system shutdown.  For&lt;BR /&gt;additional protection from power failures or possible system crashes,&lt;BR /&gt;use syncer to execute sync automatically at periodic intervals (see&lt;BR /&gt;syncer(1M)).&lt;BR /&gt;&lt;BR /&gt;I'm curious.  Why do you ask?&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
    <pubDate>Thu, 26 Sep 2002 14:12:17 GMT</pubDate>
    <dc:creator>John Poff</dc:creator>
    <dc:date>2002-09-26T14:12:17Z</dc:date>
    <item>
      <title>Sync command details</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sync-command-details/m-p/2814169#M85075</link>
      <description>What will the "sync" command do?  &lt;BR /&gt;Create core file?&lt;BR /&gt;Crash system?&lt;BR /&gt;etc?&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Thu, 26 Sep 2002 14:07:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sync-command-details/m-p/2814169#M85075</guid>
      <dc:creator>Jeffrey Shannon_1</dc:creator>
      <dc:date>2002-09-26T14:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sync command details</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sync-command-details/m-p/2814170#M85076</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The 'sync' command should do none of the above.  Here is a snippet from the man page for 'sync':&lt;BR /&gt;&lt;BR /&gt;sync executes the sync() system call (see sync(2)).  If the system is&lt;BR /&gt;to be stopped, the sync command must be called to ensure file system&lt;BR /&gt;integrity.&lt;BR /&gt;&lt;BR /&gt;sync flushes all previously unwritten system buffers including&lt;BR /&gt;modified super blocks, modified inodes, and delayed block I/O out to&lt;BR /&gt;disk.  This ensures that all file modifications are properly saved&lt;BR /&gt;before performing a critical operation such as a system shutdown.  For&lt;BR /&gt;additional protection from power failures or possible system crashes,&lt;BR /&gt;use syncer to execute sync automatically at periodic intervals (see&lt;BR /&gt;syncer(1M)).&lt;BR /&gt;&lt;BR /&gt;I'm curious.  Why do you ask?&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Sep 2002 14:12:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sync-command-details/m-p/2814170#M85076</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2002-09-26T14:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sync command details</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sync-command-details/m-p/2814171#M85077</link>
      <description>sync command is used to synchronize file systems. The sync() system call will be generated to ensure the FS integrity. You will get a details information from here:&lt;BR /&gt;# man 1m sync</description>
      <pubDate>Thu, 26 Sep 2002 14:12:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sync-command-details/m-p/2814171#M85077</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-09-26T14:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sync command details</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sync-command-details/m-p/2814172#M85078</link>
      <description>We are doing operations readiness testing and I basically need to verify a core dump, hence using the sync command...any suggestions?</description>
      <pubDate>Thu, 26 Sep 2002 14:15:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sync-command-details/m-p/2814172#M85078</guid>
      <dc:creator>Jeffrey Shannon_1</dc:creator>
      <dc:date>2002-09-26T14:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sync command details</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sync-command-details/m-p/2814173#M85079</link>
      <description>When you say, "verify a core dump", do you mean to see which program caused the core dump?  You can use 'file core' to see that.  If you need to get the core dump file into a debugger to do some real analysis of it, you'll probably need to use something like 'adb'.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Sep 2002 14:25:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sync-command-details/m-p/2814173#M85079</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2002-09-26T14:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sync command details</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sync-command-details/m-p/2814174#M85080</link>
      <description>Are you trying to create a core dump or trying to verify a core dump file which you already got? For verifying a core dump file which you got, you could use the Q4 analysis with the help of HP. Other tools which will be useful is - file, adb etc.</description>
      <pubDate>Thu, 26 Sep 2002 14:33:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sync-command-details/m-p/2814174#M85080</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-09-26T14:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sync command details</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sync-command-details/m-p/2814175#M85081</link>
      <description>Jeff,&lt;BR /&gt;&lt;BR /&gt;Sync command is just used to ensure that all files which have not been written to the system are written immediately.&lt;BR /&gt;&lt;BR /&gt;So all processes or changes which are held for writing to the system get committed and the system is updated completely for any changes withheld.&lt;BR /&gt;&lt;BR /&gt;It has got nothing to do with core file or crash system.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Anil</description>
      <pubDate>Thu, 26 Sep 2002 14:39:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sync-command-details/m-p/2814175#M85081</guid>
      <dc:creator>Anil C. Sedha</dc:creator>
      <dc:date>2002-09-26T14:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sync command details</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sync-command-details/m-p/2814176#M85082</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The sync command will sync the memory buffers with the disk. So if there was an update in the memory but not yet synced to disk, it will be done with the sync command. Do "man sync" for more details.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Sep 2002 14:52:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sync-command-details/m-p/2814176#M85082</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-09-26T14:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sync command details</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sync-command-details/m-p/2814177#M85083</link>
      <description>I think quite a few of us are confused about the question, much less the answer.&lt;BR /&gt;Are you trying to force a system panic on demand and verify that a proper crash dump is created?  If so, forget about sync and:&lt;BR /&gt;&lt;BR /&gt;On series 700 systems, look for a small button marked 'TOC' on the system chassis and push it.&lt;BR /&gt;&lt;BR /&gt;On series 800 systems, be sure the key switch (or, on some systems, a switch on the back of the machine) is in the 'service' position then type ^B on the system console, followed by 'tc' and a newline.  Typically you then have to type a&lt;BR /&gt;'y' to confirm that you want to take the system down forcefully.  The process for this can vary a bit from machine to machine.&lt;BR /&gt;&lt;BR /&gt;In both cases you are effectively generating a non-maskable interrupt (a Transfer of Control -I'll bet you can now guess what 'tc' stands for) that causes the system to jump to a routine that forces a crash dump to be taken.  The system will come down very ungracefully, with the chance of some (usually very minor and easily recovered from) disk corruption, since the system has not had a chance to cleanly stop processing.&lt;BR /&gt;&lt;BR /&gt;There is one tie from this back to your original 'sync' comment:&lt;BR /&gt;Running 'sync' just before doing the above can reduce the risk of disk corruption.  Normally there is a background process called syncer that will essentially run 'sync' every 30 seconds or so.  During normal operation, you don't have to worry at all about that.  If you know the system is about to die, forcing a sync to happen at that time may be helpful in reducing the risk of damage.&lt;BR /&gt;&lt;BR /&gt;Was that what you were really asking?  If not, let's try again to understand your question.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Sep 2002 11:57:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sync-command-details/m-p/2814177#M85083</guid>
      <dc:creator>doug hosking</dc:creator>
      <dc:date>2002-09-27T11:57:44Z</dc:date>
    </item>
  </channel>
</rss>

