<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Tips and tricks:  How do I add raw device mapping in Red Hat Enterprise Linux 5?</title>
	<atom:link href="http://magazine.redhat.com/2008/09/17/tips-and-tricks-how-do-i-add-raw-device-mapping-in-red-hat-enterprise-linux-5/feed/" rel="self" type="application/rss+xml" />
	<link>http://magazine.redhat.com/2008/09/17/tips-and-tricks-how-do-i-add-raw-device-mapping-in-red-hat-enterprise-linux-5/</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 30 Nov 2009 15:42:00 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: How To Add Raw Device Mapping In Red Hat Enterprise Linux 5?</title>
		<link>http://magazine.redhat.com/2008/09/17/tips-and-tricks-how-do-i-add-raw-device-mapping-in-red-hat-enterprise-linux-5/#comment-3293</link>
		<dc:creator>How To Add Raw Device Mapping In Red Hat Enterprise Linux 5?</dc:creator>
		<pubDate>Sun, 08 Feb 2009 17:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/09/17/tips-and-tricks-how-do-i-add-raw-device-mapping-in-red-hat-enterprise-linux-5/#comment-3293</guid>
		<description>[...] opening block device with O_DIRECT flag. How to create raw device mapping in RHEL 5? According to Red Hat Magazine article, here is the simplified step for my reference when our infrastructure team decides to go ahead with [...]</description>
		<content:encoded><![CDATA[<p>[...] opening block device with O_DIRECT flag. How to create raw device mapping in RHEL 5? According to Red Hat Magazine article, here is the simplified step for my reference when our infrastructure team decides to go ahead with [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PibiaMine</title>
		<link>http://magazine.redhat.com/2008/09/17/tips-and-tricks-how-do-i-add-raw-device-mapping-in-red-hat-enterprise-linux-5/#comment-3073</link>
		<dc:creator>PibiaMine</dc:creator>
		<pubDate>Sat, 27 Dec 2008 04:59:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/09/17/tips-and-tricks-how-do-i-add-raw-device-mapping-in-red-hat-enterprise-linux-5/#comment-3073</guid>
		<description>Complimenti per idea del sito. Anche noi siamo amanti del trekking. Perche non organizziamo un incontro di appassionati per delle escursioni insieme? Magari non piu di 6-8 in tutto? Un saluto.
&lt;a&gt;mastasia&lt;/a&gt;
&lt;a&gt;nicole kidman in&lt;/a&gt;
&lt;a&gt;crock pot recipe&lt;/a&gt;
&lt;a&gt;in cartongesso&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Complimenti per idea del sito. Anche noi siamo amanti del trekking. Perche non organizziamo un incontro di appassionati per delle escursioni insieme? Magari non piu di 6-8 in tutto? Un saluto.<br />
<a>mastasia</a><br />
<a>nicole kidman in</a><br />
<a>crock pot recipe</a><br />
<a>in cartongesso</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tailladaura</title>
		<link>http://magazine.redhat.com/2008/09/17/tips-and-tricks-how-do-i-add-raw-device-mapping-in-red-hat-enterprise-linux-5/#comment-3072</link>
		<dc:creator>Tailladaura</dc:creator>
		<pubDate>Fri, 31 Oct 2008 19:18:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/09/17/tips-and-tricks-how-do-i-add-raw-device-mapping-in-red-hat-enterprise-linux-5/#comment-3072</guid>
		<description>Есть возможность просмотреть фотогалерею секси скромные и голые девушки, всегда обворожительные девочки, возможно сексуальные девочки.</description>
		<content:encoded><![CDATA[<p>Есть возможность просмотреть фотогалерею секси скромные и голые девушки, всегда обворожительные девочки, возможно сексуальные девочки.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://magazine.redhat.com/2008/09/17/tips-and-tricks-how-do-i-add-raw-device-mapping-in-red-hat-enterprise-linux-5/#comment-3071</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Tue, 21 Oct 2008 20:29:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/09/17/tips-and-tricks-how-do-i-add-raw-device-mapping-in-red-hat-enterprise-linux-5/#comment-3071</guid>
		<description>&quot;Unfortunately it is not possible to write udev rules for creating raw devices on multipath devices (/dev/dm-*) without manipulating existing udev rules.&quot;

Actually, it can be done.  In 50-udev.rules, Red Hat has an OPTIONS+=&quot;ignore_device&quot; rule for dm-* devices, which would normally completely ignore them.  But if you place your dm-* rules in a file which executes prior to 50-udev (use 49 or lower).  Then create the raw device (Note that you can&#039;t add a raw0, so you can&#039;t just create /dev/raw/raw$MINOR...so add one to the minor number first):
RUN+=&quot;/bin/sh -c &#039;/bin/raw /dev/raw/raw$((MINOR + 1)) $MAJOR $MINOR&#039;&quot;

Finally, add add OPTIONS+=&quot;last_rule&quot; at the end of your rules, it will bypass future rules.

This creates a /dev/raw/raw# node, but in order to make raw device names &quot;prettier&quot;, you can add another set of rules to execute on: ACTION==&quot;add&quot;, KERNEL==&quot;raw[0-9]*&quot; to determine the vg and lv names and add a /dev/raw-mapper/* symlink (&quot;$vg-$lv&quot;, or the WWID for example): SYMLINK+=&quot;raw-mapper/%c{1}&quot;

I have discovered a truly marvelous demonstration of this proposition that this textarea is too narrow to contain.</description>
		<content:encoded><![CDATA[<p>&#8220;Unfortunately it is not possible to write udev rules for creating raw devices on multipath devices (/dev/dm-*) without manipulating existing udev rules.&#8221;</p>
<p>Actually, it can be done.  In 50-udev.rules, Red Hat has an OPTIONS+=&#8221;ignore_device&#8221; rule for dm-* devices, which would normally completely ignore them.  But if you place your dm-* rules in a file which executes prior to 50-udev (use 49 or lower).  Then create the raw device (Note that you can&#8217;t add a raw0, so you can&#8217;t just create /dev/raw/raw$MINOR&#8230;so add one to the minor number first):<br />
RUN+=&#8221;/bin/sh -c &#8216;/bin/raw /dev/raw/raw$((MINOR + 1)) $MAJOR $MINOR&#8217;&#8221;</p>
<p>Finally, add add OPTIONS+=&#8221;last_rule&#8221; at the end of your rules, it will bypass future rules.</p>
<p>This creates a /dev/raw/raw# node, but in order to make raw device names &#8220;prettier&#8221;, you can add another set of rules to execute on: ACTION==&#8221;add&#8221;, KERNEL==&#8221;raw[0-9]*&#8221; to determine the vg and lv names and add a /dev/raw-mapper/* symlink (&#8220;$vg-$lv&#8221;, or the WWID for example): SYMLINK+=&#8221;raw-mapper/%c{1}&#8221;</p>
<p>I have discovered a truly marvelous demonstration of this proposition that this textarea is too narrow to contain.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pc2</title>
		<link>http://magazine.redhat.com/2008/09/17/tips-and-tricks-how-do-i-add-raw-device-mapping-in-red-hat-enterprise-linux-5/#comment-3070</link>
		<dc:creator>pc2</dc:creator>
		<pubDate>Wed, 08 Oct 2008 21:41:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/09/17/tips-and-tricks-how-do-i-add-raw-device-mapping-in-red-hat-enterprise-linux-5/#comment-3070</guid>
		<description>I wonder how to create a (shadow) raw device for lvm (/dev/mapper/*) block devices? Do you think if it is possible to solve this with udev a similar automated way?</description>
		<content:encoded><![CDATA[<p>I wonder how to create a (shadow) raw device for lvm (/dev/mapper/*) block devices? Do you think if it is possible to solve this with udev a similar automated way?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
