<?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: Copying problem!! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-problem/m-p/3972845#M293231</link>
    <description>There are several possible answers and more than one of them may be in play: 1) Sparse files 2) Symbolic links 3) The original filetree had very large directories with many empty slots and the new directories are just big enough to fit the files that now exist. &lt;BR /&gt;&lt;BR /&gt;Ooops, forget sparse files that would explain why the original files occupy fewer disk blocks than the original  - not your problem.&lt;BR /&gt;&lt;BR /&gt;If you want to be absolutely sure then write a script that compares the cksum's of the original files to those of the copies but I suspect that you are fine.&lt;BR /&gt;&lt;BR /&gt;By the way, cp -rp will work but if you want to retain all of the metadata (notably directory ownerships) between the original and copy versions then a tar, cpio, or fbackup|frecover pipeline does a much better job.</description>
    <pubDate>Fri, 30 Mar 2007 09:17:00 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2007-03-30T09:17:00Z</dc:date>
    <item>
      <title>Copying problem!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-problem/m-p/3972841#M293227</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a problem due to the fact I can't add any more disks to a specific volume group. It has a maximum of 16. Anyway I need to copy one of the lvols into another area on a new volume group. I am in the process of testing this. I created a new mountpoint and simply did a cp -rp to this area. I then intended to simply umount and then mount on the new area. I have noticed however that after the copy the amount of used space differs from the original. If I do a file listing there are exactly the same number of files in the new area. It suggests however almost 1GB less data. Can anyone explain this.</description>
      <pubDate>Fri, 30 Mar 2007 09:05:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-problem/m-p/3972841#M293227</guid>
      <dc:creator>Adam Noble</dc:creator>
      <dc:date>2007-03-30T09:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Copying problem!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-problem/m-p/3972842#M293228</link>
      <description>In a word:  fragmentation.&lt;BR /&gt;&lt;BR /&gt;As files get added/deleted/changed over time, fragmentation increases, causing the same number of files to occupy more space.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 30 Mar 2007 09:11:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-problem/m-p/3972842#M293228</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2007-03-30T09:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Copying problem!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-problem/m-p/3972843#M293229</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Online JFS a pay for add in product can defragment vxfs filesystems in place.&lt;BR /&gt;&lt;BR /&gt;The other method might be to back up the fire and restore it, but OnlineJFS is the best way to go for this situation.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 30 Mar 2007 09:15:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-problem/m-p/3972843#M293229</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-03-30T09:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Copying problem!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-problem/m-p/3972844#M293230</link>
      <description>Of course I'm not thinking. Thats why you can defrag a filesystem. Thanks for waking me up tho it is a Friday.</description>
      <pubDate>Fri, 30 Mar 2007 09:16:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-problem/m-p/3972844#M293230</guid>
      <dc:creator>Adam Noble</dc:creator>
      <dc:date>2007-03-30T09:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Copying problem!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-problem/m-p/3972845#M293231</link>
      <description>There are several possible answers and more than one of them may be in play: 1) Sparse files 2) Symbolic links 3) The original filetree had very large directories with many empty slots and the new directories are just big enough to fit the files that now exist. &lt;BR /&gt;&lt;BR /&gt;Ooops, forget sparse files that would explain why the original files occupy fewer disk blocks than the original  - not your problem.&lt;BR /&gt;&lt;BR /&gt;If you want to be absolutely sure then write a script that compares the cksum's of the original files to those of the copies but I suspect that you are fine.&lt;BR /&gt;&lt;BR /&gt;By the way, cp -rp will work but if you want to retain all of the metadata (notably directory ownerships) between the original and copy versions then a tar, cpio, or fbackup|frecover pipeline does a much better job.</description>
      <pubDate>Fri, 30 Mar 2007 09:17:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-problem/m-p/3972845#M293231</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-03-30T09:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Copying problem!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-problem/m-p/3972846#M293232</link>
      <description>A better test than looking at just the number of files and space used is to check the cksum's of the files.&lt;BR /&gt;&lt;BR /&gt;What you can do is something like:&lt;BR /&gt;&lt;BR /&gt;# cd /curr_dir&lt;BR /&gt;# find . -type f -exec cksum {} \; &amp;gt; /var/tmp/cksum_orig_dir&lt;BR /&gt;&lt;BR /&gt;# cd /new_dir&lt;BR /&gt;# find . -type f -exec cksum {} \; &amp;gt; /var/tmp/cksum_new_dir&lt;BR /&gt;&lt;BR /&gt;Once the cksums are done, you can sort and diff the files.  If there are no differences, then your copy is OK.&lt;BR /&gt;&lt;BR /&gt;Some differences in size can be in the size of the directory itself.  Directories grow as files are added, but as files are removed, they do not shrink.</description>
      <pubDate>Fri, 30 Mar 2007 09:17:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-problem/m-p/3972846#M293232</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2007-03-30T09:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Copying problem!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-problem/m-p/3972847#M293233</link>
      <description>Another reason could be a different block size.&lt;BR /&gt;Is there any difference in output from fstyp?&lt;BR /&gt;Besides, I would recommend to pass big enough values for No. of PVs, PE size, and max. No. of PEs during VG creation.&lt;BR /&gt;Better to be required to use a larger PE size from the start than running into PV or PE limitations later when space gets short, and requiring recreation of VG.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Mar 2007 09:21:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-problem/m-p/3972847#M293233</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2007-03-30T09:21:14Z</dc:date>
    </item>
  </channel>
</rss>

