<?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 moving files to a new filesystem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-files-to-a-new-filesystem/m-p/2899073#M633752</link>
    <description>I plan to move one of the filesystem along with its data to a newly created one.  Is there a simple way to achieve such task</description>
    <pubDate>Fri, 07 Feb 2003 00:11:11 GMT</pubDate>
    <dc:creator>hpuxhelp</dc:creator>
    <dc:date>2003-02-07T00:11:11Z</dc:date>
    <item>
      <title>moving files to a new filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-files-to-a-new-filesystem/m-p/2899073#M633752</link>
      <description>I plan to move one of the filesystem along with its data to a newly created one.  Is there a simple way to achieve such task</description>
      <pubDate>Fri, 07 Feb 2003 00:11:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-files-to-a-new-filesystem/m-p/2899073#M633752</guid>
      <dc:creator>hpuxhelp</dc:creator>
      <dc:date>2003-02-07T00:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: moving files to a new filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-files-to-a-new-filesystem/m-p/2899074#M633753</link>
      <description>Do you mean you want to move data from one logical volume mount point to another?&lt;BR /&gt;&lt;BR /&gt;If so, I'd use cpio and do something like:&lt;BR /&gt;cd {original_mount_point}&lt;BR /&gt;find . -xdev -depth -print | cpio -padmucx {new_mount_point}&lt;BR /&gt;&lt;BR /&gt;for example cd /u01 ; find . -xdev -depth -print | cpio -padmucx /new/u01&lt;BR /&gt;&lt;BR /&gt;let me know if I interpreted your question properly.</description>
      <pubDate>Fri, 07 Feb 2003 00:16:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-files-to-a-new-filesystem/m-p/2899074#M633753</guid>
      <dc:creator>Ian Kidd_1</dc:creator>
      <dc:date>2003-02-07T00:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: moving files to a new filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-files-to-a-new-filesystem/m-p/2899075#M633754</link>
      <description>One caveat to my suggestion above is that it will not work for files greater than 2GB.  Per the man page on cpio:&lt;BR /&gt;&lt;BR /&gt;"Because of industry standards and nteroperability goals, cpio does not support the archival of files larger than 2GB or files that have user/group IDs greater than 60K.  Files with user/group IDs greater than 60K are archived and restored under the user/group ID of the current process."</description>
      <pubDate>Fri, 07 Feb 2003 00:22:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-files-to-a-new-filesystem/m-p/2899075#M633754</guid>
      <dc:creator>Ian Kidd_1</dc:creator>
      <dc:date>2003-02-07T00:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: moving files to a new filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-files-to-a-new-filesystem/m-p/2899076#M633755</link>
      <description>We use cpio to do this task. As long as there are no files over 2Gb, your fine&lt;BR /&gt;&lt;BR /&gt;Create your new logical volume and mount it on a mount point like /copy&lt;BR /&gt;&lt;BR /&gt;# mount /dev/myvg/mylvol /copy&lt;BR /&gt;# cd /oldfilesystem&lt;BR /&gt;# find . -xdev | cpio -pdumv /copy&lt;BR /&gt;# unmount /copy&lt;BR /&gt;# cd /&lt;BR /&gt;# umount /oldfilesystem&lt;BR /&gt;# mount /dev/myvg/mylvol /oldfilesystem&lt;BR /&gt;&lt;BR /&gt;Don't forget to update the /etc/fstab file with the new logical volume information on the old mount point name.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Michael</description>
      <pubDate>Fri, 07 Feb 2003 00:23:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-files-to-a-new-filesystem/m-p/2899076#M633755</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-02-07T00:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: moving files to a new filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-files-to-a-new-filesystem/m-p/2899077#M633756</link>
      <description>Steven,&lt;BR /&gt;&lt;BR /&gt;What did you mean by "along with"?. You create a new file system and then copy the data.&lt;BR /&gt;&lt;BR /&gt;1. Create a new file system with desired size.&lt;BR /&gt;&lt;BR /&gt;lvcreate -n lv_name -L size_in_mb vg01&lt;BR /&gt;newfs -F vxfs /dev/vg01/rlv_name&lt;BR /&gt;mkdir /templv&lt;BR /&gt;mount /dev/vg01/lv_name /templv&lt;BR /&gt;&lt;BR /&gt;2. Copy data from old mount point to the temp mount point. &lt;BR /&gt;&lt;BR /&gt;cd /oldlv&lt;BR /&gt;find . |cpio -pdvma /templv&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3. Unmount /oldlv and /templv&lt;BR /&gt;#cd /&lt;BR /&gt;#umount /oldlv &lt;BR /&gt;(you will need to bring down the processes that use this filesystem)&lt;BR /&gt;#umount /templv&lt;BR /&gt;&lt;BR /&gt;4. Edit /etc/fstab &lt;BR /&gt;(replace the lvol of oldlv with new lvol)&lt;BR /&gt;5. Mount the new lvol&lt;BR /&gt;&lt;BR /&gt;#mount -a&lt;BR /&gt;&lt;BR /&gt;Ensure new lvol is mount on /oldlv&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Fri, 07 Feb 2003 00:33:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-files-to-a-new-filesystem/m-p/2899077#M633756</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2003-02-07T00:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: moving files to a new filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-files-to-a-new-filesystem/m-p/2899078#M633757</link>
      <description>I like to use restore / vxrestore&lt;BR /&gt;&lt;BR /&gt;It's generally faster and you don't need to worry about missing out on .profile or other "dot" files as you do with find.&lt;BR /&gt;&lt;BR /&gt;This one comes from the restore man page.&lt;BR /&gt;&lt;BR /&gt;dump 0f - /usr | (cd /mnt; restore xf -)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;works like a charm and is generally pretty fast (faster than cpio anyhow)&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Scott.&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Feb 2003 00:50:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-files-to-a-new-filesystem/m-p/2899078#M633757</guid>
      <dc:creator>Scott Van Kalken</dc:creator>
      <dc:date>2003-02-07T00:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: moving files to a new filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-files-to-a-new-filesystem/m-p/2899079#M633758</link>
      <description>I am wondering if you want to move all the data from one filesystem to another ( note: copying and moving)&lt;BR /&gt;which means you dont need the data at old place. Then simply use mv command (it wond move socket files, but dont worry they will be created when you start your application)&lt;BR /&gt;So Create a new filesystem and mount as said by people above and &lt;BR /&gt;cd /oldfilesystem&lt;BR /&gt;mv * /newfilesystem&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Rajeev</description>
      <pubDate>Fri, 07 Feb 2003 01:24:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-files-to-a-new-filesystem/m-p/2899079#M633758</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2003-02-07T01:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: moving files to a new filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-files-to-a-new-filesystem/m-p/2899080#M633759</link>
      <description>Hi Steven:&lt;BR /&gt;&lt;BR /&gt;I have used the 'cpio' technique on many occassions as noted by several colleagues above.  However, if largefiles (&amp;gt;2GB) and/or sparse files are an issue, you can use 'fbackup'/'frecover' thusly:&lt;BR /&gt;&lt;BR /&gt;# cd /srcdir &lt;BR /&gt;# fbackup -i . -f - | (cd /dstdir; frecover -Xsrf -) &lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 07 Feb 2003 11:38:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-files-to-a-new-filesystem/m-p/2899080#M633759</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-02-07T11:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: moving files to a new filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-files-to-a-new-filesystem/m-p/2899081#M633760</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think that all 'moving' answers have been covered, but since you made a post in the lvm forum, I just wanted to remind you that if you want to move a filesystem to another disk, you could also move directly the lvol using pvmove, or if you want a copy int the same vg, use lvextend/lvsplit to get an exact copy (unmount first to be sure).&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Fri, 07 Feb 2003 12:23:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-files-to-a-new-filesystem/m-p/2899081#M633760</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2003-02-07T12:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: moving files to a new filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-files-to-a-new-filesystem/m-p/2899082#M633761</link>
      <description>if using fbackup and restore...do I still have to create a new filesystem prior to doing the backup?&lt;BR /&gt;or can the filesystem be mounted during this procedure???</description>
      <pubDate>Fri, 07 Feb 2003 23:45:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-files-to-a-new-filesystem/m-p/2899082#M633761</guid>
      <dc:creator>hpuxhelp</dc:creator>
      <dc:date>2003-02-07T23:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: moving files to a new filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-files-to-a-new-filesystem/m-p/2899083#M633762</link>
      <description>Please ignore the previous question...i am reading man page on fbackup and frestore..and trying to do it on /usr..thanks for your help</description>
      <pubDate>Sat, 08 Feb 2003 00:13:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-files-to-a-new-filesystem/m-p/2899083#M633762</guid>
      <dc:creator>hpuxhelp</dc:creator>
      <dc:date>2003-02-08T00:13:37Z</dc:date>
    </item>
  </channel>
</rss>

