<?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 Disk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882146#M280127</link>
    <description>Hi Dirk&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. &lt;BR /&gt;&lt;BR /&gt;So indeed raw files don't get mounted.&lt;BR /&gt;(So called 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;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;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 09:13:32 GMT</pubDate>
    <dc:creator>Frank de Vries</dc:creator>
    <dc:date>2006-10-18T09:13:32Z</dc:date>
    <item>
      <title>Raw Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882140#M280121</link>
      <description>Hi, being new to HP-UX, I am trying to understand how the raw disk was created on our client's server.&lt;BR /&gt;&lt;BR /&gt;The devices being used are /dev/vg??.&lt;BR /&gt;&lt;BR /&gt;Any information would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;Dirk</description>
      <pubDate>Wed, 18 Oct 2006 03:28:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882140#M280121</guid>
      <dc:creator>Dirk Moolman</dc:creator>
      <dc:date>2006-10-18T03:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Raw Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882141#M280122</link>
      <description>All disk devices have two methods of access:  raw and "cooked".  When the device files are created, there are two versions created:  /dev/vg??/lvol?? and /dev/vg??/rlvol?? (or /dev/dsk/c?t?d? and /dev/rdsk/c?t?d? for non-lvm).  The only difference between the two is that the raw (rlvol??) device file bypasses the system's buffer cache.  This is typically used for databases, where the DB itself does the buffering.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 18 Oct 2006 05:04:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882141#M280122</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2006-10-18T05:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Raw Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882142#M280123</link>
      <description>Thank you - another question if you don't mind:  How are these raw volumes created ?  &lt;BR /&gt;&lt;BR /&gt;On Solaris I use the format utility.&lt;BR /&gt;What is the utility on HP-UX for creating the /dev/vg??/lvol?  volumes ?&lt;BR /&gt;The client is on HP-UX 10.20</description>
      <pubDate>Wed, 18 Oct 2006 05:51:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882142#M280123</guid>
      <dc:creator>Dirk Moolman</dc:creator>
      <dc:date>2006-10-18T05:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Raw Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882143#M280124</link>
      <description>pvcreate - create physical volume for use in LVM volume group&lt;BR /&gt;&lt;BR /&gt;vgcreate - create LVM volume group&lt;BR /&gt;&lt;BR /&gt;lvcreate - create logical volume in LVM volume group&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 18 Oct 2006 06:00:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882143#M280124</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2006-10-18T06:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Raw Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882144#M280125</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;mediainit - if you want to low level format your hard disk&lt;BR /&gt;&lt;BR /&gt;pvcreate - Create a physical volume&lt;BR /&gt;&lt;BR /&gt;create a directory and group file&lt;BR /&gt;mkdir /dev/vg?&lt;BR /&gt;&lt;BR /&gt;mknod /dev/vg?/group c 64 0x??00&lt;BR /&gt;&lt;BR /&gt;vgcreate - Create a volume group&lt;BR /&gt;&lt;BR /&gt;lvcreate - Create a logical volume&lt;BR /&gt;&lt;BR /&gt;Then if you want to create a filesystem you can use newfs command&lt;BR /&gt;&lt;BR /&gt;for more info see the man pages of above commands.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Oct 2006 06:14:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882144#M280125</guid>
      <dc:creator>Gurumanickam</dc:creator>
      <dc:date>2006-10-18T06:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Raw Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882145#M280126</link>
      <description>Lvcreate is enough to effect the creation of lvol with the command, e to change the permission for the application that anger to use raw device.</description>
      <pubDate>Wed, 18 Oct 2006 07:44:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882145#M280126</guid>
      <dc:creator>Calandrello</dc:creator>
      <dc:date>2006-10-18T07:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Raw Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882146#M280127</link>
      <description>Hi Dirk&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. &lt;BR /&gt;&lt;BR /&gt;So indeed raw files don't get mounted.&lt;BR /&gt;(So called 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;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;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 09:13:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882146#M280127</guid>
      <dc:creator>Frank de Vries</dc:creator>
      <dc:date>2006-10-18T09:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Raw Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882147#M280128</link>
      <description>In /dev I can see a list of volume groups (vg01, vg02, etc.)  Some of them are empty (contain no logical volumes).&lt;BR /&gt;&lt;BR /&gt;If I use the lvcreate command, will it grab any available space in the volume group I specify, or do I need to be more specific ?&lt;BR /&gt;&lt;BR /&gt;Also, which command will display the current vg/lv layout as it is ?</description>
      <pubDate>Wed, 18 Oct 2006 09:36:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882147#M280128</guid>
      <dc:creator>Dirk Moolman</dc:creator>
      <dc:date>2006-10-18T09:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Raw Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882148#M280129</link>
      <description>I found the vgdisplay command (in /usr/sbin), and will try to get some information out of the system using this command.</description>
      <pubDate>Thu, 19 Oct 2006 06:40:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882148#M280129</guid>
      <dc:creator>Dirk Moolman</dc:creator>
      <dc:date>2006-10-19T06:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Raw Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882149#M280130</link>
      <description>&lt;!--!*#--&gt;vgdisplay on those volume groups (VGs) will show you how many unused physical extents (PEs) are available.&lt;BR /&gt;These PEs multiplied by the PE size (which was specified or the default taken on VG creation) will theoretically yield how many MBs you can use for new logical volumes (LVs).&lt;BR /&gt;Theoretically, because it depends on other parameters such as allocation policy etc.&lt;BR /&gt;&lt;BR /&gt;e.g. &lt;BR /&gt; &lt;BR /&gt;# vgdisplay vgSPI|grep -E 'Free PE|PE Size'&lt;BR /&gt;PE Size (Mbytes)            16              &lt;BR /&gt;Free PE                     903  &lt;BR /&gt; &lt;BR /&gt;# echo $((16*903))&lt;BR /&gt;14448&lt;BR /&gt; &lt;BR /&gt;An LV is build up from logical extents (LEs)&lt;BR /&gt;which is an abstraction layer (similar to plexes) where at least sizewise 1 LE = 1 PE.&lt;BR /&gt;The actual mapping is done behind the scenes by the logical volume manager (LVM)&lt;BR /&gt; &lt;BR /&gt;You can now simply precede to create a new LW&lt;BR /&gt; &lt;BR /&gt;e.g.&lt;BR /&gt;  &lt;BR /&gt;# lvcreate -l 4 -n my_1st_lv vgSPI&lt;BR /&gt;Logical volume "/dev/vgSPI/my_1st_lv" has been successfully created with&lt;BR /&gt;character device "/dev/vgSPI/rmy_1st_lv".&lt;BR /&gt;Logical volume "/dev/vgSPI/my_1st_lv" has been successfully extended.&lt;BR /&gt;Volume Group configuration for /dev/vgSPI has been saved in /etc/lvmconf/vgSPI.conf&lt;BR /&gt; &lt;BR /&gt;# lvdisplay /dev/vgSPI/my_1st_lv &lt;BR /&gt;--- Logical volumes ---&lt;BR /&gt;LV Name                     /dev/vgSPI/my_1st_lv&lt;BR /&gt;VG Name                     /dev/vgSPI&lt;BR /&gt;LV Permission               read/write   &lt;BR /&gt;LV Status                   available/syncd           &lt;BR /&gt;Mirror copies               0            &lt;BR /&gt;Consistency Recovery        MWC                 &lt;BR /&gt;Schedule                    parallel     &lt;BR /&gt;LV Size (Mbytes)            64              &lt;BR /&gt;Current LE                  4         &lt;BR /&gt;Allocated PE                4           &lt;BR /&gt;Stripes                     0       &lt;BR /&gt;Stripe Size (Kbytes)        0                   &lt;BR /&gt;Bad block                   on           &lt;BR /&gt;Allocation                  strict                    &lt;BR /&gt;IO Timeout (Seconds)        default             &lt;BR /&gt;&lt;BR /&gt;   &lt;BR /&gt;You can use this LV consisting of 4 LEs which span 64 MB either directly in raw mode (what many databases do), or create a filesystem on it and mount it.&lt;BR /&gt;Note that you can also specify the length of the LV in MB by using -L (be careful not to mix up with -l)&lt;BR /&gt;&lt;BR /&gt;Destruction is as simple as&lt;BR /&gt;(note data on it will be inaccessible afterwards, raw or cooked)&lt;BR /&gt;The -f avoids the wary confirmatory question (good for scripts)&lt;BR /&gt; &lt;BR /&gt;# vgdisplay vgSPI|grep Free\ PE&lt;BR /&gt;Free PE                     899     &lt;BR /&gt; &lt;BR /&gt;# lvremove -f /dev/vgSPI/my_1st_lv &lt;BR /&gt;Current path "/dev/dsk/c15t0d0" is an alternate link, skip.&lt;BR /&gt;Current path "/dev/dsk/c15t0d1" is an alternate link, skip.&lt;BR /&gt;Logical volume "/dev/vgSPI/my_1st_lv" has been successfully removed.&lt;BR /&gt;Volume Group configuration for /dev/vgSPI has been saved in /etc/lvmconf/vgSPI.conf&lt;BR /&gt; &lt;BR /&gt;# vgdisplay vgSPI|grep Free\ PE   &lt;BR /&gt;Free PE                     903     &lt;BR /&gt; &lt;BR /&gt;# lvcreate -L 60 -n my_1st_lv vgSPI&lt;BR /&gt;Warning: rounding up logical volume size to extent boundary at size "64" MB.&lt;BR /&gt;Logical volume "/dev/vgSPI/my_1st_lv" has been successfully created with&lt;BR /&gt;character device "/dev/vgSPI/rmy_1st_lv".&lt;BR /&gt;Logical volume "/dev/vgSPI/my_1st_lv" has been successfully extended.&lt;BR /&gt;Volume Group configuration for /dev/vgSPI has been saved in /etc/lvmconf/vgSPI.conf&lt;BR /&gt; &lt;BR /&gt;# vgdisplay vgSPI|grep Free\ PE&lt;BR /&gt;Free PE                     899 &lt;BR /&gt; &lt;BR /&gt;Note, how LVM rounded up from 60 MB to 64 MB,&lt;BR /&gt;which is evenly divisable by this PE size of 16 MB.&lt;BR /&gt; &lt;BR /&gt;Now create a VxFS on it.&lt;BR /&gt;  &lt;BR /&gt;# newfs -F vxfs /dev/vgSPI/rmy_1st_lv &lt;BR /&gt;    version 4 layout&lt;BR /&gt;    65536 sectors, 65536 blocks of size 1024, log size 1024 blocks&lt;BR /&gt;    unlimited inodes, largefiles not supported&lt;BR /&gt;    65536 data blocks, 64432 free data blocks&lt;BR /&gt;    2 allocation units of 32768 blocks, 32768 data blocks&lt;BR /&gt;  &lt;BR /&gt;# fstyp -v /dev/vgSPI/rmy_1st_lv&lt;BR /&gt;vxfs&lt;BR /&gt;version: 4&lt;BR /&gt;f_bsize: 8192&lt;BR /&gt;f_frsize: 1024&lt;BR /&gt;f_blocks: 65536&lt;BR /&gt;f_bfree: 64419&lt;BR /&gt;f_bavail: 60393&lt;BR /&gt;f_files: 16136&lt;BR /&gt;f_ffree: 16104&lt;BR /&gt;f_favail: 16104&lt;BR /&gt;f_fsid: 1073872914&lt;BR /&gt;f_basetype: vxfs&lt;BR /&gt;f_namemax: 254&lt;BR /&gt;f_magic: a501fcf5&lt;BR /&gt;f_featurebits: 0&lt;BR /&gt;f_flag: 0&lt;BR /&gt;f_fsindex: 7&lt;BR /&gt;f_size: 65536&lt;BR /&gt;&lt;BR /&gt;    &lt;BR /&gt;and mount it somewhere&lt;BR /&gt;  &lt;BR /&gt;# mkdir -p /mnt/tmp1 &amp;amp;&amp;amp; mount /dev/vgSPI/my_1st_lv /mnt/tmp1&lt;BR /&gt; &lt;BR /&gt;# bdf /mnt/tmp1&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vgSPI/my_1st_lv&lt;BR /&gt;                     65536    1117   60400    2% /mnt/tmp1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Oct 2006 08:57:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882149#M280130</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2006-10-19T08:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Raw Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882150#M280131</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I dont wish to be rude here, but you really should be careful when fiddling with logical volumes.  LVM itself is not greatly different to other volume managers (I forget the Sun one) VxVM etc.  Try doing "man lvm" for some of the basics of lvm.  You just dont want to dig youself into a hole, and have to justify an outage to correct it (I've been there)&lt;BR /&gt;&lt;BR /&gt;OK.  to create a LV (logica volume) you use lvcreate.  Whilst it is possible to do the below..&lt;BR /&gt;lvcreate [-n &lt;LV_NAME&gt;] -L &lt;SIZE_MB&gt; &lt;VOLUME_GROUP&gt;&lt;BR /&gt;&lt;BR /&gt;You can also use various options to stripe or mirror the LV over PV (physical volumes).  This should be some form of administrators policy, so if you dont know, you might need to ask.  Herein lies the problem.  If the admin policy is to use mirrored extent stripe, and you craete unmirrored unstriped LV, then you can be faced with an outage to correct this...  I'm just saying be careful...&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Tim&lt;/VOLUME_GROUP&gt;&lt;/SIZE_MB&gt;&lt;/LV_NAME&gt;</description>
      <pubDate>Thu, 19 Oct 2006 09:17:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882150#M280131</guid>
      <dc:creator>Tim D Fulford</dc:creator>
      <dc:date>2006-10-19T09:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Raw Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882151#M280132</link>
      <description>As you assign points, please keep in mind the scale that applies: &lt;BR /&gt;&lt;BR /&gt;N/A: The answer was simply a point of clarification to my original question &lt;BR /&gt;&lt;BR /&gt;1-3: The answer didn't really help answer my question but thanks for your assistance! &lt;BR /&gt;&lt;BR /&gt;4-7: The answer helped with a portion of my question, but I still need some additional help. &lt;BR /&gt;&lt;BR /&gt;8-10: The answer has solved my problem completely! Now I'm a happy camper! &lt;BR /&gt;&lt;BR /&gt;If you have questions about the Points System, please look for more information in the Support Forums FAQs.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Nov 2006 05:35:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-disk/m-p/3882151#M280132</guid>
      <dc:creator>Frank de Vries</dc:creator>
      <dc:date>2006-11-06T05:35:20Z</dc:date>
    </item>
  </channel>
</rss>

