<?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 mountpoint and filesystem from one LUN to another in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-mountpoint-and-filesystem-from-one-lun-to-another/m-p/4994955#M423136</link>
    <description>sorry about the typo in my previous message it is not xvdump it is vxdump... fingers were fasterthan the brains. It must be the time to go home :)</description>
    <pubDate>Wed, 02 Aug 2006 17:20:49 GMT</pubDate>
    <dc:creator>Mel Burslan</dc:creator>
    <dc:date>2006-08-02T17:20:49Z</dc:date>
    <item>
      <title>Moving mountpoint and filesystem from one LUN to another</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-mountpoint-and-filesystem-from-one-lun-to-another/m-p/4994950#M423131</link>
      <description>'no action required yet... but soon...&lt;BR /&gt;I am running out of space in LUN0 and need to move one of the lvols to LUN1.&lt;BR /&gt;&lt;BR /&gt;I want to make sure that all filesystem attributes and ownership remains the same (doesn't change to root).&lt;BR /&gt;&lt;BR /&gt;The only thing I can think of doing is make a new mount point on LUN1 with a new name, copy over all of the file structure from LUN0, delete the old LUN0 filestructure.&lt;BR /&gt;&lt;BR /&gt;Saving the filestructure to tape and recovering to the new mount point is very slow.  Is there an easy way of doing this?  The man files on the mv command indicates that I will loose the attributes and ownerships will change to root - not good.&lt;BR /&gt;&lt;BR /&gt;Please advise.&lt;BR /&gt;&lt;BR /&gt;Thank you</description>
      <pubDate>Wed, 02 Aug 2006 17:07:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-mountpoint-and-filesystem-from-one-lun-to-another/m-p/4994950#M423131</guid>
      <dc:creator>Glenn Mitchell_2</dc:creator>
      <dc:date>2006-08-02T17:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Moving mountpoint and filesystem from one LUN to another</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-mountpoint-and-filesystem-from-one-lun-to-another/m-p/4994951#M423132</link>
      <description>You are doing this the hard way. By far the easiest method is to add the new LUN to your existing volume group (or diskgroup if this is VxVM). &lt;BR /&gt;&lt;BR /&gt;1) Create a new LUN (it should be no larger than your largest existing LUN in the existing VG.&lt;BR /&gt;2) ioscan -fn&lt;BR /&gt;   insf&lt;BR /&gt;# this will let the host "see" the new LUN&lt;BR /&gt;3) pvcreate /dev/rdsk/cXtYdZ # create a new physical volume (PV)&lt;BR /&gt;4) use vgextend to add the new PV to your existing VG&lt;BR /&gt;5) Now use lvextend to "grow" your old LVOL(s)&lt;BR /&gt;6) Now use fsadm -Fvxfs to extend the filesystems (or extendfs if you don't have OnlineJFS)&lt;BR /&gt;7) Declare victory&lt;BR /&gt;&lt;BR /&gt;You can actually do all of this with the system up and running and if you have OnlineJFS, you can extend the filesystem(s)&lt;BR /&gt;"on the fly" while the application is up and running. If this sounds complicated then SAM -&amp;gt; Disks &amp;amp; Filesystems will actually do all the steps for you (although it's a wimpy approach for a real sysadmin).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Aug 2006 17:16:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-mountpoint-and-filesystem-from-one-lun-to-another/m-p/4994951#M423132</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-08-02T17:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Moving mountpoint and filesystem from one LUN to another</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-mountpoint-and-filesystem-from-one-lun-to-another/m-p/4994952#M423133</link>
      <description>You can use fbackup/frecover, like this:&lt;BR /&gt;&lt;BR /&gt;fbackup -i /lun0 -f - | (cd /lun1; frecover -Xrf -)</description>
      <pubDate>Wed, 02 Aug 2006 17:17:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-mountpoint-and-filesystem-from-one-lun-to-another/m-p/4994952#M423133</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-08-02T17:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Moving mountpoint and filesystem from one LUN to another</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-mountpoint-and-filesystem-from-one-lun-to-another/m-p/4994953#M423134</link>
      <description>you can look into using vxdump/vxrestore as follows&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SOURCEFS=/my/source/fs&lt;BR /&gt;DESTINFS=/my/destination/fs&lt;BR /&gt;&lt;BR /&gt;cd ${SOURCEFS}&lt;BR /&gt;xvdump 0f - ${SOURCEFS} | (cd ${DESTINFS} ; vxrestore xf -)&lt;BR /&gt;&lt;BR /&gt;it is quite fast. As a matter of fastest method we could find to do a host copy when we were migrating from one SAN device to the other couple of years ago.&lt;BR /&gt;&lt;BR /&gt;hope this helps</description>
      <pubDate>Wed, 02 Aug 2006 17:19:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-mountpoint-and-filesystem-from-one-lun-to-another/m-p/4994953#M423134</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2006-08-02T17:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Moving mountpoint and filesystem from one LUN to another</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-mountpoint-and-filesystem-from-one-lun-to-another/m-p/4994954#M423135</link>
      <description>Hi Glenn:&lt;BR /&gt;&lt;BR /&gt;This is easily accomodate with 'cpio' or 'fbackup':&lt;BR /&gt;&lt;BR /&gt;# cd srcdir &amp;amp;&amp;amp; find . -depth -print | cpio -pudlmv dstdir&lt;BR /&gt;&lt;BR /&gt;# cd srcdir &amp;amp;&amp;amp; fbackup -i . -f - | ( cd dstdir &amp;amp;&amp;amp; frecover -Xsrf - )&lt;BR /&gt;&lt;BR /&gt;..where 'srcdir' is your old mountpoint and 'dstdir' is your new mountpoint (logical volume). When done, edit '/etc/fstab' to change the device file associated with the 'srcdir' mountpoint and eliminate the 'dstdir' mountpoint. In that way you will have exchanged the logical volumes while retaining your original mountpoint directory name.&lt;BR /&gt;&lt;BR /&gt;The advantage to 'fbackup' is that is handles largefiles and sparse files.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 02 Aug 2006 17:19:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-mountpoint-and-filesystem-from-one-lun-to-another/m-p/4994954#M423135</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-08-02T17:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Moving mountpoint and filesystem from one LUN to another</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-mountpoint-and-filesystem-from-one-lun-to-another/m-p/4994955#M423136</link>
      <description>sorry about the typo in my previous message it is not xvdump it is vxdump... fingers were fasterthan the brains. It must be the time to go home :)</description>
      <pubDate>Wed, 02 Aug 2006 17:20:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-mountpoint-and-filesystem-from-one-lun-to-another/m-p/4994955#M423136</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2006-08-02T17:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Moving mountpoint and filesystem from one LUN to another</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-mountpoint-and-filesystem-from-one-lun-to-another/m-p/4994956#M423137</link>
      <description>I got a bit confused with that one Clay.  I'm not sure what the new LUN will do, and I don't have Online JFS.  Let me clarify my problem...&lt;BR /&gt;&lt;BR /&gt;My system is N4000 with HP-UX 11.11&lt;BR /&gt;&lt;BR /&gt;LUN0 has numerous lvols dedicated to numerous databases.  2 of those lvols on LUN0 are 98% full (8GB on one and 10GB on the other).  On LUN0 I only have a few MB free, while on LUN1 I have about 15GB free.&lt;BR /&gt;&lt;BR /&gt;I need to move the 8GB lvol from LUN0 to LUN1 and lvextend it out another 4GB.  After the move, I can remove the old lvol to free up 8GB of space on LUN0.  I can then lvextend the remaining 10GB full lvol in LUN0 and extend it out to 15 GB (and still have room for other growth).&lt;BR /&gt;&lt;BR /&gt;Whichever way I go I'll need a full backup to tape before attempting a fix.  A tape recovery to a new lvol will be slow.  I was hoping to find a solution at processor speed.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Aug 2006 17:36:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-mountpoint-and-filesystem-from-one-lun-to-another/m-p/4994956#M423137</guid>
      <dc:creator>Glenn Mitchell_2</dc:creator>
      <dc:date>2006-08-02T17:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Moving mountpoint and filesystem from one LUN to another</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-mountpoint-and-filesystem-from-one-lun-to-another/m-p/4994957#M423138</link>
      <description>Will fbackup or cpio retain the file attributes and ownership "as is"?</description>
      <pubDate>Wed, 02 Aug 2006 17:51:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-mountpoint-and-filesystem-from-one-lun-to-another/m-p/4994957#M423138</guid>
      <dc:creator>Glenn Mitchell_2</dc:creator>
      <dc:date>2006-08-02T17:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Moving mountpoint and filesystem from one LUN to another</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-mountpoint-and-filesystem-from-one-lun-to-another/m-p/4994958#M423139</link>
      <description>Hi (again) Glenn:&lt;BR /&gt;&lt;BR /&gt;You asked, "Will fbackup or cpio retain the file attributes and ownership 'as is'?"&lt;BR /&gt;&lt;BR /&gt;Yes.  For more information, simply see the respective manpages.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 02 Aug 2006 17:55:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-mountpoint-and-filesystem-from-one-lun-to-another/m-p/4994958#M423139</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-08-02T17:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Moving mountpoint and filesystem from one LUN to another</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-mountpoint-and-filesystem-from-one-lun-to-another/m-p/4994959#M423140</link>
      <description>Thank you all for your inputs to answer my questions.  I find myself leaning more toward the fbackup or cpio solutions.  I need to read a few more man pages before making the decision.&lt;BR /&gt;&lt;BR /&gt;Thank you again.</description>
      <pubDate>Wed, 02 Aug 2006 18:10:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-mountpoint-and-filesystem-from-one-lun-to-another/m-p/4994959#M423140</guid>
      <dc:creator>Glenn Mitchell_2</dc:creator>
      <dc:date>2006-08-02T18:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Moving mountpoint and filesystem from one LUN to another</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-mountpoint-and-filesystem-from-one-lun-to-another/m-p/4994960#M423141</link>
      <description>That's the beauty of LVM; a volume group can be comprised of multiple physical volumes (PV's -- LUN's in your case -- and if these are disk array LUN's then that PV can actually be comprised of multiple physical disks --- all invisible to LVM). So my approach is to carve out an additional LUN only as big as you need to accomodate the extra space. You then add that LUN to your existing volume group and you can then increase the size of your existing LVOL's. It's perfectly ok for  LVOL's to span PV's. Once the LVOL's are expanded, you can extend the filesystems. Because nothing is actually copied, no permissions or ownerships are changed. Because you do not have OnlineJFS (get a baseball bat and whack yourself because no HP-UX box should be without it), you will need to shutdown the database(s) and unmount the filesystems before doing the extendfs's. &lt;BR /&gt;&lt;BR /&gt;While I would suggest that you take a backup before doing this, I can tell you that I have done this very operation hundreds of times "on the fly" without a single hiccup. You will be done in a fraction of the time your copy operation will take.&lt;BR /&gt;&lt;BR /&gt;By the way, if you are going to do a copy then an fbackup/frecover pipeline is the way to go because tar and cpio have a 2GiB maximum file size limit (ok, 8GiB with tar, if patched).</description>
      <pubDate>Wed, 02 Aug 2006 19:03:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-mountpoint-and-filesystem-from-one-lun-to-another/m-p/4994960#M423141</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-08-02T19:03:56Z</dc:date>
    </item>
  </channel>
</rss>

