<?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 a filesystem to an seperate LV. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-filesystem-to-an-seperate-lv/m-p/3721068#M252802</link>
    <description>Mitchell,&lt;BR /&gt;&lt;BR /&gt;/var is a system area and why do you want to move data to another file system instead of extending the file system online.&lt;BR /&gt;&lt;BR /&gt;If you must, you may have to be on single user level for some directory. can we know the specific directory you plan to move.</description>
    <pubDate>Tue, 31 Jan 2006 10:12:56 GMT</pubDate>
    <dc:creator>Lolupee</dc:creator>
    <dc:date>2006-01-31T10:12:56Z</dc:date>
    <item>
      <title>Moving a filesystem to an seperate LV.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-filesystem-to-an-seperate-lv/m-p/3721061#M252795</link>
      <description>I wanted to know the proper way to move data from an filesystem on /var to its on seperate LV. I guess I'm looking for the proper syntax for the tar or dd command.</description>
      <pubDate>Tue, 31 Jan 2006 08:54:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-filesystem-to-an-seperate-lv/m-p/3721061#M252795</guid>
      <dc:creator>Mitchell Gaddy</dc:creator>
      <dc:date>2006-01-31T08:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a filesystem to an seperate LV.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-filesystem-to-an-seperate-lv/m-p/3721062#M252796</link>
      <description>Hi Mitchell:&lt;BR /&gt;&lt;BR /&gt;You could use 'cpio' or 'tar' easily:&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; tar cf - . | ( cd dstdir &amp;amp;&amp;amp; tar xpf - )&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Jan 2006 09:00:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-filesystem-to-an-seperate-lv/m-p/3721062#M252796</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-01-31T09:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a filesystem to an seperate LV.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-filesystem-to-an-seperate-lv/m-p/3721063#M252797</link>
      <description>Hi Mitchell,&lt;BR /&gt;&lt;BR /&gt;Why not use cp.&lt;BR /&gt;&lt;BR /&gt;grtz. Mark</description>
      <pubDate>Tue, 31 Jan 2006 09:03:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-filesystem-to-an-seperate-lv/m-p/3721063#M252797</guid>
      <dc:creator>Mark Nieuwboer</dc:creator>
      <dc:date>2006-01-31T09:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a filesystem to an seperate LV.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-filesystem-to-an-seperate-lv/m-p/3721064#M252798</link>
      <description>Hi Mitchell,&lt;BR /&gt;&lt;BR /&gt;Create a new logical volume and mount it on mnt&lt;BR /&gt;&lt;BR /&gt;# cd /var/xxx&lt;BR /&gt;# find . | cpio -pcmudv /mnt&lt;BR /&gt;# rm -r /var/xxx&lt;BR /&gt;# mkdir /var/xxx&lt;BR /&gt;# umount /mnt&lt;BR /&gt;mount the new filesystem on the /var/xxx mount point and add this to the /etc/fstab.&lt;BR /&gt;&lt;BR /&gt;You will have to be sure that there are no open files inside this /var/xxx directory.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Tue, 31 Jan 2006 09:04:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-filesystem-to-an-seperate-lv/m-p/3721064#M252798</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2006-01-31T09:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a filesystem to an seperate LV.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-filesystem-to-an-seperate-lv/m-p/3721065#M252799</link>
      <description>&lt;BR /&gt;Dear Mitchell,&lt;BR /&gt;&lt;BR /&gt;1. If the other filesystem (destination) is already UP then you can use "cp" itself.&lt;BR /&gt;&lt;BR /&gt;1a. mount the new f/s in a temp_mountpint&lt;BR /&gt;&lt;BR /&gt;1b. use #cp -R -p &lt;SOURCE&gt; &lt;TEMP_MOUNTPOINT&gt;&lt;BR /&gt;&lt;BR /&gt;( The -p option preserves the permissions &lt;BR /&gt;&lt;BR /&gt;1c. umount both existing&amp;amp;temp_mnt and mount the new f/s in the reqd mountpoint or make necessary changes in /etc/fstab and reboot the server.&lt;BR /&gt;&lt;BR /&gt;Otherwise&lt;BR /&gt;&lt;BR /&gt;2. use #tar -cvf /dev/rmt/0m /&lt;FILESYSTEM_ONOLDLV&gt;&lt;BR /&gt;&lt;BR /&gt;and use #tar -xvf to restore back in the new lv.&lt;BR /&gt;&lt;BR /&gt;With Regards,&lt;BR /&gt;&lt;BR /&gt;Siva.&lt;/FILESYSTEM_ONOLDLV&gt;&lt;/TEMP_MOUNTPOINT&gt;&lt;/SOURCE&gt;</description>
      <pubDate>Tue, 31 Jan 2006 09:37:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-filesystem-to-an-seperate-lv/m-p/3721065#M252799</guid>
      <dc:creator>Sivakumar TS</dc:creator>
      <dc:date>2006-01-31T09:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a filesystem to an seperate LV.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-filesystem-to-an-seperate-lv/m-p/3721066#M252800</link>
      <description>Mitchell,&lt;BR /&gt;&lt;BR /&gt;Use CP or CPIO for doing that.&lt;BR /&gt;&lt;BR /&gt;Also note, /var has few mounted file systems like /var/adm/crash etc, so if you do a find use -nodepth option.&lt;BR /&gt;&lt;BR /&gt;Finally note that /var is required by system, so ensure that it is also mirrored to resolve a Single point failure.&lt;BR /&gt;&lt;BR /&gt;Chan</description>
      <pubDate>Tue, 31 Jan 2006 09:58:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-filesystem-to-an-seperate-lv/m-p/3721066#M252800</guid>
      <dc:creator>Chan 007</dc:creator>
      <dc:date>2006-01-31T09:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a filesystem to an seperate LV.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-filesystem-to-an-seperate-lv/m-p/3721067#M252801</link>
      <description>Likely you're running 11.0 and above, so - the cleanest would be:&lt;BR /&gt;&lt;BR /&gt;vxdump 0f - /var|(cd /destfs;vxrestore rf -)&lt;BR /&gt;&lt;BR /&gt;Others:&lt;BR /&gt;&lt;BR /&gt;CPIO:&lt;BR /&gt;&lt;BR /&gt;cd /var;find ./ -depth -print|cpio -pdvmu /destdir&lt;BR /&gt;&lt;BR /&gt;DD: Fastest (assuming destination LV is sized exactly as source - do prefrably in single user mode):&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/vg00/rlvolX bs=4096 of=/dev/vgXX/rlvolX&lt;BR /&gt;&lt;BR /&gt;(where rlvolX is the raw LVOL name of your /var if you use regular LV names, rvar if using named LVOLS.  Destivation LVOL should not be mounted. Also, fsck the destination LVOL after the dd is done.)&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Jan 2006 10:00:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-filesystem-to-an-seperate-lv/m-p/3721067#M252801</guid>
      <dc:creator>Alzhy</dc:creator>
      <dc:date>2006-01-31T10:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a filesystem to an seperate LV.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-filesystem-to-an-seperate-lv/m-p/3721068#M252802</link>
      <description>Mitchell,&lt;BR /&gt;&lt;BR /&gt;/var is a system area and why do you want to move data to another file system instead of extending the file system online.&lt;BR /&gt;&lt;BR /&gt;If you must, you may have to be on single user level for some directory. can we know the specific directory you plan to move.</description>
      <pubDate>Tue, 31 Jan 2006 10:12:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-filesystem-to-an-seperate-lv/m-p/3721068#M252802</guid>
      <dc:creator>Lolupee</dc:creator>
      <dc:date>2006-01-31T10:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a filesystem to an seperate LV.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-filesystem-to-an-seperate-lv/m-p/3721069#M252803</link>
      <description>Mitchell,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Use tar in a pipeline to copy the entire file system hierarchy under fromdir to todir:&lt;BR /&gt;&lt;BR /&gt;cd fromdir ; tar cf - . | ( cd todir ; tar xf - )&lt;BR /&gt;&lt;BR /&gt;This works fine, from my personel experience.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;&lt;BR /&gt;Ajit</description>
      <pubDate>Tue, 31 Jan 2006 10:14:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-filesystem-to-an-seperate-lv/m-p/3721069#M252803</guid>
      <dc:creator>Ajitkumar Rane</dc:creator>
      <dc:date>2006-01-31T10:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a filesystem to an seperate LV.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-filesystem-to-an-seperate-lv/m-p/3721070#M252804</link>
      <description>The cp command is an extremely poor choice for this. The data will be moved w/o problem but the metadata (those little things like file mode, owner, group, Xtime) will not be fully preserved even with cp -p. Use tar, cpio, or fbackup to preserve the metadata. &lt;BR /&gt;&lt;BR /&gt;Moreover, generally the entire /var filesystem is not moved but rather directories beneath var are given their own mountpoints (e.g. /var/spool, /var/mail, /var/tmp, /var/adm/sw, /var/opt/omni --- depending upon your applications and needs). It's so easy to fill up /var/spool that it is an extremely good candidate for its own filesystem. Fill up /var/spool is really no big deal -- lp may break but filling up /var can kill your entire system.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Jan 2006 10:18:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-filesystem-to-an-seperate-lv/m-p/3721070#M252804</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-01-31T10:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a filesystem to an seperate LV.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-filesystem-to-an-seperate-lv/m-p/3721071#M252805</link>
      <description>Mitchell,&lt;BR /&gt;&lt;BR /&gt;brief steps if you must mv directory.&lt;BR /&gt;make new file systems and mount on junk&lt;BR /&gt;&lt;BR /&gt;mkdir /tmp/junk_new&lt;BR /&gt;mount /dev/vg00/lvol?? /tmp/junk_new&lt;BR /&gt;&lt;BR /&gt;Move to your source files &lt;BR /&gt;&lt;BR /&gt;cd /var/junk_old&lt;BR /&gt; &lt;BR /&gt;tar cvf - *|(cd /tmp/junk_new; tar xvf -)&lt;BR /&gt;&lt;BR /&gt;above would tar the files from /var/junk_old and dump them on /tmp/junk_new&lt;BR /&gt;&lt;BR /&gt;after confirming the files are the same, then follow the next step&lt;BR /&gt;&lt;BR /&gt;Hopefully, the files system or files you plan to move are those that could be moved withput an outage.&lt;BR /&gt;&lt;BR /&gt;If the directory is a file system, try to mount, if it does then  you may be ok. If not you might need to be on  single user level before you can do that or maintenance level.&lt;BR /&gt;&lt;BR /&gt;If it is a dirctory, if it is in use it could be difficult to mount on. &lt;BR /&gt;&lt;BR /&gt;Let us knowthe directory in question.&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Jan 2006 10:26:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-filesystem-to-an-seperate-lv/m-p/3721071#M252805</guid>
      <dc:creator>Lolupee</dc:creator>
      <dc:date>2006-01-31T10:26:43Z</dc:date>
    </item>
  </channel>
</rss>

