<?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 Create a directory as separate file system in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/create-a-directory-as-separate-file-system/m-p/2752248#M643105</link>
    <description>I have /oracle mounted under / file system. To overcome increasing size of / file system, I want to create /oracle as a separate file without missing any datas on it. What is the best way to do this? Anyone can help me on this. Thanks alot in advance. &lt;BR /&gt;&lt;BR /&gt;[root@dev:/oracle]&lt;BR /&gt;# ll&lt;BR /&gt;total 48&lt;BR /&gt;drwxr-xr-x   5 oraa5p     dba           8192 Jun 20 14:29 A5P&lt;BR /&gt;drwxr-xr-x   5 oraa6p     dba           8192 Jun 20 14:02 A6P&lt;BR /&gt;drwxr-xr-x   5 oraa7p     dba           8192 Jun 21 15:35 A7P&lt;BR /&gt;&lt;BR /&gt;[root@dev:/oracle]&lt;BR /&gt;# bdf .&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg00/lv_root   819200  312840  502432   38% /&lt;BR /&gt;&lt;BR /&gt;[root@dev:/oracle]&lt;BR /&gt;# ll&lt;BR /&gt;total 48&lt;BR /&gt;drwxr-xr-x   5 oraa5p     dba           8192 Jun 20 14:29 A5P&lt;BR /&gt;drwxr-xr-x   5 oraa6p     dba           8192 Jun 20 14:02 A6P&lt;BR /&gt;drwxr-xr-x   5 oraa7p     dba           8192 Jun 21 15:35 A7P&lt;BR /&gt;</description>
    <pubDate>Wed, 26 Jun 2002 06:11:11 GMT</pubDate>
    <dc:creator>Dewa Negara_1</dc:creator>
    <dc:date>2002-06-26T06:11:11Z</dc:date>
    <item>
      <title>Create a directory as separate file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-a-directory-as-separate-file-system/m-p/2752248#M643105</link>
      <description>I have /oracle mounted under / file system. To overcome increasing size of / file system, I want to create /oracle as a separate file without missing any datas on it. What is the best way to do this? Anyone can help me on this. Thanks alot in advance. &lt;BR /&gt;&lt;BR /&gt;[root@dev:/oracle]&lt;BR /&gt;# ll&lt;BR /&gt;total 48&lt;BR /&gt;drwxr-xr-x   5 oraa5p     dba           8192 Jun 20 14:29 A5P&lt;BR /&gt;drwxr-xr-x   5 oraa6p     dba           8192 Jun 20 14:02 A6P&lt;BR /&gt;drwxr-xr-x   5 oraa7p     dba           8192 Jun 21 15:35 A7P&lt;BR /&gt;&lt;BR /&gt;[root@dev:/oracle]&lt;BR /&gt;# bdf .&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg00/lv_root   819200  312840  502432   38% /&lt;BR /&gt;&lt;BR /&gt;[root@dev:/oracle]&lt;BR /&gt;# ll&lt;BR /&gt;total 48&lt;BR /&gt;drwxr-xr-x   5 oraa5p     dba           8192 Jun 20 14:29 A5P&lt;BR /&gt;drwxr-xr-x   5 oraa6p     dba           8192 Jun 20 14:02 A6P&lt;BR /&gt;drwxr-xr-x   5 oraa7p     dba           8192 Jun 21 15:35 A7P&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Jun 2002 06:11:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-a-directory-as-separate-file-system/m-p/2752248#M643105</guid>
      <dc:creator>Dewa Negara_1</dc:creator>
      <dc:date>2002-06-26T06:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create a directory as separate file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-a-directory-as-separate-file-system/m-p/2752249#M643106</link>
      <description>So sorry I was wrong type. I mean I want to create /oracle as a separate file system. Thanks alot.</description>
      <pubDate>Wed, 26 Jun 2002 06:13:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-a-directory-as-separate-file-system/m-p/2752249#M643106</guid>
      <dc:creator>Dewa Negara_1</dc:creator>
      <dc:date>2002-06-26T06:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create a directory as separate file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-a-directory-as-separate-file-system/m-p/2752250#M643107</link>
      <description>Hi Dewa,&lt;BR /&gt;&lt;BR /&gt;you could use SAM for this:&lt;BR /&gt;&lt;BR /&gt;--&amp;gt; disks and file systems&lt;BR /&gt;--&amp;gt; logical volumes&lt;BR /&gt;--&amp;gt; Actions menu, add (create)&lt;BR /&gt;--&amp;gt; select volume group&lt;BR /&gt;--&amp;gt; specify size, file system type, file system options (enable large files option!, give your mount point ( /oracle )&lt;BR /&gt;&lt;BR /&gt;Everything else will be done by sam, he will create a logical volume, a mount point, a file system in the volume, an entry in /etc/fstab and he will mount the new file system.&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Jun 2002 06:26:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-a-directory-as-separate-file-system/m-p/2752250#M643107</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-06-26T06:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create a directory as separate file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-a-directory-as-separate-file-system/m-p/2752251#M643108</link>
      <description>1. Create a new LV in a VG where you have still free PEs, or create a new VG if you have a new disk, and create an LV in this new LV (see man pvcreate, vgcreate, lvcreate)&lt;BR /&gt;&lt;BR /&gt;2. Create a new filesystem on the raw (character) device of the newly created LV (see man newfs)&lt;BR /&gt;&lt;BR /&gt;3. Bring down your Oracle DB (this is needed for transfer of data into new filesystem)&lt;BR /&gt;&lt;BR /&gt;4. Temporarily mount new LV on any mountpoint (e.g. /cdrom)&lt;BR /&gt;&lt;BR /&gt;5. When DB is down and has no open files in use, copy data to new filesystem&lt;BR /&gt;(e.g. assume mountpoint /cdrom:&lt;BR /&gt;cd /oracle&lt;BR /&gt;tar cf - . | (cd /cdrom; tar xpf -)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;6. check that all data has been transferred &lt;BR /&gt;(e.g.   bdf -i /cdrom /oracle)&lt;BR /&gt;look number of used inodes and size&lt;BR /&gt;&lt;BR /&gt;7. Edit your /etc/fstab&lt;BR /&gt;and add line for new mount point of new LV&lt;BR /&gt;&lt;BR /&gt;8. mount -a&lt;BR /&gt;&lt;BR /&gt;9. Start DB, and run dbverify or run other checks&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Jun 2002 06:28:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-a-directory-as-separate-file-system/m-p/2752251#M643108</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2002-06-26T06:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create a directory as separate file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-a-directory-as-separate-file-system/m-p/2752252#M643109</link>
      <description>&lt;BR /&gt;sure, easy. Use lvcreate to create new lvol to the size you want;&lt;BR /&gt;&lt;BR /&gt;lvcreate -L &lt;SIZE in="" mb=""&gt; vg00&lt;BR /&gt;newfs -F vxfs -o largefiles /dev/vg00/r&lt;NEWLVOL&gt;&lt;BR /&gt;&lt;BR /&gt;Add it to the /etc/fstab file&lt;BR /&gt;/dev/vg00/&lt;NEWLVOL&gt; /oracle vxfs delaylog 0 2&lt;BR /&gt;&lt;BR /&gt;Temporarily mount it so you can copy all the current oracle stuff off to it;&lt;BR /&gt;&lt;BR /&gt;mount /dev/vg00/&lt;NEWLVOL&gt; /tmp_mnt&lt;BR /&gt;cd /oracle&lt;BR /&gt;(you may need to ensure all your oracle dbs and listeners are down before doing the copy)&lt;BR /&gt;find . | cpio -pdmuxvl /tmp_mnt&lt;BR /&gt;&lt;BR /&gt;now youve copied all your oracle stuff to your new lvol. Now you want to mount it as /oracle;&lt;BR /&gt;&lt;BR /&gt;umount /tmp_mnt&lt;BR /&gt;mv /oracle /oracle.old&lt;BR /&gt;mkdir /oracle&lt;BR /&gt;chown oracle:dba /oracle&lt;BR /&gt;chmod 755 /oracle&lt;BR /&gt;mount -a (this will mount your new lvol to /oracle)&lt;BR /&gt;&lt;BR /&gt;If everything now works aok you can remove the /oracle.old dir. The bdf command will show you its mounted.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/NEWLVOL&gt;&lt;/NEWLVOL&gt;&lt;/NEWLVOL&gt;&lt;/SIZE&gt;</description>
      <pubDate>Wed, 26 Jun 2002 06:29:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-a-directory-as-separate-file-system/m-p/2752252#M643109</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-06-26T06:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create a directory as separate file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-a-directory-as-separate-file-system/m-p/2752253#M643110</link>
      <description>Thanks alot for the information. Stefan, I have followed your steps. But after moving content of directory /oracle to /tmp/oracle (temporary mount point) using cpio, I got different size. Has all content of /oracle been moved to the /tmp/oracle? thanks. &lt;BR /&gt;&lt;BR /&gt;[root@dev:/tmp/oracle]&lt;BR /&gt;# bdf .&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg_apps/lv_oracle&lt;BR /&gt;                    462848  232560  215899   52% /tmp/oracle&lt;BR /&gt;&lt;BR /&gt;[root@dev:/tmp/oracle]&lt;BR /&gt;# cd /oracle&lt;BR /&gt;&lt;BR /&gt;[root@dev:/oracle]&lt;BR /&gt;# ll&lt;BR /&gt;total 48&lt;BR /&gt;drwxr-xr-x   5 oraa5p     dba           8192 Jun 20 14:29 A5P&lt;BR /&gt;drwxr-xr-x   5 oraa6p     dba           8192 Jun 20 14:02 A6P&lt;BR /&gt;drwxr-xr-x   5 oraa7p     dba           8192 Jun 21 15:35 A7P&lt;BR /&gt;&lt;BR /&gt;[root@dev:/oracle]&lt;BR /&gt;# du -sk * A5P&lt;BR /&gt;87536   A5P&lt;BR /&gt;87528   A6P&lt;BR /&gt;87528   A7P&lt;BR /&gt;87536   A5P&lt;BR /&gt;&lt;BR /&gt;[root@dev:/oracle]&lt;BR /&gt;# cd -&lt;BR /&gt;/tmp/oracle&lt;BR /&gt;&lt;BR /&gt;[root@dev:/tmp/oracle]&lt;BR /&gt;# du -sk *&lt;BR /&gt;76447   A5P&lt;BR /&gt;76446   A6P&lt;BR /&gt;76446   A7P</description>
      <pubDate>Wed, 26 Jun 2002 07:31:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-a-directory-as-separate-file-system/m-p/2752253#M643110</guid>
      <dc:creator>Dewa Negara_1</dc:creator>
      <dc:date>2002-06-26T07:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create a directory as separate file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-a-directory-as-separate-file-system/m-p/2752254#M643111</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;The size reduction you see after copying your files to the new filesystem is often seen.  I've used the procedure Stefan suggested many times.&lt;BR /&gt;&lt;BR /&gt;As files are added to directories, the space required for inodes increases.  If files are deleted, however, the space isn't recovered.  When you recreate the directory, no extra space is needed and the result is a smaller directory.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 26 Jun 2002 09:01:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-a-directory-as-separate-file-system/m-p/2752254#M643111</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-06-26T09:01:40Z</dc:date>
    </item>
  </channel>
</rss>

