<?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 the filesystem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-the-filesystem/m-p/4199898#M689969</link>
    <description>The answer depends on the target. If you need to clone the source, i.e. target file system is empty and has exactly the same size, the best way is dd:&lt;BR /&gt;dd if=/dev/vgsrc/rlvolsrc of=/dev/vgtrgt/rlvoltrgt bs=32768k ,&lt;BR /&gt;otherwise cpio or rsync. Rsync is the best if you need to synchronize file systems  daily/weekly.&lt;BR /&gt;HTH</description>
    <pubDate>Sat, 17 May 2008 15:03:41 GMT</pubDate>
    <dc:creator>Victor Fridyev</dc:creator>
    <dc:date>2008-05-17T15:03:41Z</dc:date>
    <item>
      <title>Copying the filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-the-filesystem/m-p/4199895#M689966</link>
      <description>Hi All , &lt;BR /&gt;&lt;BR /&gt;  I have a filesystem of 27 GB which contains lot of tiny files which is 2 KB . &lt;BR /&gt;&lt;BR /&gt; I know the copying will take long time . Suggest me the best and fast method for copying ? cpio / tar / dd / rsync?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;AK</description>
      <pubDate>Sat, 17 May 2008 11:26:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-the-filesystem/m-p/4199895#M689966</guid>
      <dc:creator>Arun K</dc:creator>
      <dc:date>2008-05-17T11:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Copying the filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-the-filesystem/m-p/4199896#M689967</link>
      <description>&lt;!--!*#--&gt;In general, I'd normally use a "tar"&lt;BR /&gt;pipeline, but with 27GB you'd probably need&lt;BR /&gt;to use a better "tar" than the standard&lt;BR /&gt;HP-UX "tar".  GNU "tar" should work.  Add&lt;BR /&gt;compression, if the CPUs are faster than the&lt;BR /&gt;network.&lt;BR /&gt;&lt;BR /&gt;For some examples (and excessive discussion),&lt;BR /&gt;try a forum search for:&lt;BR /&gt;    tar pipeline&lt;BR /&gt;or:&lt;BR /&gt;    tar pipeline rsync&lt;BR /&gt;&lt;BR /&gt;If both ends are HP-UX, and you're doing the&lt;BR /&gt;whole file system, then vxdump+vxrestore may&lt;BR /&gt;be a better choice.  Are there ACLs (or any&lt;BR /&gt;other OS-specific data) to preserve (which&lt;BR /&gt;"tar" may not do)?&lt;BR /&gt;&lt;BR /&gt;Experiment is the most reliable way to&lt;BR /&gt;determine which method is fastest.</description>
      <pubDate>Sat, 17 May 2008 12:50:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-the-filesystem/m-p/4199896#M689967</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-05-17T12:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Copying the filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-the-filesystem/m-p/4199897#M689968</link>
      <description>hi AK,&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I know the copying will take long time . Suggest me the best and fast method for copying ? cpio / tar / dd / rsync?&lt;BR /&gt;&lt;BR /&gt;Question:&lt;BR /&gt;Copying from where to where?&lt;BR /&gt;&lt;BR /&gt;If it is from a local file system to local file system, then &lt;BR /&gt; cp -p -R &lt;SOURCEDIR&gt; &lt;DESTDIR&gt;&lt;BR /&gt;&lt;BR /&gt;If it is from a local file system to a nfs mount point, then&lt;BR /&gt;  tar -cvf /largefs/ALLFILE.TAR ./&lt;YOURFILES&gt;&lt;BR /&gt;  gzip -S .Z /largefs/ALLFILE.TAR&lt;BR /&gt;  cp /largefs/ALLFILE.TAR.Z &lt;DESTDIR&gt;&lt;BR /&gt;&lt;BR /&gt;We can many other scenarios, please clarify what scenario is yours!&lt;BR /&gt;&lt;BR /&gt;revert!&lt;BR /&gt;kind regards&lt;BR /&gt;Yogeeraj&lt;BR /&gt;&lt;/DESTDIR&gt;&lt;/YOURFILES&gt;&lt;/DESTDIR&gt;&lt;/SOURCEDIR&gt;</description>
      <pubDate>Sat, 17 May 2008 13:49:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-the-filesystem/m-p/4199897#M689968</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2008-05-17T13:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Copying the filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-the-filesystem/m-p/4199898#M689969</link>
      <description>The answer depends on the target. If you need to clone the source, i.e. target file system is empty and has exactly the same size, the best way is dd:&lt;BR /&gt;dd if=/dev/vgsrc/rlvolsrc of=/dev/vgtrgt/rlvoltrgt bs=32768k ,&lt;BR /&gt;otherwise cpio or rsync. Rsync is the best if you need to synchronize file systems  daily/weekly.&lt;BR /&gt;HTH</description>
      <pubDate>Sat, 17 May 2008 15:03:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-the-filesystem/m-p/4199898#M689969</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2008-05-17T15:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Copying the filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-the-filesystem/m-p/4199899#M689970</link>
      <description>The scenario is i have to recreate the VG due to PE Size value set to 4 MB . So i have created a new vg and i am movinng the data from the old VG to new VG . &lt;BR /&gt;&lt;BR /&gt;I have around small txt and html files for around 27 GB . So i started copying thru cpio but the data copying speed is less than a GB/hr . &lt;BR /&gt;&lt;BR /&gt;Please let me know the inputs.</description>
      <pubDate>Sat, 17 May 2008 16:18:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-the-filesystem/m-p/4199899#M689970</guid>
      <dc:creator>Arun K</dc:creator>
      <dc:date>2008-05-17T16:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Copying the filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-the-filesystem/m-p/4199900#M689971</link>
      <description>&amp;gt; cp -p -R &lt;SOURCEDIR&gt; &lt;DESTDIR&gt;&lt;BR /&gt;&lt;BR /&gt;For why this may be a very bad idea, try that&lt;BR /&gt;forum search suggested earlier.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; tar -cvf /largefs/ALLFILE.TAR ./&lt;YOURFILES&gt;&lt;BR /&gt;&amp;gt; gzip -S .Z /largefs/ALLFILE.TAR&lt;BR /&gt;&amp;gt; cp /largefs/ALLFILE.TAR.Z &lt;DESTDIR&gt;&lt;BR /&gt;&lt;BR /&gt;If you have unlimited space for the (totally&lt;BR /&gt;unnecessary) temporary files.  (And ".Z" is&lt;BR /&gt;normally used with "compress", ".gz" with&lt;BR /&gt;"gzip".  Why work so hard to add potential&lt;BR /&gt;confusion?)&lt;BR /&gt;&lt;BR /&gt;&amp;gt; We can many other scenarios, [...]&lt;BR /&gt;&lt;BR /&gt;Are all your suggestions as clever as these?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Rsync is the best if you need to&lt;BR /&gt;&amp;gt; synchronize file systems daily/weekly.&lt;BR /&gt;&lt;BR /&gt;Is that what's happening here?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] i am movinng the data from the old VG&lt;BR /&gt;to new VG . &lt;BR /&gt;&lt;BR /&gt;On one system?  Local disks or network?&lt;BR /&gt;"less than a GB/hr" sounds pretty slow to me,&lt;BR /&gt;and I'm accustomed to old, weak junk.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; So i started copying thru cpio [...]&lt;BR /&gt;&lt;BR /&gt;How, exactly?  (Actual command(s)?)&lt;/DESTDIR&gt;&lt;/YOURFILES&gt;&lt;/DESTDIR&gt;&lt;/SOURCEDIR&gt;</description>
      <pubDate>Sat, 17 May 2008 16:43:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-the-filesystem/m-p/4199900#M689971</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-05-17T16:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Copying the filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-the-filesystem/m-p/4199901#M689972</link>
      <description>I am copying the data in the local system , one VG to another VG . Total data - 201 GB&lt;BR /&gt;&lt;BR /&gt;i have used the below command .. &lt;BR /&gt;&lt;BR /&gt;find . -depth -print | cpio -pdlmv destination path &lt;BR /&gt;&lt;BR /&gt;The above command copied 170 GB data in 18 hrs and due to the lack of time i have stopped coyping the data . &lt;BR /&gt;&lt;BR /&gt;Again i have started copying the remaining 30 GB using the rsyn and it took 12 hrs still the data copying is not completed . &lt;BR /&gt;&lt;BR /&gt;There are lot of tiny files of 1 KB size which rounds up to 30 GB. &lt;BR /&gt;&lt;BR /&gt;After 12 hrs of copying iam still left with 6 GB data out of 30 GB &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;AK</description>
      <pubDate>Sat, 17 May 2008 17:11:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-the-filesystem/m-p/4199901#M689972</guid>
      <dc:creator>Arun K</dc:creator>
      <dc:date>2008-05-17T17:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Copying the filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-the-filesystem/m-p/4199902#M689973</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;In the case when you need to copy your data to a new destination once, dd is the best, you can copy either all disk or only one logical volume. My experience with rp3440 and internal disk gives 45 minutes for 73 GB&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Sun, 18 May 2008 08:15:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-the-filesystem/m-p/4199902#M689973</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2008-05-18T08:15:11Z</dc:date>
    </item>
  </channel>
</rss>

