<?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: raw device and raw data in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-and-raw-data/m-p/2748416#M642945</link>
    <description>The above stuff is great.  I'm just wondering why you might want to know.  I expect that there are two reasons&lt;BR /&gt;&lt;BR /&gt;a) Database uses raw stuff (covered above)&lt;BR /&gt;b) people may have suggested a raw copy of a "cooked" filesystem. (not covered)&lt;BR /&gt;&lt;BR /&gt;It may seem ironic but you can copy the raw devices of cooked filesystems to speed things up.  I usually do this for upgrades.&lt;BR /&gt;&lt;BR /&gt;e.g /dev/vg00/lvol4 is mounted on /home&lt;BR /&gt;&lt;BR /&gt;If I want to get a copy of this I could make a new filesystem &amp;amp; copy one to the other OR the super quick way&lt;BR /&gt;&lt;BR /&gt;lvcreate -L &lt;SIZE_MB&gt; -n newhome vgnew&lt;BR /&gt;dd if=/dev/vg00/rlvol4 bs=64k of=/dev/vgnew/rnewhome&lt;BR /&gt;mkdir /newhome&lt;BR /&gt;mount /dev/newhome /newhome&lt;BR /&gt;&lt;BR /&gt;bs==Blocksize&lt;BR /&gt;Note the rlvol4 &amp;amp; rnewhome (Raw lvols)&lt;BR /&gt;&lt;BR /&gt;obviously the two lvols will need to be the same size but it by-passes the "front-end" (to borrow an above phrase) so speeds things up considerably.&lt;BR /&gt;&lt;BR /&gt;after the dd you can mount the new lvol, again bypassing newfs etc, so&lt;BR /&gt;&lt;BR /&gt;Tim&lt;BR /&gt;&lt;BR /&gt;&lt;/SIZE_MB&gt;</description>
    <pubDate>Thu, 20 Jun 2002 03:46:26 GMT</pubDate>
    <dc:creator>Tim D Fulford</dc:creator>
    <dc:date>2002-06-20T03:46:26Z</dc:date>
    <item>
      <title>raw device and raw data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-and-raw-data/m-p/2748412#M642941</link>
      <description>Hi,everyone!!&lt;BR /&gt;&lt;BR /&gt;I know that usally used in database.&lt;BR /&gt;could you tell me what's means raw device and raw data?&lt;BR /&gt;&lt;BR /&gt;thanks~</description>
      <pubDate>Thu, 20 Jun 2002 00:25:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-and-raw-data/m-p/2748412#M642941</guid>
      <dc:creator>KCS_1</dc:creator>
      <dc:date>2002-06-20T00:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: raw device and raw data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-and-raw-data/m-p/2748413#M642942</link>
      <description>A raw device, like those typically used by databases is a disk that does not have a file system on it. The databases typically use the "character" device to read and write what they want anywhere on the disk.&lt;BR /&gt;&lt;BR /&gt;Raw data is data that is or isn't necessarily human readable. For instance a program.&lt;BR /&gt;&lt;BR /&gt;live free or die</description>
      <pubDate>Thu, 20 Jun 2002 00:36:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-and-raw-data/m-p/2748413#M642942</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-06-20T00:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: raw device and raw data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-and-raw-data/m-p/2748414#M642943</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The term 'raw' is used because you can't actually see the data through standard tools, like 'ls' etc. You need a front-end database to view/modify the data etc&lt;BR /&gt;&lt;BR /&gt;The term 'cooked' means that the logical volume&lt;BR /&gt;that has been created is mounted with a filesystem.&lt;BR /&gt;&lt;BR /&gt;The 'raw' partition or logical volume(s) are used traditionally by databases so that they by-pass any filesystem overhead and contention. You will see that each and every database will have a different recommendation, informix leaning toward raw and oracle toward filesystem. Also note that these same vendors change their recommendation frequently. Below is a fairly good discussion on raw v's cooked performance.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xb51a8ffa98a2d5118ff10090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xb51a8ffa98a2d5118ff10090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;~Michael~</description>
      <pubDate>Thu, 20 Jun 2002 00:36:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-and-raw-data/m-p/2748414#M642943</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-06-20T00:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: raw device and raw data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-and-raw-data/m-p/2748415#M642944</link>
      <description>Patrick&lt;BR /&gt;&lt;BR /&gt;A raw device is also interpreted as a character device. I/O to the devices is performed one character at a time. &lt;BR /&gt;&lt;BR /&gt;This is how I understand it &lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 20 Jun 2002 00:43:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-and-raw-data/m-p/2748415#M642944</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-06-20T00:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: raw device and raw data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-and-raw-data/m-p/2748416#M642945</link>
      <description>The above stuff is great.  I'm just wondering why you might want to know.  I expect that there are two reasons&lt;BR /&gt;&lt;BR /&gt;a) Database uses raw stuff (covered above)&lt;BR /&gt;b) people may have suggested a raw copy of a "cooked" filesystem. (not covered)&lt;BR /&gt;&lt;BR /&gt;It may seem ironic but you can copy the raw devices of cooked filesystems to speed things up.  I usually do this for upgrades.&lt;BR /&gt;&lt;BR /&gt;e.g /dev/vg00/lvol4 is mounted on /home&lt;BR /&gt;&lt;BR /&gt;If I want to get a copy of this I could make a new filesystem &amp;amp; copy one to the other OR the super quick way&lt;BR /&gt;&lt;BR /&gt;lvcreate -L &lt;SIZE_MB&gt; -n newhome vgnew&lt;BR /&gt;dd if=/dev/vg00/rlvol4 bs=64k of=/dev/vgnew/rnewhome&lt;BR /&gt;mkdir /newhome&lt;BR /&gt;mount /dev/newhome /newhome&lt;BR /&gt;&lt;BR /&gt;bs==Blocksize&lt;BR /&gt;Note the rlvol4 &amp;amp; rnewhome (Raw lvols)&lt;BR /&gt;&lt;BR /&gt;obviously the two lvols will need to be the same size but it by-passes the "front-end" (to borrow an above phrase) so speeds things up considerably.&lt;BR /&gt;&lt;BR /&gt;after the dd you can mount the new lvol, again bypassing newfs etc, so&lt;BR /&gt;&lt;BR /&gt;Tim&lt;BR /&gt;&lt;BR /&gt;&lt;/SIZE_MB&gt;</description>
      <pubDate>Thu, 20 Jun 2002 03:46:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-and-raw-data/m-p/2748416#M642945</guid>
      <dc:creator>Tim D Fulford</dc:creator>
      <dc:date>2002-06-20T03:46:26Z</dc:date>
    </item>
  </channel>
</rss>

