<?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: Duplicating directory structure problems in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-directory-structure-problems/m-p/4725830#M386085</link>
    <description>Thanks everyone. Points assigned. I did check my wc -l and got matching numbers from source and dest directories. What it came down to was the path (/opt/omni) and mounting that separately (as /opt/omni). Previous advice from this forum included that info and I didn't think it really mattered but apparently it does (still learning and always will be). Thanks again and Happy Holidays. :-)</description>
    <pubDate>Wed, 15 Dec 2010 20:16:18 GMT</pubDate>
    <dc:creator>Beannie</dc:creator>
    <dc:date>2010-12-15T20:16:18Z</dc:date>
    <item>
      <title>Duplicating directory structure problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-directory-structure-problems/m-p/4725826#M386081</link>
      <description>Made a separate file system (with more space)  named /DataProtector and did a cpio of /opt/omni over to this file system.  I tested by trying to shutdown omni services and got below output: &lt;BR /&gt;&lt;BR /&gt;Dec-13 sys: /opt/omni-old/sbin/omnisv.sh -stop&lt;BR /&gt;&lt;BR /&gt;/usr/lib/hpux32/dld.so: Unable to find library 'libBrandChg.so'.&lt;BR /&gt;Killed&lt;BR /&gt;&lt;BR /&gt;The cpio command I used was:&lt;BR /&gt;cd /opt/omni&lt;BR /&gt;find . print | cpio -pdml /DataProtector&lt;BR /&gt;&lt;BR /&gt;When I list my directory from each location, there is a difference &lt;BR /&gt;ORIGINAL  /opt/omni:&lt;BR /&gt;Dec-13 ngwiDB: ls -al&lt;BR /&gt;total 1104&lt;BR /&gt;drwxr-xr-x  12 root       sys           8192 Sep 28 10:58 .&lt;BR /&gt;dr-xr-xr-x  79 bin        bin           8192 Dec 13 12:51 ..&lt;BR /&gt;-rw-r--r--   1 root       sys           4289 Sep 15  2009 .CII_CC&lt;BR /&gt;-rw-r--r--   1 root       sys           1442 Sep 15  2009 .CII_CORE&lt;BR /&gt;-rw-r--r--   1 root       sys           3429 Sep 15  2009 .CII_CORE-IS&lt;BR /&gt;-rw-r--r--   1 root       sys          21439 Sep 15  2009 .CII_CS&lt;BR /&gt;-rw-r--r--   1 root       sys            286 Sep 15  2009 .CII_DA&lt;BR /&gt;-rw-r--r--   1 root       sys         218881 Sep 15  2009 .CII_DOCS&lt;BR /&gt;-rw-r--r--   1 root       sys            605 Aug  4  2006 .CII_DOCUMENTS&lt;BR /&gt;-rw-r--r--   1 root       sys           1616 Sep 15  2009 .CII_JAVAGUI&lt;BR /&gt;-rw-r--r--   1 root       sys            482 Sep 15  2009 .CII_MA&lt;BR /&gt;-rwxrwxr-x   1 root       sys              3 Aug 25  2009 .Version&lt;BR /&gt;-r--r--r--   1 root       sys          93195 Aug 25  2009 .omnirc.TMPL&lt;BR /&gt;-rw-r--r--   1 root       sys              3 Sep 15  2009 .patch_cc&lt;BR /&gt;-rw-r--r--   1 root       sys              3 Sep 15  2009 .patch_core&lt;BR /&gt;-rw-r--r--   1 root       sys              3 Sep 15  2009 .patch_cs&lt;BR /&gt;-rw-r--r--   1 root       sys              3 Sep 15  2009 .patch_da&lt;BR /&gt;-rw-r--r--   1 root       sys              3 Sep 15  2009 .patch_docs&lt;BR /&gt;-rw-r--r--   1 root       sys              3 Sep 15  2009 .patch_javagui&lt;BR /&gt;-rw-r--r--   1 root       sys              3 Sep 15  2009 .patch_ma&lt;BR /&gt;drwxr-xr-x   3 root       sys             96 Nov 12 12:16 acs&lt;BR /&gt;drwxr-xr-x   2 root       sys           8192 Sep 28 11:00 bin&lt;BR /&gt;drwxr-xr-x   4 root       sys             96 Apr  2  2008 databases&lt;BR /&gt;drwxr-xr-x   3 root       sys             96 Apr  2  2008 doc&lt;BR /&gt;drwxr-xr-x   3 root       sys             96 Sep 28 10:58 help&lt;BR /&gt;drwxr-xr-x   5 root       sys             96 Sep 28 10:58 java&lt;BR /&gt;drwxr-xr-x   4 root       sys           8192 Sep 28 10:58 lbin&lt;BR /&gt;drwxr-xr-x   8 root       sys           8192 Sep 28 10:58 lib&lt;BR /&gt;drwxr-xr-x   5 root       sys             96 Apr  2  2008 newconfig&lt;BR /&gt;drwxr-xr-x   4 root       sys           8192 Sep 28 10:58 sbin&lt;BR /&gt;-r--r--r--   1 root       sys          46650 Aug 25  2009 scsitab&lt;BR /&gt;&lt;BR /&gt;NEW    /DataProtector&lt;BR /&gt;Dec-13 ngwiDB: ls -al&lt;BR /&gt;total 832&lt;BR /&gt;drwxr-xr-x  12 root       sys           6144 Dec 13 14:57 .&lt;BR /&gt;drwxr-xr-x  32 root       root          8192 Dec 13 12:28 ..&lt;BR /&gt;-rw-r--r--   1 root       sys           4289 Sep 15  2009 .CII_CC&lt;BR /&gt;-rw-r--r--   1 root       sys           1442 Sep 15  2009 .CII_CORE&lt;BR /&gt;-rw-r--r--   1 root       sys           3429 Sep 15  2009 .CII_CORE-IS&lt;BR /&gt;-rw-r--r--   1 root       sys          21439 Sep 15  2009 .CII_CS&lt;BR /&gt;-rw-r--r--   1 root       sys            286 Sep 15  2009 .CII_DA&lt;BR /&gt;-rw-r--r--   1 root       sys         218881 Sep 15  2009 .CII_DOCS&lt;BR /&gt;-rw-r--r--   1 root       sys            605 Aug  4  2006 .CII_DOCUMENTS&lt;BR /&gt;-rw-r--r--   1 root       sys           1616 Sep 15  2009 .CII_JAVAGUI&lt;BR /&gt;-rw-r--r--   1 root       sys            482 Sep 15  2009 .CII_MA&lt;BR /&gt;-rwxrwxr-x   1 root       sys              3 Aug 25  2009 .Version&lt;BR /&gt;-r--r--r--   1 root       sys          93195 Aug 25  2009 .omnirc.TMPL&lt;BR /&gt;-rw-r--r--   1 root       sys              3 Sep 15  2009 .patch_cc&lt;BR /&gt;-rw-r--r--   1 root       sys              3 Sep 15  2009 .patch_core&lt;BR /&gt;-rw-r--r--   1 root       sys              3 Sep 15  2009 .patch_cs&lt;BR /&gt;-rw-r--r--   1 root       sys              3 Sep 15  2009 .patch_da&lt;BR /&gt;-rw-r--r--   1 root       sys              3 Sep 15  2009 .patch_docs&lt;BR /&gt;-rw-r--r--   1 root       sys              3 Sep 15  2009 .patch_javagui&lt;BR /&gt;-rw-r--r--   1 root       sys              3 Sep 15  2009 .patch_ma&lt;BR /&gt;drwxr-xr-x   3 root       sys             96 Dec 13 14:56 acs&lt;BR /&gt;drwxr-xr-x   2 root       sys           1024 Dec 13 14:56 bin&lt;BR /&gt;drwxr-xr-x   4 root       sys             96 Dec 13 14:56 databases&lt;BR /&gt;drwxr-xr-x   3 root       sys             96 Dec 13 14:56 doc&lt;BR /&gt;drwxr-xr-x   3 root       sys             96 Dec 13 14:57 help&lt;BR /&gt;drwxr-xr-x   5 root       sys             96 Dec 13 14:56 java&lt;BR /&gt;drwxr-xr-x   4 root       sys           1024 Dec 13 14:56 lbin&lt;BR /&gt;drwxr-xr-x   8 root       sys           2048 Dec 13 14:56 lib&lt;BR /&gt;drwxr-xr-x   5 root       sys             96 Dec 13 14:56 newconfig&lt;BR /&gt;drwxr-xr-x   4 root       sys           1024 Dec 13 14:56 sbin&lt;BR /&gt;-r--r--r--   1 root       sys          46650 Aug 25  2009 scsitab&lt;BR /&gt;&lt;BR /&gt;Can someone guide me on what I am missing?&lt;BR /&gt;&lt;BR /&gt;Thanks much!</description>
      <pubDate>Mon, 13 Dec 2010 21:13:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-directory-structure-problems/m-p/4725826#M386081</guid>
      <dc:creator>Beannie</dc:creator>
      <dc:date>2010-12-13T21:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating directory structure problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-directory-structure-problems/m-p/4725827#M386082</link>
      <description>Dear Beannie, &lt;BR /&gt;&lt;BR /&gt;first assumption, assume nothing. &lt;BR /&gt;&lt;BR /&gt;I would recommend that you check what other file systems you have mounted under, /opt/omni,&lt;BR /&gt;/opt/omni/...... just in case.  &lt;BR /&gt; &lt;BR /&gt;Then copy the files     &lt;BR /&gt;&lt;BR /&gt;cd /opt/omni&lt;BR /&gt;&lt;BR /&gt;find . -depth -print | cpio -padm /DataProtector&lt;BR /&gt;&lt;BR /&gt;Or &lt;BR /&gt;&lt;BR /&gt;cd /opt/omni&lt;BR /&gt;&lt;BR /&gt;tar cvf - . | (cd /DataProtector; tar xvf -)&lt;BR /&gt;&lt;BR /&gt;I hope this helps &lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Dec 2010 22:31:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-directory-structure-problems/m-p/4725827#M386082</guid>
      <dc:creator>Terry.giblin</dc:creator>
      <dc:date>2010-12-13T22:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating directory structure problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-directory-structure-problems/m-p/4725828#M386083</link>
      <description>Based on the source and destination lists, they are the same (except for directory sizes). But ls tells you nothing useful about what you copied. There are hundreds of files that you have not checked. When you copy a series of directories, count the files and directories:&lt;BR /&gt; &lt;BR /&gt;find /opt/omni -type d | wc -l&lt;BR /&gt;find /opt/omni -type f | wc -l&lt;BR /&gt;find /DataProtector -type d | wc -l&lt;BR /&gt;find /DataProtector -type f | wc -l&lt;BR /&gt; &lt;BR /&gt;Note that the size of the copied directories will usually be smaller while a few files may actually be bigger. But if the counts are correct, then the copy succeeded. The step you are missing is to overlay the original directory /opt/omni with /DataProtector. DP, like many applications, is coded to run from it's installation directory. So unmount /DataProtector and remount it on top of /opt/omni:&lt;BR /&gt; &lt;BR /&gt;umount /DataProtector&lt;BR /&gt;mount /dev/vg0ZZZ/lvolYYY /opt/omni&lt;BR /&gt; &lt;BR /&gt;Now this is for testing only. The old /opt/omni still exists but is hidden under the new lvol. If everything is working, stop DP, umount the new lvol and cleanout /opt/omni. Now /opt/omni will be an empty directory, ready to be the mountpoint for the new lvol.&lt;BR /&gt; &lt;BR /&gt;&amp;gt; /opt/omni-old...&lt;BR /&gt; &lt;BR /&gt;What is that? Is that another copy of /opt/omni? Again, the problem is moving a complex installation to new directories.</description>
      <pubDate>Tue, 14 Dec 2010 02:58:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-directory-structure-problems/m-p/4725828#M386083</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-12-14T02:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating directory structure problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-directory-structure-problems/m-p/4725829#M386084</link>
      <description>&amp;gt;dld.so: Unable to find library libBrandChg.so.&lt;BR /&gt;&lt;BR /&gt;This fails because it likely expects the shlib to be still under opt/omni/ somewhere.&lt;BR /&gt;&lt;BR /&gt;You should have shutdown omni before you copied and as Bill said, put it back under the original name.  Or used a symlink.</description>
      <pubDate>Tue, 14 Dec 2010 04:42:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-directory-structure-problems/m-p/4725829#M386084</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-12-14T04:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating directory structure problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-directory-structure-problems/m-p/4725830#M386085</link>
      <description>Thanks everyone. Points assigned. I did check my wc -l and got matching numbers from source and dest directories. What it came down to was the path (/opt/omni) and mounting that separately (as /opt/omni). Previous advice from this forum included that info and I didn't think it really mattered but apparently it does (still learning and always will be). Thanks again and Happy Holidays. :-)</description>
      <pubDate>Wed, 15 Dec 2010 20:16:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-directory-structure-problems/m-p/4725830#M386085</guid>
      <dc:creator>Beannie</dc:creator>
      <dc:date>2010-12-15T20:16:18Z</dc:date>
    </item>
  </channel>
</rss>

