<?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: Move a filesystem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127163#M803363</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I believe that the reduction in size between the new and old filesystem is related to a reduction of the directory size. This occurs when you have stored a lot of files in a dir in the "old" filesystem, causing the size of the directory to increase. Later files are removed and but the directory still retains its larger size. When the directory is recreated via cpio the directory is "created from scratch" and thus "optimal" in its allocation.&lt;BR /&gt;&lt;BR /&gt;Do a dircmp between the old and new to see if the two dirs are identical.&lt;BR /&gt;</description>
    <pubDate>Mon, 24 Nov 2003 08:37:37 GMT</pubDate>
    <dc:creator>Henrik Palmqvist</dc:creator>
    <dc:date>2003-11-24T08:37:37Z</dc:date>
    <item>
      <title>Move a filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127155#M803355</link>
      <description>I would like to move a filesystem in my VG04 into VG00. How to do it? Do you know what actions are needed? Thanks in advance!</description>
      <pubDate>Mon, 24 Nov 2003 06:55:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127155#M803355</guid>
      <dc:creator>Falco_1</dc:creator>
      <dc:date>2003-11-24T06:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Move a filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127156#M803356</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Simple answer, you can not move a filesystem. You will have to recreate it.&lt;BR /&gt;&lt;BR /&gt;# lvcreate&lt;BR /&gt;# newfs&lt;BR /&gt;# cd /old-filesystem&lt;BR /&gt;# find . | cpio -pcmudv /new-filesystem&lt;BR /&gt;# lvremove old-filesystem.&lt;BR /&gt;&lt;BR /&gt;Robert-Jan.</description>
      <pubDate>Mon, 24 Nov 2003 07:04:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127156#M803356</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2003-11-24T07:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Move a filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127157#M803357</link>
      <description>Hi Falco,&lt;BR /&gt;&lt;BR /&gt;just create a new filesystem on VG00, almost with the same size of used space (and anything more!) and copy contents of the filesystem from VG04 to VG00 by cpio command. You can see a procedure in doc&lt;BR /&gt;&lt;BR /&gt;ULVMKBRC00013032 - Moving /opt from vg00 to a new disk/volume group &lt;BR /&gt;&lt;BR /&gt;I hope this helps you.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Ettore</description>
      <pubDate>Mon, 24 Nov 2003 07:05:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127157#M803357</guid>
      <dc:creator>Fabio Ettore</dc:creator>
      <dc:date>2003-11-24T07:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Move a filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127158#M803358</link>
      <description>Hi!&lt;BR /&gt;Here is the example of moving FS with&lt;BR /&gt;keeping its name:&lt;BR /&gt;&lt;BR /&gt;#newfs -F vxfs /dev/vg00/rlvol_X &lt;BR /&gt;#mkdir /filesystem_new&lt;BR /&gt;#mount /dev/vg00/lvol_X /filesystem_new&lt;BR /&gt;#cd /filesystem_old&lt;BR /&gt;#find . | cpio -pdumv /filesystem_new&lt;BR /&gt;#cd /&lt;BR /&gt;#rm -rf /filesystem_old/*&lt;BR /&gt;#umount /home_new&lt;BR /&gt;#mount /dev/vg00/lvol_X /filesystem_old&lt;BR /&gt;rmdir /filesystem_new&lt;BR /&gt;&lt;BR /&gt;Regards,Stan&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Nov 2003 07:09:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127158#M803358</guid>
      <dc:creator>Stanimir</dc:creator>
      <dc:date>2003-11-24T07:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Move a filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127159#M803359</link>
      <description>As said by Robert, you can not move it.&lt;BR /&gt;&lt;BR /&gt;You will have to create new one transfer your data and remove the old one.&lt;BR /&gt;&lt;BR /&gt;Also exclude v option in cpio to heve a bit better performance.&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Nov 2003 07:10:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127159#M803359</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2003-11-24T07:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Move a filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127160#M803360</link>
      <description>I would suggest that you reconsider moving a file system into vg00, which should be reserved for strictly Operating System file systems.  For ease of backup and recovery, your data file systems should be kept separate from your OS file systems in vg00.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 24 Nov 2003 07:13:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127160#M803360</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-11-24T07:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Move a filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127161#M803361</link>
      <description>I have executed cpio command, it seems to be succeeded but I see a difference on space used by bdf command:&lt;BR /&gt;&lt;BR /&gt;# bdf | grep /data*&lt;BR /&gt;&lt;BR /&gt;/dev/vg00/ldata 512000  445705   62191   88% /data.new&lt;BR /&gt;/dev/vg04/ldata 2097152  446099 1547902   22% /fw24&lt;BR /&gt;&lt;BR /&gt;445705 for data.new&lt;BR /&gt;446099 for data&lt;BR /&gt;&lt;BR /&gt;Then I think that something was not copied.&lt;BR /&gt;Anyway diff command doesn't report differences.&lt;BR /&gt;According to you, is it normal? Should I worry about that difference? What is causing that little gap?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Nov 2003 08:28:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127161#M803361</guid>
      <dc:creator>Falco_1</dc:creator>
      <dc:date>2003-11-24T08:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Move a filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127162#M803362</link>
      <description>sorry...&lt;BR /&gt;&lt;BR /&gt;445705 for data.new&lt;BR /&gt;446099 for fw24&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Nov 2003 08:31:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127162#M803362</guid>
      <dc:creator>Falco_1</dc:creator>
      <dc:date>2003-11-24T08:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Move a filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127163#M803363</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I believe that the reduction in size between the new and old filesystem is related to a reduction of the directory size. This occurs when you have stored a lot of files in a dir in the "old" filesystem, causing the size of the directory to increase. Later files are removed and but the directory still retains its larger size. When the directory is recreated via cpio the directory is "created from scratch" and thus "optimal" in its allocation.&lt;BR /&gt;&lt;BR /&gt;Do a dircmp between the old and new to see if the two dirs are identical.&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Nov 2003 08:37:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127163#M803363</guid>
      <dc:creator>Henrik Palmqvist</dc:creator>
      <dc:date>2003-11-24T08:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Move a filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127164#M803364</link>
      <description>You cannot move a file system. You can only create a new file system and move the contents of the old file system to the new one.&lt;BR /&gt;&lt;BR /&gt;If that old file system which you want to move to vg00 is not Operating system files [accidentally created by someone], DON'T move those into vg00. Keep only OS specific file systems under vg00, which will make life easier in creating make_tape_recovery(Ignite-UX) and in a diaster recovery scenario. etc.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Raju</description>
      <pubDate>Mon, 24 Nov 2003 08:40:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127164#M803364</guid>
      <dc:creator>Raju Joseph (PDI)</dc:creator>
      <dc:date>2003-11-24T08:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Move a filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127165#M803365</link>
      <description>Hi (again...),&lt;BR /&gt;&lt;BR /&gt;Just out of curiosity... Does anyone know if the following would work?:&lt;BR /&gt;# lvcreate -n newfs_vol /dev/vg00&lt;BR /&gt;# lvextend ... (same size as oldfs_vol)&lt;BR /&gt;# umount /oldfs&lt;BR /&gt;# dd if=/dev/vg04/roldfs_vol of=/dev/vg00/rnewfs_vol bs=64k&lt;BR /&gt;# fsck /dev/vg00/rnewfs_vol&lt;BR /&gt;# mount /newfs&lt;BR /&gt;&lt;BR /&gt;That way it would be consistent since the source filesystem is unmounted during copy.&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Nov 2003 08:51:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127165#M803365</guid>
      <dc:creator>Henrik Palmqvist</dc:creator>
      <dc:date>2003-11-24T08:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Move a filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127166#M803366</link>
      <description>Hi Hendrik,&lt;BR /&gt;&lt;BR /&gt;Yes that would work ( small adjustement newfs and not extendfs :-)&lt;BR /&gt;&lt;BR /&gt;Falco,&lt;BR /&gt;&lt;BR /&gt;use dircmp to check if both filesystems are the same as in Hendrik's answer. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Mon, 24 Nov 2003 08:59:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127166#M803366</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2003-11-24T08:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Move a filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127167#M803367</link>
      <description>Thanks Henrik for your explaination about the size difference between two filesystems, thanks at all....&lt;BR /&gt;I executed dircmp and nothing is different, then I think there are no problems.&lt;BR /&gt;&lt;BR /&gt;As soon as possible I will do a reboot.&lt;BR /&gt;&lt;BR /&gt;Thanks again!</description>
      <pubDate>Mon, 24 Nov 2003 09:08:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-filesystem/m-p/3127167#M803367</guid>
      <dc:creator>Falco_1</dc:creator>
      <dc:date>2003-11-24T09:08:27Z</dc:date>
    </item>
  </channel>
</rss>

