<?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: file changes after cp in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/file-changes-after-cp/m-p/2936205#M112670</link>
    <description>thanks for replies. Problem is most likely on the SAN side;  I moved the file system to a new set of disks and the problem cleared.</description>
    <pubDate>Fri, 28 Mar 2003 13:33:21 GMT</pubDate>
    <dc:creator>Peter Heinemann</dc:creator>
    <dc:date>2003-03-28T13:33:21Z</dc:date>
    <item>
      <title>file changes after cp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-changes-after-cp/m-p/2936196#M112661</link>
      <description>After copying a large file, the internal structure seems to be dramatically different. Note what happens with wc.&lt;BR /&gt;&lt;BR /&gt;Original file:&lt;BR /&gt;# ll prestg_extra_08012002.dat   &lt;BR /&gt;-rw-r-----   1 orionadm   orion      2692865136 Mar 13 09:55 prestg_extra_08012002.dat&lt;BR /&gt;# wc -c prestg_extra_08012002.dat&lt;BR /&gt;2692865136 prestg_extra_08012002.dat&lt;BR /&gt;&lt;BR /&gt;# wc -m prestg_extra_08012002.dat&lt;BR /&gt;2692865136 prestg_extra_08012002.dat&lt;BR /&gt;&lt;BR /&gt;# wc -l prestg_extra_08012002.dat&lt;BR /&gt;3634096 prestg_extra_08012002.dat&lt;BR /&gt;&lt;BR /&gt;copy:&lt;BR /&gt;&lt;BR /&gt;# cp prestg_extra_08012002.dat tmp.dat&lt;BR /&gt;&lt;BR /&gt;# ll tmp.dat&lt;BR /&gt;-rw-r-----   1 root       sys        2692865136 Mar 26 09:01 tmp.dat&lt;BR /&gt;&lt;BR /&gt;# wc -l tmp.dat&lt;BR /&gt;88 tmp.dat&lt;BR /&gt;&lt;BR /&gt;# wc -c tmp.dat&lt;BR /&gt;65536 tmp.dat&lt;BR /&gt;&lt;BR /&gt;# wc -m tmp.dat&lt;BR /&gt;65536 tmp.dat&lt;BR /&gt;&lt;BR /&gt;Any ideas what's happening, and how to resolve it?  Is this standard behavior for cp?&lt;BR /&gt;Is it the nature of the file itself?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 26 Mar 2003 14:23:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-changes-after-cp/m-p/2936196#M112661</guid>
      <dc:creator>Peter Heinemann</dc:creator>
      <dc:date>2003-03-26T14:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: file changes after cp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-changes-after-cp/m-p/2936197#M112662</link>
      <description>It looks like your copying a database which is not shut down, so it can not be correctly copied, or... your running out of file space in the location your copying too.&lt;BR /&gt;&lt;BR /&gt;You can not copy a dabase with it open as it will error on the open blocks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now, I have seen minor changes in file sizes when being copied from large block file systems to small blocks.  I.E.  In FEA I use 8K blocks for scratch, most of the time these files reduce in size when being copied to a 1/2K block file system.    &lt;BR /&gt;&lt;BR /&gt;But.. the binary contents will not change unless there is one of the 2 issues I mentioned going on.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Wed, 26 Mar 2003 14:28:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-changes-after-cp/m-p/2936197#M112662</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2003-03-26T14:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: file changes after cp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-changes-after-cp/m-p/2936198#M112663</link>
      <description>Did you notice that your file is bigger than 2 GB ?&lt;BR /&gt;&lt;BR /&gt;Does the destination File System support files bigger than 2 GB ?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Mar 2003 14:28:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-changes-after-cp/m-p/2936198#M112663</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2003-03-26T14:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: file changes after cp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-changes-after-cp/m-p/2936199#M112664</link>
      <description>Strange.  The copied file should have been identical.  Otherwise, the copy process was somehow imperfect.  You may want to copy again. I noticed that your original is very big; make sure you have enough space to copy.&lt;BR /&gt;&lt;BR /&gt;Another way to verify the integrity of the file is to use "cksum".  For example:&lt;BR /&gt;&lt;BR /&gt;# cksum file.original&lt;BR /&gt;# cksum file.copied&lt;BR /&gt;&lt;BR /&gt;You should obtain the same outputs if the original and the copy are identical.&lt;BR /&gt;&lt;BR /&gt;Hai</description>
      <pubDate>Wed, 26 Mar 2003 14:30:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-changes-after-cp/m-p/2936199#M112664</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2003-03-26T14:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: file changes after cp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-changes-after-cp/m-p/2936200#M112665</link>
      <description>Possible causes:&lt;BR /&gt;&lt;BR /&gt;Copying an open database(mentioned above)&lt;BR /&gt;&lt;BR /&gt;Copying a 2.6 Gig file to a filesystem that is not enabled with largefiles. To rebuild newfs -F vxfs -o largefiles  In HP-Ux below 11.11, you'll need a largefiles entry in the /etc/fstab file which automounts filesystems at system start.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Mar 2003 14:32:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-changes-after-cp/m-p/2936200#M112665</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-03-26T14:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: file changes after cp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-changes-after-cp/m-p/2936201#M112666</link>
      <description>General reply:&lt;BR /&gt;&lt;BR /&gt;1) It's not a database.  It's a flat file.  It wasn't open by any process when copied.&lt;BR /&gt;&lt;BR /&gt;2) note the original post. I made a copy in the same directory. If largefiles wasn't enabled, the source file couldn't be that large.&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Mar 2003 14:34:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-changes-after-cp/m-p/2936201#M112666</guid>
      <dc:creator>Peter Heinemann</dc:creator>
      <dc:date>2003-03-26T14:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: file changes after cp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-changes-after-cp/m-p/2936202#M112667</link>
      <description>I've never seen where "...cp -p -r..." for large files over 2 GB has failed, but HP has warned about it and recommends fbackup piped to frecover instead.  You can use cksum on the original file and the copy afterwards.  cksum will test the integrity of the fbackup.&lt;BR /&gt;&lt;BR /&gt;cd /destination&lt;BR /&gt;fbackup -i /tmp/source -f - | frecover -x -X -f -&lt;BR /&gt;&lt;BR /&gt;Note the dashes "-".&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Mar 2003 14:44:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-changes-after-cp/m-p/2936202#M112667</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-03-26T14:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: file changes after cp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-changes-after-cp/m-p/2936203#M112668</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Never seen that ... Perhaps I would check the filesystem using fsck and try again. You should also rather use cksum to check files, but wc should also work, at least -c option.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Wed, 26 Mar 2003 15:02:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-changes-after-cp/m-p/2936203#M112668</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2003-03-26T15:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: file changes after cp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-changes-after-cp/m-p/2936204#M112669</link>
      <description>As mentioned, do a cksum(1) on the original and copy and compare/post the results.&lt;BR /&gt;&lt;BR /&gt;Also do a du(1) on the original and copy and compare/post the results.&lt;BR /&gt;&lt;BR /&gt;You mentioned what the file is not (a database file), but not what it is. What kind of file/data is it?</description>
      <pubDate>Fri, 28 Mar 2003 09:23:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-changes-after-cp/m-p/2936204#M112669</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2003-03-28T09:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: file changes after cp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-changes-after-cp/m-p/2936205#M112670</link>
      <description>thanks for replies. Problem is most likely on the SAN side;  I moved the file system to a new set of disks and the problem cleared.</description>
      <pubDate>Fri, 28 Mar 2003 13:33:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-changes-after-cp/m-p/2936205#M112670</guid>
      <dc:creator>Peter Heinemann</dc:creator>
      <dc:date>2003-03-28T13:33:21Z</dc:date>
    </item>
  </channel>
</rss>

