<?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: Flushing data to disk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512903#M22443</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;Ensure that your filesystem is mounted with the convosync=direct paramter. You can add this to /etc/fstab&lt;BR /&gt;This will bypass buffer cache for writes and ensure that any data written will go to your frame. Once you split a volume with business copy the XP should d-stage it's cache and give you a consistent image.</description>
    <pubDate>Mon, 17 Sep 2001 04:11:21 GMT</pubDate>
    <dc:creator>Paul Spyrou</dc:creator>
    <dc:date>2001-09-17T04:11:21Z</dc:date>
    <item>
      <title>Flushing data to disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512896#M22436</link>
      <description>L.S.&lt;BR /&gt;&lt;BR /&gt;I am looking for a 100% guaranteed way to make sure that data that was written to a new file has actually landed on the disk (and is not still in buffercache). Will the sync command be sufficient?&lt;BR /&gt;&lt;BR /&gt;This question is related to Business Copy volumes on our XP256 diskarray.&lt;BR /&gt;I have experienced problems with data from files on the primary BC-disk that seemed to be still in the buffercache. After splitting the pair the data was not (yet) available on the secondary disk.</description>
      <pubDate>Tue, 03 Apr 2001 13:47:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512896#M22436</guid>
      <dc:creator>Jan Meijer</dc:creator>
      <dc:date>2001-04-03T13:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Flushing data to disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512897#M22437</link>
      <description>&lt;BR /&gt;You need to do 3 of them to be sure;&lt;BR /&gt;&lt;BR /&gt;sync;sync;sync</description>
      <pubDate>Tue, 03 Apr 2001 13:56:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512897#M22437</guid>
      <dc:creator>Edward Sedgemore</dc:creator>
      <dc:date>2001-04-03T13:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Flushing data to disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512898#M22438</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Running 'sync' should flush all data from memory to disk.  The man pages (1M) for 'sync' do note that "The writing, although scheduled, is not necessarily complete upon return from sync.".  You might want to issue the 'sync' and then wait a short period before continuing.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 03 Apr 2001 13:57:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512898#M22438</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-04-03T13:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Flushing data to disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512899#M22439</link>
      <description>Okay, sync seems to be the solution. But what if I want to sync just one particular (flag-)file?&lt;BR /&gt;Does anybody know what the -l option of sync means?</description>
      <pubDate>Tue, 03 Apr 2001 14:04:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512899#M22439</guid>
      <dc:creator>Jan Meijer</dc:creator>
      <dc:date>2001-04-03T14:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Flushing data to disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512900#M22440</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Interesting question.  I hadn't noticed the '-l' option.  The man pages for 10.20, 11.0 and 11.11 all show it but make no mention of its use.  In fact, running 'sync' with any options seems to be ignored -- no complaint of mis-usage.  I suspect that perhaps at one time there was an affect (?).  I would use 'sync' alone.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 03 Apr 2001 14:18:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512900#M22440</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-04-03T14:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Flushing data to disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512901#M22441</link>
      <description>sync will not do what you want to accomplish.  sync is only going to flush the buffer cache on your host.  It is true that the data will then be "off" the host.  However, it is in cache on your XP and maybe not flushed to the disk.  I have asked HP and been told there is no way to force a flush (sync) of the XP cache.  It will do it on it's own sweet time according to it's cache aging process.  &lt;BR /&gt;As far as the host is concerned the write is committed.  It may not be to the disk yet.  That is one of the reasons the cache on the XP has a 48 hour battery backup.&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Apr 2001 12:51:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512901#M22441</guid>
      <dc:creator>Dave Wherry</dc:creator>
      <dc:date>2001-04-04T12:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Flushing data to disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512902#M22442</link>
      <description>Hello Eisse van Hoving,&lt;BR /&gt;&lt;BR /&gt;I can confirm what Dave has posted; the buffercache on the host is clear but the write is not committed to disk, especially with regards to the XP256. The XP256 is an array  subsystem all its own and will de-stage the write to disk based on it own performance algorithms. Only when the XP256 is in a reduced state (some piece of redundant hardware has failed) will the array post all writes as a 'write-through cache' to both disk and cache, just in case.&lt;BR /&gt;&lt;BR /&gt;Good Luck,&lt;BR /&gt;Curt</description>
      <pubDate>Wed, 04 Apr 2001 19:47:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512902#M22442</guid>
      <dc:creator>Curt Thompson</dc:creator>
      <dc:date>2001-04-04T19:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Flushing data to disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512903#M22443</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Ensure that your filesystem is mounted with the convosync=direct paramter. You can add this to /etc/fstab&lt;BR /&gt;This will bypass buffer cache for writes and ensure that any data written will go to your frame. Once you split a volume with business copy the XP should d-stage it's cache and give you a consistent image.</description>
      <pubDate>Mon, 17 Sep 2001 04:11:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512903#M22443</guid>
      <dc:creator>Paul Spyrou</dc:creator>
      <dc:date>2001-09-17T04:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Flushing data to disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512904#M22444</link>
      <description>Dave/Curt,&lt;BR /&gt;&lt;BR /&gt;I don't think that the data that is still in XP's cache makes the BC inconsistent.&lt;BR /&gt;&lt;BR /&gt;I don't imagine that HP/Hitachi would synch the BC disks disregarding the data stored in the cache. &lt;BR /&gt;&lt;BR /&gt;The XP can store up to 32GB of data that can mess up all the BC file systems if disregarded. &lt;BR /&gt;&lt;BR /&gt;It's true that an fsck is needed after you split the BC but that's needed only for the system's cache and not for XP's one.&lt;BR /&gt;&lt;BR /&gt;If you wait at least 30 seconds for the sync to be perfomed you sould be safe and have an up-to-date BC. &lt;BR /&gt;&lt;BR /&gt;For example, if you bring the system connected to the P-VOLs down and then split the BC you would NOT need to fsck the BC file systems before mounting them. This proves that the XP cached data is copied to the BC.&lt;BR /&gt;&lt;BR /&gt;Ovidiu</description>
      <pubDate>Mon, 17 Sep 2001 19:07:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512904#M22444</guid>
      <dc:creator>Ovidiu D. Raita</dc:creator>
      <dc:date>2001-09-17T19:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Flushing data to disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512905#M22445</link>
      <description>Hi, just as a matter of interest, a instructor at an HP class told me that a single sync command flushes 23% of buffer data to disk.  So, based on that you actually have to do 5 syncs to ensure the data is written to disk.  Has anyone elso ever heard this.  Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Rob&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Sep 2001 19:18:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512905#M22445</guid>
      <dc:creator>Rob Smith</dc:creator>
      <dc:date>2001-09-17T19:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Flushing data to disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512906#M22446</link>
      <description>Jan - Regarding the one file option you can write a small C program and use the system call fsync to accomplish this.  This will not do anything about the XP's cache though.  I really see no reason to write the program as the following would be just as effective.&lt;BR /&gt;&lt;BR /&gt;sync; sync; sync&lt;BR /&gt;&lt;BR /&gt;Doing it 3 times just allows for completion I think.  Just an old habit with me.&lt;BR /&gt;&lt;BR /&gt;Rob - Your instructor is 100% wrong.  A single sync write "all" data.  You just need to make sure you have allowed enough time for it to complete its task.&lt;BR /&gt;&lt;BR /&gt;Lou Zirko&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Sep 2001 18:34:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512906#M22446</guid>
      <dc:creator>Lou Zirko_1</dc:creator>
      <dc:date>2001-09-18T18:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Flushing data to disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512907#M22447</link>
      <description>Lou Zirko wrote:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Rob - Your instructor is 100% wrong. A &lt;BR /&gt;&amp;gt; single sync write "all" data. You just need&lt;BR /&gt;&amp;gt; to make sure you have allowed enough time &lt;BR /&gt;&amp;gt; for it to complete its task.&lt;BR /&gt;&lt;BR /&gt;  That is true, but "enough time" can be a long time and it can be longer than the default syncer(1M) interval of 30 seconds. The reason for this is that if there are (too) many outstanding writes, syncer(1M) will not schedule all writes at once in order to try to limit the disk I/O peak.&lt;BR /&gt;&lt;BR /&gt;  The only reliable options are the (vxfs/JFS) mount options noted by Paul Spyrou and modifying the application(s) to use *SYNC (see for example "Synchronized I/O Flags" in open(2)).  &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Sep 2001 10:17:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/flushing-data-to-disk/m-p/2512907#M22447</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2001-09-19T10:17:51Z</dc:date>
    </item>
  </channel>
</rss>

