<?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: Moving /opt filesytem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-opt-filesytem/m-p/3179863#M162708</link>
    <description>I think It should be exactly what you said. I dont see any issues with this.  Basically, you need /stand, / and /usr for running into single user mode. You dont require /opt to be mounted in single user mode. So it should work..&lt;BR /&gt;&lt;BR /&gt;Also, make sure you made a Ignite-UX recovery tape before doing this. Also make sure, you have any scripts in /sbin/init.d using /opt in single user mode.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Vijay</description>
    <pubDate>Mon, 02 Feb 2004 01:51:11 GMT</pubDate>
    <dc:creator>Vijaya Kumar_3</dc:creator>
    <dc:date>2004-02-02T01:51:11Z</dc:date>
    <item>
      <title>Moving /opt filesytem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-opt-filesytem/m-p/3179862#M162707</link>
      <description>A while back ... don't ask me why, /opt was moved out of vg00 and into vg01. I would like to move it back into vg00.&lt;BR /&gt;&lt;BR /&gt;I moved oracle and some other software onto their own filesystems mounted under /opt.&lt;BR /&gt;&lt;BR /&gt;Can you let me know if this will work ...&lt;BR /&gt;&lt;BR /&gt;1.Boot into single user mode&lt;BR /&gt;2.Mount up current /opt (vg01)&lt;BR /&gt;3.Mount up /newopt (will be the new opt in vg00)&lt;BR /&gt;4.Make sure that none of the filesystem normally mounted under /opt are mounted up. (oracle)&lt;BR /&gt;5.fuser -c /opt&lt;BR /&gt;6.kill any processes using /opt (should be none, maybe rpcd)&lt;BR /&gt;7.copy all the data from /opt into  /newopt&lt;BR /&gt;8. umount both&lt;BR /&gt;9. modify /etc/fstab to reflect the changes&lt;BR /&gt;10. boot the system&lt;BR /&gt;&lt;BR /&gt;I'm pretty sure this will work ... any specific command that I should use to copy the data across? will cp or cpio do the job?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Gus</description>
      <pubDate>Mon, 02 Feb 2004 01:32:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-opt-filesytem/m-p/3179862#M162707</guid>
      <dc:creator>Gus Mestousis</dc:creator>
      <dc:date>2004-02-02T01:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Moving /opt filesytem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-opt-filesytem/m-p/3179863#M162708</link>
      <description>I think It should be exactly what you said. I dont see any issues with this.  Basically, you need /stand, / and /usr for running into single user mode. You dont require /opt to be mounted in single user mode. So it should work..&lt;BR /&gt;&lt;BR /&gt;Also, make sure you made a Ignite-UX recovery tape before doing this. Also make sure, you have any scripts in /sbin/init.d using /opt in single user mode.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Vijay</description>
      <pubDate>Mon, 02 Feb 2004 01:51:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-opt-filesytem/m-p/3179863#M162708</guid>
      <dc:creator>Vijaya Kumar_3</dc:creator>
      <dc:date>2004-02-02T01:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Moving /opt filesytem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-opt-filesytem/m-p/3179864#M162709</link>
      <description>that should work just fine for you.&lt;BR /&gt;&lt;BR /&gt;a few comments:&lt;BR /&gt;&lt;BR /&gt;2.Mount up current /opt (vg01)&lt;BR /&gt;this would include vgchange, possible fsck, etc.&lt;BR /&gt;&lt;BR /&gt;being your in single user mode and have just mount /opt none of these should be necessary.  But, what does it hurt to take a few seconds to double check.&lt;BR /&gt;&lt;BR /&gt;4.Make sure that none of the filesystem normally mounted under /opt are mounted up. (oracle)&lt;BR /&gt;5.fuser -c /opt&lt;BR /&gt;6.kill any processes using /opt (should be none, maybe rpcd)&lt;BR /&gt;&lt;BR /&gt;7.copy all the data from /opt into /newopt&lt;BR /&gt;I'd use cpio because it will be faster, but cpio doesn't copy empty directories (the mount points for your other file systems).&lt;BR /&gt;&lt;BR /&gt;and a quick bdf to see that the size of the file systems are close to the same.  They won't be exact, but shouldn't be largely different.&lt;BR /&gt;&lt;BR /&gt;9. modify /etc/fstab to reflect the changes&lt;BR /&gt;&lt;BR /&gt;I'd add a step to mount all the file systems here and do a quick check that all the file systems mount (everything under opt is where it should be) and are as you desire before rebooting.&lt;BR /&gt;&lt;BR /&gt;10. boot the system&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Feb 2004 01:56:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-opt-filesytem/m-p/3179864#M162709</guid>
      <dc:creator>curt larson_1</dc:creator>
      <dc:date>2004-02-02T01:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Moving /opt filesytem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-opt-filesytem/m-p/3179865#M162710</link>
      <description>your methodoloy will work&lt;BR /&gt;&lt;BR /&gt;fuser -cuk /opt&lt;BR /&gt;&lt;BR /&gt;will kill any processes left open after shutting down all application software.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 02 Feb 2004 01:58:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-opt-filesytem/m-p/3179865#M162710</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-02-02T01:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Moving /opt filesytem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-opt-filesytem/m-p/3179866#M162711</link>
      <description>You might get away with doing this by just restoring your latest backup of /opt to /newopt, then changing /etc/fstab and re-booting.  On the other hand, your way is probably safer.</description>
      <pubDate>Mon, 02 Feb 2004 01:59:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-opt-filesytem/m-p/3179866#M162711</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-02-02T01:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Moving /opt filesytem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-opt-filesytem/m-p/3179867#M162712</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;all suggestions are right, then you should execute all steps in single user mode.&lt;BR /&gt;I just post a good command in order to copy contents from a filesystem to another one:&lt;BR /&gt;&lt;BR /&gt;# mkdir /pippo.new&lt;BR /&gt;# mount /dev/vg00/new /pippo.new &lt;BR /&gt;# cd /pippo.old&lt;BR /&gt;# find . -xdev -print | cpio -pdmvux /pippo.new&lt;BR /&gt;&lt;BR /&gt;In the past it worked fine for me.&lt;BR /&gt;Then check contents between 2 filesystems by diff command (of course, after boot the system):&lt;BR /&gt;&lt;BR /&gt;# diff /pippo.old /pippo.new&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Ettore</description>
      <pubDate>Mon, 02 Feb 2004 04:25:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-opt-filesytem/m-p/3179867#M162712</guid>
      <dc:creator>Fabio Ettore</dc:creator>
      <dc:date>2004-02-02T04:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Moving /opt filesytem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-opt-filesytem/m-p/3179868#M162713</link>
      <description>I've used this in the past to move /usr. I would think it would work for you.&lt;BR /&gt;&lt;BR /&gt;cd /opt&lt;BR /&gt;find . -print | cpio -dlmpuvx /opt2&lt;BR /&gt;  d = Do directories&lt;BR /&gt;  l = Do links&lt;BR /&gt;  m = Keep time&lt;BR /&gt;  p = Pass along&lt;BR /&gt;  u = Copy unconditionaly&lt;BR /&gt;  v = verbose&lt;BR /&gt;  x = Save device special files</description>
      <pubDate>Mon, 02 Feb 2004 11:05:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-opt-filesytem/m-p/3179868#M162713</guid>
      <dc:creator>Doug Burton</dc:creator>
      <dc:date>2004-02-02T11:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Moving /opt filesytem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-opt-filesytem/m-p/3179869#M162714</link>
      <description>Thanks all ... Some nice suggestions in there.&lt;BR /&gt;&lt;BR /&gt;Gus</description>
      <pubDate>Mon, 02 Feb 2004 11:28:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-opt-filesytem/m-p/3179869#M162714</guid>
      <dc:creator>Gus Mestousis</dc:creator>
      <dc:date>2004-02-02T11:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Moving /opt filesytem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-opt-filesytem/m-p/3179870#M162715</link>
      <description>Test reply.... please ignore..</description>
      <pubDate>Mon, 02 Feb 2004 11:37:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-opt-filesytem/m-p/3179870#M162715</guid>
      <dc:creator>DIPAK KUMAR ROY</dc:creator>
      <dc:date>2004-02-02T11:37:44Z</dc:date>
    </item>
  </channel>
</rss>

