<?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 Making a raw log file? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/making-a-raw-log-file/m-p/3882007#M280109</link>
    <description>My database suggests using a raw log file.  The installation procedure set up two log files of 367MB, and the documantation says you can change them to raw files. But right after that, it says "just go ahead and create the raw devices - see your OS documentation".&lt;BR /&gt;&lt;BR /&gt;The two created files are obviously mounted, and raw files don't seem to get mounted.&lt;BR /&gt;&lt;BR /&gt;How do I create the raw device files?  I have locations where they'll go (/dev/dsk/cNtNdN - or maybe rcNtNdN?).&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 17 Oct 2006 19:49:14 GMT</pubDate>
    <dc:creator>Michael D. Zorn</dc:creator>
    <dc:date>2006-10-17T19:49:14Z</dc:date>
    <item>
      <title>Making a raw log file?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/making-a-raw-log-file/m-p/3882007#M280109</link>
      <description>My database suggests using a raw log file.  The installation procedure set up two log files of 367MB, and the documantation says you can change them to raw files. But right after that, it says "just go ahead and create the raw devices - see your OS documentation".&lt;BR /&gt;&lt;BR /&gt;The two created files are obviously mounted, and raw files don't seem to get mounted.&lt;BR /&gt;&lt;BR /&gt;How do I create the raw device files?  I have locations where they'll go (/dev/dsk/cNtNdN - or maybe rcNtNdN?).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Oct 2006 19:49:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/making-a-raw-log-file/m-p/3882007#M280109</guid>
      <dc:creator>Michael D. Zorn</dc:creator>
      <dc:date>2006-10-17T19:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Making a raw log file?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/making-a-raw-log-file/m-p/3882008#M280110</link>
      <description>As a general rule, one does not use the raw disk device directly but rather a raw logical volume. That will allow one to mirror (if desired) and the extra overhead of the logical to physical disk translation is all but zero. Moreover, unlike actual disks, it is very easy to resize LVOL's.&lt;BR /&gt;&lt;BR /&gt;You don't mention your database but the procedure is essentially the same.&lt;BR /&gt;&lt;BR /&gt;Shutdown the database.&lt;BR /&gt;&lt;BR /&gt;Create an additional LVOL using lvcreate and make sure that it is at least as large as your current cooked file. Use lvextebd to mirror it, if you like so that a disk failure will not cause a database failure.&lt;BR /&gt;&lt;BR /&gt;Now copy your cooked file to the raw lvol. Let's pretend that your cooked file is /xxx/yyy/mydb.log and your new raw lvol is /dev/vg10/rlvol1&lt;BR /&gt;&lt;BR /&gt;dd if=/xxx/yyy/mydb.log of=/dev/vg10/rlvol1 bs=256k&lt;BR /&gt;&lt;BR /&gt;Next, do an ls -l /xxx/yyy/mydb.log and note the owner, group, and mode (permissions) of the file and do a chown and chmod /dev/vg10/rlvol1 to match those of the cooked file.&lt;BR /&gt;&lt;BR /&gt;Now, we need to create a symbolic link because the database doesn't know about the raw LVOL (the symbolic link also serves as documentation so that one is somewhat less likely to overwrite what someone might mistake for an unused LVOL):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;mv /xxx/yyy/mydb.log /xxx/yyy/mydb.log.save # just in case&lt;BR /&gt;&lt;BR /&gt;ln -s /dev/vg10/rlvol1 /xxx/yyy/mydb.log&lt;BR /&gt;&lt;BR /&gt;Start your database.&lt;BR /&gt;&lt;BR /&gt;After you confirm that all is well, you can remove the original cooked files which has been renamed /xxx/yyy/mydb.log.save.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Oct 2006 20:07:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/making-a-raw-log-file/m-p/3882008#M280110</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-10-17T20:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Making a raw log file?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/making-a-raw-log-file/m-p/3882009#M280111</link>
      <description>Hi Michael,&lt;BR /&gt;&lt;BR /&gt;The "raw" files are created with you use de "lvcreate" command.&lt;BR /&gt;&lt;BR /&gt;Umount /dev/vgxx/lvyyy and use /dev/vgxx/rlvyyy&lt;BR /&gt;&lt;BR /&gt;Create new controlfiles for use this devices.&lt;BR /&gt;&lt;BR /&gt;Verify permission for raw devices. Sample:&lt;BR /&gt;&lt;BR /&gt;crw-r-----   1 oracle     dba         64 0x76000e Oct 18 01:01 /dev/vgxx/lvyyy&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;rgs&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Oct 2006 02:52:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/making-a-raw-log-file/m-p/3882009#M280111</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2006-10-18T02:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Making a raw log file?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/making-a-raw-log-file/m-p/3882010#M280112</link>
      <description>Indeed raw files don't get mounted.&lt;BR /&gt;(Socalled cooked files do.)&lt;BR /&gt;&lt;BR /&gt;You create the raw filesystem with &lt;BR /&gt;mknod , just like logical volume.&lt;BR /&gt;&lt;BR /&gt;You need to specify in your db this path&lt;BR /&gt;as the location of your log.&lt;BR /&gt;&lt;BR /&gt;The advantage is that even when you&lt;BR /&gt;inadvertently delete the raw device,&lt;BR /&gt;i.e. the logical volume, you will not&lt;BR /&gt;lose your data.&lt;BR /&gt;&lt;BR /&gt;The device is just a pointer to a location on the disk. So you can just re-make your device with mknod. You need however need to document the major and minor number to be sure what is what.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Oct 2006 03:28:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/making-a-raw-log-file/m-p/3882010#M280112</guid>
      <dc:creator>Frank de Vries</dc:creator>
      <dc:date>2006-10-18T03:28:26Z</dc:date>
    </item>
  </channel>
</rss>

