<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="lyceum/1.0.2" -->
<!-- This is 512 bytes of nonsense, since the Firefox 2 developers, in one of the strangest decisions ever, decidedthey would obsolete XML styles by overriding them without permission.  Furthermore, the developers appear to be disinterested in fixing this.  Therefore, we use the unofficial workaround, which includes fillingup the first 512 bytes of a document so that the sniffer doesn't encounter the RSS tag.  I really enjoyusing Firefox, but this particular behavior really annoys me! Anyway, since I'm almost at 512 characters, I'mgoing to ramble on for another minute in this comment, and then, without further adue, present you with avalid XML feed. -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>Red Hat Magazine</title>
	<link>http://www.redhatmagazine.com</link>
	<description></description>
	<pubDate>Thu, 09 Oct 2008 22:34:50 +0000</pubDate>
	<generator>http://lyceum.ibiblio.org/?v=1.0.2</generator>
	<language>en</language>
			<item>
		<title>Video: Spotlight on Extra Packages for Enterprise Linux (EPEL)</title>
		<link>http://www.redhatmagazine.com/2008/10/09/video-spotlight-on-extra-packages-for-enterprise-linux-epel/</link>
		<comments>http://www.redhatmagazine.com/2008/10/09/video-spotlight-on-extra-packages-for-enterprise-linux-epel/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 22:34:50 +0000</pubDate>
		<dc:creator>the editorial team</dc:creator>
		
		<category>Red Hat Enterprise Linux</category>

		<category>multimedia</category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/10/09/video-spotlight-on-extra-packages-for-enterprise-linux-epel/</guid>
		<description><![CDATA[

Download this video: [Ogg Theora]Video by Islam Elsedoudi.Produced by Kim Jokisch and Jesse Paddock.




We here at Red Hat are pleased to bring you a brand new set of videos aimed at showing off the latest and greatest enhancements in our technologies&#8211;featuring the very people who helped create them in the first place. The &#8220;SPOTLIGHT ON&#8221; [...]]]></description>
			<content:encoded><![CDATA[<div class="alignLeft">
<embed src="http://www.redhat.com/v/swf/flvplayer.swf?file=http://www.redhat.com/v/magazine/swf/0930_EPEL_FINAL.flv&#038;autoStart=false&#038;image=http://www.redhat.com/g/magazine/video_stills/0930_EPEL_FINAL.png" width="320" height="260" quality="high" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></p>
<div class="caption" >Download this video: [<a href="http://www.redhat.com/v/magazine/ogg/0930_EPEL_FINAL.ogg">Ogg Theora</a>]<br />Video by Islam Elsedoudi.<br />Produced by Kim Jokisch and Jesse Paddock.
</div>
<p><!-- caption --></div>
<p><!-- alignLeft --><br />
<br clear="both" /><br />
We here at Red Hat are pleased to bring you a brand new set of videos aimed at showing off the latest and greatest enhancements in our technologies&#8211;featuring the very people who helped create them in the first place. The &#8220;SPOTLIGHT ON&#8221; series highlights the ways in which collaboration drives innovation by looking at projects that have been improved by community input. In our first installment, we track down Red Hat&#8217;s own Karsten Wade and Stephen Smoogen from the University of New Mexico to talk about Extra Packages for Enterprise Linux (EPEL), the Fedora-sourced repository of add-on packages for Red Hat Enterprise Linux.  They discuss how EPEL is a tool for user-driven innovation that comes from and benefits enterprise customers with more stable code and lower business costs.<br />
<br clear="both" />
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.redhatmagazine.com/2008/10/09/video-spotlight-on-extra-packages-for-enterprise-linux-epel/feed/</wfw:commentRss>
		</item>
		<item>
		<title>This isn&#8217;t your grandpappy&#8217;s dd command</title>
		<link>http://www.redhatmagazine.com/2008/10/02/this-isnt-your-grandpappys-dd-command/</link>
		<comments>http://www.redhatmagazine.com/2008/10/02/this-isnt-your-grandpappys-dd-command/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 15:03:10 +0000</pubDate>
		<dc:creator>Noah Gift</dc:creator>
		
		<category>Uncategorized</category>

		<category>technical</category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/10/02/this-isnt-your-grandpappys-dd-command/</guid>
		<description><![CDATA[co-authored with Grig Gheorghiu
Background
The dd command is one of those ancient UNIX tools that is extremely powerful, yet at the same time, the syntax can make it feel slightly archaic. A lot of seasoned sysadmins and developers still remember the first time they saw the dd command used by a bearded wizard. He might have [...]]]></description>
			<content:encoded><![CDATA[<p><em>co-authored with Grig Gheorghiu</em></p>
<h2>Background</h2>
<p>The dd command is one of those ancient UNIX tools that is extremely powerful, yet at the same time, the syntax can make it feel slightly archaic. A lot of seasoned sysadmins and developers still remember the first time they saw the dd command used by a bearded wizard. He might have used it to test the disk I/O, capture a disk image, or restore it. </p>
<p>In some ways, dd can seem like Old Spice&#8211;only the guys over 60 use it.  But the younger generation should know that dd still has some tricks up its sleeve. In this article, we&#8217;re going to put a new twist on this old favorite and show how grandpappy really does know best sometimes. The new twist is to mix dd with Python and the Google Chart API to make a UNIX 2.0 mashup tool. (&#8221;UNIX 2.0&#8243; is a play on words for what happens when you change the original behavior of a tool like dd to make it do something a bit different.)  <a id="more-1058"></a></p>
<h2>Setup</h2>
<p>For this article, we assume you&#8217;re running Fedora Core 8. We&#8217;re actually just renting some time from Amazon in all of these examples. To do that we allocated a 1 GB Elastic Block Storage volume from Amazon and attached it as the device /dev/sdd to an Amazon Machine Instance (AMI) running Fedora Core 8.  <a href="http://www.redhat.com/solutions/cloud/">Learn more about using Amazon Cloud Computing with Red Hat.</a></p>
<h2>Using dd for disk benchmarking with Google Charts API and Python</h2>
<p>We benchmarked the throughput of the disk by running the dd command with various block sizes from 128 KB to 1 MB. (Note: If you want to run the script on your own machine, make sure that the volume you use doesn&#8217;t contain any valuable data, because the data will be erased by the dd command. Remember, data loss makes grandpappy mad!)</p>
<p>For the benchmark, we wrote a Python script that uses the commands module to run and capture the output of the dd command. The script also uses the csv module to generate a comma-separated values file so that we can graph the results later. For this example, we chose to graph the results using the Google Chart API.</p>
<pre class="screen">
#!/usr/bin/env python
import commands
import re
import csv
</pre>
<p>Next we define the main function, which takes a device name and a block size as parameters, and returns the throughput measured with dd and the unit of measure (e.g. MB/s). We use the regular expression module (re) to isolate the throughput value and unit of measure from the output of the dd command.</p>
<p><em>Editor&#8217;s note: In the code below,  <code>unit = ""</code> has been added since the article was posted.</em></p>
<pre class="screen">
def get_disk_throughput(device, blocksize):

    blocksize = str(blocksize) + 'k'

    cmd = "dd if=/dev/zero of=%s bs=%s" % (device, blocksize)

    output = commands.getoutput(cmd)

    throughput = 0

    unit = ""

    for line in output.split('n'):

        s = re.search(' copied,.*, (S+) (S+)$', line)

        if s:

            throughput = s.group(1)

            unit = s.group(2)

            break

    return (throughput, unit)
</pre>
<p>Here is the portion of the script that is executed when it&#8217;s run from the command line. We open a csv file and associate it with a csv writer. We then use the writerow method of the writer to append the header and each data row. We iterate over the list of block sizes and call the get_disk_throughput function for each block size.</p>
<p>We also compose the Google Chart URL by filling in the exact data values, represented by the throughput numbers that we obtain from the get_disk_throughput function. Then we print the URL to stdout. If you <a href="http://chart.apis.google.com/chart?cht=bvs&#038;chtt=Disk%20throughput&#038;chs=400x250&#038;chd=t:62.6,63.6,63.0,63.7&#038;chl=128k%7C256k%7C512k%7C1024k&#038;chxt=x,y&#038;chxr=1,0,73.7&#038;chds=0,73.7">check the URL</a>, you&#8217;ll see the chart generated with our data. </p>
<p>For details on the Google Chart API and what each parameter to the URL represents, see the  <a href="http://code.google.com/apis/chart">Developer&#8217;s Guide</a>.</p>
<p><em>Editor&#8217;s note: This is an updated version of the code that originally appeared with this article. It has command-line argument processing, and it composes the Google Chart URL in a better, more self-explanatory fashion. See the end of the article for the original.</em></p>
<pre class="screen">
f = open('disk_throughput.csv', 'w')
        writer = csv.writer(f)
        writer.writerow( ('Block size (KB)', 'Throughput') )
        blocksizes = [128, 256, 512, 1024]
        gchart_url = "http://chart.apis.google.com/chart?"
        gchart_type = "cht=bvs"
        gchart_title = "&#038;chtt=Disk%20throughput"
        gchart_size = "&#038;chs=400x250"
        gchart_axis_labels = "&#038;chxt=x,y"
        gchart_data = "&#038;chd=t:"
        gchart_labels = "&#038;chl="
        max_t = 0.0
        for blocksize in blocksizes:
            (t, u) = get_disk_throughput(device, blocksize)
            if float(t) > max_t:
                max_t = float(t)
            writer.writerow( (blocksize, t) )
            print 'Block Size: %sk Throughput: %s %s' % (blocksize, t, u)
            gchart_data += t + ","
            gchart_labels += str(blocksize) + "k" + "|"
        gchart_data = gchart_data.rstrip(',')
        gchart_labels = gchart_labels.rstrip('|')
        gchart_axis_range = "&#038;chxr=1,0," + str(max_t+10.0)
        gchart_scaling = "&#038;chds=0," + str(max_t+10.0)
        gchart_url += gchart_type + gchart_title + gchart_size + gchart_data + gchart_labels
        gchart_url += gchart_axis_labels + gchart_axis_range + gchart_scaling
        print "Google Chart URL (just paste in a browser):", gchart_url
    finally:
        f.close()</pre>
<p>Here is the output of the script in one of our runs:</p>
<pre class="screen">
Block Size: 128 Throughput: 62.8 MB/s

Block Size: 256 Throughput: 61.8 MB/s

Block Size: 512 Throughput: 57.1 MB/s

Block Size: 1024 Throughput: 56.5 MB/s
</pre>
<p>Now here is the actual image that gets created:<br />
<a href="http://www.flickr.com/photos/redhatmagazine/2907593650/"><img src="http://farm4.static.flickr.com/3151/2907593650_32339224ba_o.png"></a></p>
<h2>Full script</h2>
<pre class="screen">
#!/usr/bin/env python

import sys
import commands
import re
import csv
from optparse import OptionParser

def get_disk_throughput(device, blocksize):
    blocksize = str(blocksize) + 'k'
    cmd = "dd if=/dev/zero of=%s bs=%s" % (device, blocksize)
    output = commands.getoutput(cmd)
    throughput = 0
    unit = ""
    for line in output.split('n'):
        s = re.search(' copied,.*, (S+) (S+)$', line)
        if s:
            throughput = s.group(1)
            unit = s.group(2)
            break
    return (throughput, unit)

if __name__ == "__main__":

    usage = "usage: %prog options"
    parser = OptionParser(usage=usage)
    parser.add_option("-d", "--device", dest="device",
            help="Disk device to operate on (NOTE: any data on that device will be lost)")
    (options, args) = parser.parse_args()
    device = options.device
    if not device:
        parser.print_help()
        sys.exit(1)

    try:
        f = open('disk_throughput.csv', 'w')
        writer = csv.writer(f)
        writer.writerow( ('Block size (KB)', 'Throughput') )
        blocksizes = [128, 256, 512, 1024]
        gchart_url = "http://chart.apis.google.com/chart?"
        gchart_type = "cht=bvs"
        gchart_title = "&#038;chtt=Disk%20throughput"
        gchart_size = "&#038;chs=400x250"
        gchart_axis_labels = "&#038;chxt=x,y"
        gchart_data = "&#038;chd=t:"
        gchart_labels = "&#038;chl="
        max_t = 0.0
        for blocksize in blocksizes:
            (t, u) = get_disk_throughput(device, blocksize)
            if float(t) > max_t:
                max_t = float(t)
            writer.writerow( (blocksize, t) )
            print 'Block Size: %sk Throughput: %s %s' % (blocksize, t, u)
            gchart_data += t + ","
            gchart_labels += str(blocksize) + "k" + "|"
        gchart_data = gchart_data.rstrip(',')
        gchart_labels = gchart_labels.rstrip('|')
        gchart_axis_range = "&#038;chxr=1,0," + str(max_t+10.0)
        gchart_scaling = "&#038;chds=0," + str(max_t+10.0)
        gchart_url += gchart_type + gchart_title + gchart_size + gchart_data + gchart_labels
        gchart_url += gchart_axis_labels + gchart_axis_range + gchart_scaling
        print "Google Chart URL (just paste in a browser):", gchart_url
    finally:
        f.close()</pre>
<h2>Summary</h2>
<p>In this article we shattered the myth that you must be 60, have a massive grey beard, and have worked at Bell Labs to use the dd command. Even for a newer generation, dd can be used in some inventive ways. We combined Python, the Google Chart API, and Red Hat on Amazon&#8217;s cloud computing infrastructure to create a novel way to measure and chart disk I/O and performance. Go celebrate by buying yourself a bottle of Old Spice.</p>
<h2>References</h2>
<p>Python: <a href="http://www.python.org/">http://www.python.org/</a><br />
dd example scripts:  <a href="http://tldp.org/LDP/abs/html/extmisc.html">http://tldp.org/LDP/abs/html/extmisc.html</a><br />
Google Chart API:  <a href="http://code.google.com/apis/chart/">http://code.google.com/apis/chart/</a></p>
<h2>Original code</h2>
<pre class="screen">
if __name__ == "__main__":

    try:

        f = open('disk_throughput.csv', 'w')

        writer = csv.writer(f)

        writer.writerow( ('Block size (KB)', 'Throughput') )

        device = '/dev/sdd'

        blocksizes = [128, 256, 512, 1024]

        google_chart_url = "http://chart.apis.google.com/chart?cht=bvs&#038;chd=t:"

        google_chart_data = ""

        google_chart_labels = ""

        max_t = 0.0

        for blocksize in blocksizes:

            (t, u) = get_disk_throughput(device, blocksize)

            if float(t) > max_t:

                max_t = float(t)

            writer.writerow( (blocksize, t) )

            print 'Block Size: %s Throughput: %s %s' % (blocksize, t, u)

            google_chart_data += t + ","

            google_chart_labels += str(blocksize) + "k" + "|"

        google_chart_data = google_chart_data.rstrip(',')

        google_chart_labels = google_chart_labels.rstrip('|')

        google_chart_url += google_chart_data +"&#038;chl=" + google_chart_labels

        google_chart_url += "&#038;chtt=Disk%20throughput" +"&#038;chs=400x250&#038;chxt=x,y"

        google_chart_url += "&#038;chxr=1,0,%s&#038;chds=0,%s" % (str(max_t+10.0), str(max_t+10.0))

        print google_chart_url

    finally:

        f.close()
</pre>
<h2>Authors</h2>
<p><b>Noah Gift</b> is the co-author of <em>Python For Unix and Linux</em> by O&#8217;Reilly, and <em>Google App Engine in Action</em> by Manning. He is an author, speaker, consultant, and community leader, writing for publications such as IBM Developerworks, Red Hat Magazine, O&#8217;Reilly, Manning, and MacTech. He has a master&#8217;s degree in CIS from Cal State Los Angeles, a B.S. in nutritional science from Cal Poly San Luis Obispo, and is an Apple and LPI certified sys admin. He&#8217;s worked at companies that include Caltech, Disney Feature Animation, Sony Imageworks, Turner Studios, and most recently, WetaDigital.</p>
<p><strong>Grig Gheorghiu</strong> is the director of technology for RIS Technology, a web hosting company based in Los Angeles. Grig has 15 years industry experience, during which time he has worked as a programmer, research lab manager, system/network/security architect, IT consultant, and lead test engineer.</p>
<p>Grig is an active member of the Python and agile testing communities. He maintains a <a href="http://agiletesting.blogspot.com">blog</a> dedicated to agile testing, Python programming, and automated testing tools and techniques.  Grig is the founder of the Southern California Python Interest Group, aka <a href="http://socal-piggies.org">“the SoCal Piggies”</a>. He lives in Los Angeles with his wife and two children.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.redhatmagazine.com/2008/10/02/this-isnt-your-grandpappys-dd-command/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Tips and tricks: What TCP/IP ports are required to be open on an RHN Satellite, Proxy or Client system?</title>
		<link>http://www.redhatmagazine.com/2008/09/30/tips-and-tricks-what-tcpip-ports-are-required-to-be-open-on-an-rhn-satellite-proxy-or-client-system/</link>
		<comments>http://www.redhatmagazine.com/2008/09/30/tips-and-tricks-what-tcpip-ports-are-required-to-be-open-on-an-rhn-satellite-proxy-or-client-system/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 13:10:32 +0000</pubDate>
		<dc:creator>the editorial team</dc:creator>
		
		<category>Uncategorized</category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/09/30/tips-and-tricks-what-tcpip-ports-are-required-to-be-open-on-an-rhn-satellite-proxy-or-client-system/</guid>
		<description><![CDATA[For Satellite:
If the Satellite server is &#8220;connected&#8221;, then it will initiate outbound connections to ports 80 and 443 on the Red Hat Network (RHN) hosted service (rhn.redhat.com / satellite.rhn.redhat.com). Access to these hosts and ports should not be restricted to ensure correct functioning of the satellite system. If required, an HTTP(S) proxy may be used, [...]]]></description>
			<content:encoded><![CDATA[<p><b>For Satellite:</b><br />
If the Satellite server is &#8220;connected&#8221;, then it will initiate outbound connections to ports 80 and 443 on the <a href="http://www.rhn.redhat.com">Red Hat Network</a> (RHN) hosted service (<a href="http://www.rhn.redhat.com">rhn.redhat.com</a> / <a href="http://www.satellite.rhn.redhat.com">satellite.rhn.redhat.com</a>). Access to these hosts and ports should not be restricted to ensure correct functioning of the satellite system. If required, an HTTP(S) proxy may be used, by passing the &#8220;<tt class="command">&#8211;http-proxy</tt>&#8221; option to the &#8220;<tt class="command">satellite-sync</tt>&#8221; command.</p>
<p>If using a proxy server, Satellite will initiate connections to port <tt class="command">5222</tt> on each proxy server connected. This is used for communications relating to the &#8220;<tt class="comment">OSA</tt>&#8221; service (also known as &#8220;<tt class="command">Push to Client</tt>&#8220;). If using the OSA service, access to this port should not be restricted.</p>
<p>   <a id="more-1056"></a></p>
<p>A Satellite service will also connect to individual client systems on port <tt class="command">4545</tt> if the monitoring service be enabled on these specific systems. This port needs to be unrestricted if the RHN Monitoring service is being used.</p>
<p><b>For Proxy:</b></p>
<p>The RHN proxy server will connect to ports <tt class="command">80</tt> and <tt class="command">443</tt> on the &#8220;upstream&#8221; system, either RHN Hosted or an internal Satellite server.</p>
<p>If the Monitoring Scout is enabled on a proxy server, then the proxy will initiate connections to port <tt class="command">4545</tt> on Monitoring-enabled client systems.</p>
<p><b>For Client Systems:</b></p>
<p>Client systems will initiate connections to ports <tt class="command">80</tt> and <tt class="command">443</tt> of their upstream RHN server (Satellite, Proxy or RHN Hosted).</p>
</p>
<p>If OSA is being used, then the client systems will also connect to the Jabber service running on the Satellite or Proxy server, on port <tt class="command">5269</tt>.</p>
<p class="authorblurb">Red Hat&#8217;s customer service and support teams receive technical support questions from users all over the world. Red Hat technicians add the questions and answers to Red Hat Knowledgebase on a daily basis. Access to <a href="http://kbase.redhat.com/">Red Hat Knowledgebase</a> is free. Red Hat Magazine offers a preview into the Red Hat Knowledgebase by highlighting some of the most recent entries. The information provided in this article is for your information only. The origin of this information may be internal or external to Red Hat. While Red Hat attempts to verify the validity of this information before it is posted, Red Hat makes no express or implied claims to its validity.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.redhatmagazine.com/2008/09/30/tips-and-tricks-what-tcpip-ports-are-required-to-be-open-on-an-rhn-satellite-proxy-or-client-system/feed/</wfw:commentRss>
		</item>
		<item>
		<title>ccmixter: Red Hat soundscape, shared with you</title>
		<link>http://www.redhatmagazine.com/2008/09/25/ccmixter-red-hat-soundscape-shared-with-you/</link>
		<comments>http://www.redhatmagazine.com/2008/09/25/ccmixter-red-hat-soundscape-shared-with-you/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 20:06:08 +0000</pubDate>
		<dc:creator>Napoleon Wright</dc:creator>
		
		<category>multimedia</category>

		<category>music</category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/09/25/ccmixter-red-hat-soundscape-shared-with-you/</guid>
		<description><![CDATA[If you&#8217;ve ever watched a video from Red Hat Magazine, you&#8217;ve probably heard the soundtracks in the background.  Whether it&#8217;s the remixable Birdsong video or one of our other interviews or overviews, the music we use is often created in-house by our soundscape specialist.  Napoleon creates custom music and animations for various Red [...]]]></description>
			<content:encoded><![CDATA[<p><em>If you&#8217;ve ever watched a video from Red Hat Magazine, you&#8217;ve probably heard the soundtracks in the background.  Whether it&#8217;s <a href="http://www.redhatmagazine.com/2007/08/24/birdsong-a-requiem-for-drm/">the remixable Birdsong video</a> or one of our <a href="http://www.redhatmagazine.com/category/multimedia/">other interviews or overviews</a>, the music we use is often created in-house by our soundscape specialist.  Napoleon creates custom music and animations for various Red Hat projects, as well as commercial materials and custom beats, lyrics, and compositions.  In his free time he enjoys sampling 70s soul records to create beats for local hip-hop artists. And now he&#8217;s here to share some of his work with you.</em></p>
<p>Everybody wants to be heard. Some of us have a rhythm to go along with it.</p>
<p>I was introduced to ccmixter a couple months ago and have been hooked ever since. It is a utopia of sound for music makers and mixers alike.</p>
<p>From acapellas and samples to remixes, ccmixter wants you to download, sample, cut-up, and share music of all types. Some artists post entire albums for the community to remix.</p>
<p>Best of all, it&#8217;s all licensed under Creative Commons so there&#8217;s no worries. </p>
<p>Check out <a href="http://ccmixter.org/people/Nwright/uploads">my page of remixes</a>. </p>
<p><em>If you create a remix and want to get in touch with Napoleon&#8211;or just have a question&#8211;feel free to leave a comment (or contact information) on this post.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.redhatmagazine.com/2008/09/25/ccmixter-red-hat-soundscape-shared-with-you/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Tips and tricks:  How do I force users to change their passwords upon first login?</title>
		<link>http://www.redhatmagazine.com/2008/09/22/tips-and-tricks-how-do-i-force-users-to-change-their-passwords-upon-first-login/</link>
		<comments>http://www.redhatmagazine.com/2008/09/22/tips-and-tricks-how-do-i-force-users-to-change-their-passwords-upon-first-login/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 21:51:50 +0000</pubDate>
		<dc:creator>the editorial team</dc:creator>
		
		<category>tips and tricks</category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/09/22/tips-and-tricks-how-do-i-force-users-to-change-their-passwords-upon-first-login/</guid>
		<description><![CDATA[1.) Firstly, lock the account to prevent the user from using the login until the change has been made:

# usermod -L &#60;username&#62;

2.) Change the password expiration date to 0 to ensure the user changes the password during the next login:

# chage -d 0 &#60;username&#62;

3.) To unlock the account after the change do the following:

# usermod [...]]]></description>
			<content:encoded><![CDATA[<p>1.) Firstly, lock the account to prevent the user from using the login until the change has been made:</p>
<pre class="screen">
# usermod -L &lt;username&gt;
</pre>
<p>2.) Change the password expiration date to 0 to ensure the user changes the password during the next login:</p>
<pre class="screen">
# chage -d 0 &lt;username&gt;
</pre>
<p>3.) To unlock the account after the change do the following:</p>
<pre class="screen">
# usermod -U &lt;username&gt;
</pre>
<p><a id="more-1052"></a></p>
<p class="authorblurb">Red Hat&#8217;s customer service and support teams receive technical support questions from users all over the world. Red Hat technicians add the questions and answers to Red Hat Knowledgebase on a daily basis. Access to <a href="http://kbase.redhat.com/">Red Hat Knowledgebase</a> is free. Red Hat Magazine offers a preview into the Red Hat Knowledgebase by highlighting some of the most recent entries. The information provided in this article is for your information only. The origin of this information may be internal or external to Red Hat. While Red Hat attempts to verify the validity of this information before it is posted, Red Hat makes no express or implied claims to its validity.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.redhatmagazine.com/2008/09/22/tips-and-tricks-how-do-i-force-users-to-change-their-passwords-upon-first-login/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Friday roundup</title>
		<link>http://www.redhatmagazine.com/2008/09/19/friday-roundup-6/</link>
		<comments>http://www.redhatmagazine.com/2008/09/19/friday-roundup-6/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 22:19:00 +0000</pubDate>
		<dc:creator>the editorial team</dc:creator>
		
		<category>from the editors</category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/09/19/friday-roundup-6/</guid>
		<description><![CDATA[
How will we get our media in the future? The Digital Entertainment Content Ecosystem (DECE) may have something to say about that. From Newsweek.
If you&#8217;re not following the Mars Phoenix on Twitter, you totally should be.  Because a robot that celebrates Talk Like A Pirate Day&#8230; from Mars?  Awesome.
In honor of Richard Wright&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li>How will we get our media in the future? The <a href="http://www.businessweek.com/technology/content/sep2008/tc20080912_471690.htm?chan=top+news_top+news+index+-+temp_news+%2B+analysis">Digital Entertainment Content Ecosystem (DECE)</a> may have something to say about that. From Newsweek.</li>
<li>If you&#8217;re not following the <a href="http://twitter.com/MarsPhoenix">Mars Phoenix on Twitter</a>, you totally should be.  Because a robot that celebrates Talk Like A Pirate Day&#8230; from Mars?  Awesome.</li>
<li>In honor of Richard Wright&#8217;s passing this week, check out this <a href="http://blog.wired.com/music/2008/09/in-memoriam-pin.html">Pink Floyd / 2001: A Space Oddity synch</a> in <em>Wired</em>.</li>
<li>Keeping an eye on web stuff:  Does the web need an indicator of its <a href="http://www.webmonkey.com/blog/Does_the_Web_Need_a__Ministry_of_Truth__">truthiness</a>?  Tim Berners-Lee thinks so.  And, in other news, the <a href="http://blog.wired.com/business/2008/09/web-20-expo-day.html">Web 2.0 expo</a> seemed to  take place without much of a downturn, even with the rough US economic news. (<em>Wired</em>, again.)</li>
<li>And to round out the <em>Wired</em> trifecta&#8211;and suggest a celebratory activity for this most festive (Arrrr!) day&#8211;we give you <a href="http://howto.wired.com/wiki/Pirate_Like_a_Pirate">Pirate like a Pirate</a>.  Ahoy, matey, and set the sails for the weekend!</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.redhatmagazine.com/2008/09/19/friday-roundup-6/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The power of Collaborative Innovation</title>
		<link>http://www.redhatmagazine.com/2008/09/18/the-power-of-collaborative-innovation/</link>
		<comments>http://www.redhatmagazine.com/2008/09/18/the-power-of-collaborative-innovation/#comments</comments>
		<pubDate>Thu, 18 Sep 2008 23:00:36 +0000</pubDate>
		<dc:creator>Venky Hariharan</dc:creator>
		
		<category>culture</category>

		<category>design</category>

		<category>truth</category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/09/18/the-power-of-collaborative-innovation/</guid>
		<description><![CDATA[With 1.4 billion people connected, the Internet is the greatest collaborative network that mankind has experienced. One of the consequences of the growth of this network is a  shift in the way knowledge is being created and distributed. As we move to an interconnected world, the balance of power is shifting from old, proprietary [...]]]></description>
			<content:encoded><![CDATA[<p>With 1.4 billion people connected, the Internet is the greatest collaborative network that mankind has experienced. One of the consequences of the growth of this network is a  shift in the way knowledge is being created and distributed. As we move to an interconnected world, the balance of power is shifting from old, proprietary models of knowledge creation to the open source model that emphasizes collaboration and sharing. From management gurus to consulting firms to leading business schools, everyone is taking note of this new phenomenon that goes by various names like &#8216;Collaborative Innovation,&#8217; &#8216;Open Innovation,&#8217; or &#8216;Distributed Co-creation.&#8217; </p>
<p>The open source movement has pioneered the Collaborative Innovation trend, and it is no surprise that the rapid growth of the Internet and the equally rapid growth of the open source community have mirrored each other. The Linux&reg; operating system and Wikipedia website are both good examples of open source projects that embody the ideals of Collaborative Innovation.  And those in the technology industry aren&#8217;t the only ones to take notice.  Policy makers and corporate leaders in all markets are exploring how this powerful trend can be harnessed for social and economic development. <a id="more-1050"></a></p>
<p>Let us take Linux as an example. In September 1991, Linus Torvalds released 10,000 lines of source code under the General Public License (GPL). The GPL gives users four freedoms:</p>
<ol style="font-size: smaller;">
<li>The freedom to run the program, for any purpose</li>
<li>The freedom to study how the program works, and adapt it to your needs</li>
<li>The freedom to redistribute copies so you can help your neighbor</li>
<li>The freedom to improve the program, and release your improvements to the public, so that the whole community benefits</li>
</ol>
<p>Over the years, thousands of volunteers contributed to the code released by Torvalds. It is estimated that Linux now has around 100 million lines of source code and that the commercial value of this source code is approximately eight billion dollars. <sup><a href="#one">[1]</a></sup> This represents an enormous wealth of knowledge that is freely available. </p>
<p>The innovation that is possible through the efforts of thousands of people collaborating on the Linux source code is a powerful (and constantly growing) advantage for open source software. In the next few years, we may see the pace of innovation in open source outstrip anything that proprietary vendors and their closed group of paid programmers can produce. </p>
<p>Explaining this phenomenon, Tim O&#8217;Reilly says that, &#8220;Sustained innovation is no longer just about who has the most gifted scientists or the best equipped labs. It&#8217;s about who has the most compelling &#8216;architecture of participation.&#8217;&#8221;</p>
<p>Henry Chesborough, author of the book <em>Open Innovation</em> explains the contrast between the open and closed innovation models with this chart:</p>
<table style="cellpadding: 5px; font-size: smaller;"  valign="top" rules="all" border="2">
<tr>
<th style="text-align: left;"><strong>Closed innovation model</strong></td>
<th style="text-align: left;"><strong>Open innovation model</strong></td>
</tr>
<tr>
<td>The smart people in our field work for us.</td>
<td>We need to work with smart people inside and outside our company.</td>
</tr>
<tr>
<td>To profit from research and development (R&#038;D), we must discover it, develop it, and ship it ourselves.</td>
<td>External R&#038;D can create significant value; internal R&#038;D is needed to claim some portion of that value.</td>
</tr>
<tr>
<td>If we discover it ourselves, we will get it to market first.</td>
<td>We don&#8217;t have to originate the research to profit from it.</td>
</tr>
</table>
<p>The term “Collaborative Innovation” may be new, but the concept and the practice have been part of Red Hat’s corporate philosophy since the company’s inception. For 15 years, Red Hat has applied this framework to successfully compete with proprietary software vendors who have built multi-billion dollar empires using the closed innovation model. The Fedora&reg; Project is a prime example of Red Hat&#8217;s Collaborative Innovation strategy. Red Hat engineers work with the open source community to develop cutting-edge technologies for Fedora. When these innovative technologies mature, they are incorporated into Red Hat&reg; Enterprise Linux. </p>
<p>By working with smart people inside and outside Red Hat, the company is able to create a transparent, cost-efficient model of technology development. Despite having just 2,600 employees, Red Hat has been able to build and provide world-class solutions that are deployed in demanding environments like the New York Stock Exchange and the Federal Aviation Administration as well as large government and private deployments across the world. While Red Hat does not generate all of the code that makes up Red Hat Enterprise Linux, the company is able to create value by providing services, training, and support around open source software. This is no mean feat considering that the primary operating system competitor is a deeply entrenched company that employs more than 50,000 people. </p>
<p>Eager to take full advantage of its possibilities, thought leaders across the world are applying the collaborative innovation model in areas like content (<a href="http://www.wikipedia.org/">Wikipedia</a>), medicine (<a href="http://www.p2pfoundation.net/Open_Source_Drug_Discovery">Open Source Drug Discovery</a>), scientific publishing (<a href="http://www.plos.org/">Public Library of Science</a>), flexible copyrights (<a href="http://creativecommons.org/">Creative Commons</a>), and many other areas. Red Hat&#8217;s greatest contribution to the Collaborative Innovation movement&#8211;so far&#8211;has been its  success in building a business model around open source software that can be replicated in other fields. With the Internet becoming an integral part of our lives, Collaborative Innovation is set to become one of the most important aspects of our future.</p>
<p><a name="one"></a></p>
<div class="caption"><sup>[1]</sup>  Amor-Iglesias, J., Gonzalez-Barahona, J.,Robles-Martinez, G. &amp; Herraiz-Tabernero, I. (2005) Measuring Libre Software Using Debian 3.1 (Sarge) as A Case Study: Preliminary Results. UPGRADE European Journal for the Informatics Professional. VI (3), 13.  <a href="http://www.upgrade-cepis.org/issues/2005/3/upgrade-vol-VI-3.pdf">http://www.upgrade-cepis.org/issues/2005/3/upgrade-vol-VI-3.pdf</a></div>
<h2>Related links</h2>
<ul>
<li>Design Thinking, <a href="http://www.redhatmagazine.com/2007/02/13/thinking-designa-pencil-a-ruler-and-a-cup-of-coffee/">part 1</a> and <a href="http://www.redhatmagazine.com/2007/04/30/part-2-thinking-design-a-pencil-a-ruler-and-a-cup-of-coffee/">part 2</a></li>
</ul>
<h2>About the author</h2>
<p>Venkatesh Hariharan is Corporate Affairs Director at Red Hat and works on open source, open standards, and other policy issues. He is interested in the impact of technology on society. He co-founded IndLinux.org in 1999 and pioneered localization of Linux to Indian languages. He blogs at <a href="http://www.osindia.blogspot.com">www.osindia.blogspot.com</a> and his photos are at <a href="http://www.flickr.com/photos/venky7">www.flickr.com/photos/venky7</a>.
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.redhatmagazine.com/2008/09/18/the-power-of-collaborative-innovation/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Tips and tricks:  How do I add raw device mapping in Red Hat Enterprise Linux 5?</title>
		<link>http://www.redhatmagazine.com/2008/09/17/tips-and-tricks-how-do-i-add-raw-device-mapping-in-red-hat-enterprise-linux-5/</link>
		<comments>http://www.redhatmagazine.com/2008/09/17/tips-and-tricks-how-do-i-add-raw-device-mapping-in-red-hat-enterprise-linux-5/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 21:58:09 +0000</pubDate>
		<dc:creator>the editorial team</dc:creator>
		
		<category>tips and tricks</category>

		<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/</guid>
		<description><![CDATA[Answer:
The raw devices interface has been deprecated in Red Hat&#174; Enterprise Linux&#174; 5. The rawdevices service and /etc/sysconfig/rawdevices file no longer exist and raw devices are now configured via udev rules. However the preferred method for performing raw I/O (ie. bypassing filesystem caching) is to open EXT3/EXT2 files with the O_DIRECT flag.
This is an excerpt [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Answer:</strong></p>
<p>The raw devices interface has been deprecated in Red Hat&reg; Enterprise Linux&reg; 5. The <tt class="command">rawdevices</tt> service and <tt class="command">/etc/sysconfig/rawdevices</tt> file no longer exist and raw devices are now configured via <tt class="command">udev</tt> rules. However the preferred method for performing raw I/O (ie. bypassing filesystem caching) is to open EXT3/EXT2 files with the O_DIRECT flag.</p>
<p>This is an excerpt from the <tt class="command">raw</tt> command&#8217;s man page:</p>
<pre class="screen">
Although  Linux  includes  support  for rawio, it is now a deprecated interface. If your application performs device access using this
interface, Red Hat encourages you to modify your application to open the block device with the O_DIRECT flag. The rawio interface will
exist for the life of Red Hat Enterprise Linux 5, but is a candidate for removal from future releases.
</pre>
<p><a id="more-1049"></a></p>
<ul>
<li><b>Creating the raw devices:</b><br />
Nevertheless, to create raw devices, add entries to <tt class="command">/etc/udev/rules.d/60-raw.rules</tt> in the following formats:</p>
<p>For device names:</p>
<pre class="screen">
ACTION=="add", KERNEL=="<strong>&lt;device name&gt;</strong>&#8220;, RUN+=&#8221;raw /dev/raw/rawX %N&#8221;
</pre>
<p>For major / minor numbers:</p>
<pre class="screen">
ACTION=="add", ENV{MAJOR}="A", ENV{MINOR}="B", RUN+="raw /dev/raw/rawX %M %m"
</pre>
<p>Replace <tt class="command">&lt;device name&gt;</tt> with the name of the device needed to bind (such as <tt c;ass="command">/dev/sda1</tt>). &#8220;A&#8221; and &#8220;B&#8221; are the major / minor numbers of the device needed for binding, an &#8220;X&#8221; is the <tt class="command">raw</tt> device number that the system wants to use.</p>
<p>If there is a large, pre-existing <tt class="command">/etc/sysconfig/rawdevices</tt> file, convert it with the following script:</p>
<pre class="screen">
#!/bin/sh
grep -v "^ *#" /etc/sysconfig/rawdevices | grep -v "^$" | while read dev major
minor ; do
        if [ -z "$minor" ]; then
                echo "ACTION==\"add\", KERNEL==\"${major##/dev/}\",
RUN+=\"/usr/bin/raw $dev %N\""
        else
                echo "ACTION==\"add\", ENV{MAJOR}==\"$major\",
ENV{MINOR}==\"$minor\", RUN+=\"/usr/bin/raw $dev %M %m\""
        fi
done
</pre>
<li><b>Creating persistent raw devices for single path LUNs:</b>
<p>If using unpartitioned LUNs, to create a single raw device for the whole LUN use this rule format:</p>
<pre class="screen">
ACTION=="add", KERNEL=="sd*[!0-9]", PROGRAM=="/sbin/scsi_id -g -u -s %p", RESULT=="3600601601bd2180072193a9242c3dc11", RUN+="/bin/raw /dev/raw/raw1 %N"
</pre>
<p>Set the RESULT value to the output of <tt class="command">scsi_id -g -u -s /block/sdX</tt> (where sdX is the current path to the LUN).<br />
This will create the raw device <tt class="command">/dev/raw/raw1</tt> that will be persistently bound to the LUN with WWID <tt class="command">3600601601bd2180072193a9242c3dc11</tt>.</p>
<p>If using partitioned LUNs, where raw devices are created for each of the partitions on the LUN, use this rule format:</p>
<pre class="screen">
ACTION=="add", KERNEL=="sd*[0-9]", PROGRAM=="/sbin/scsi_id -g -u -s %p", RESULT=="3600601601bd2180072193a9242c3dc11", RUN+="/bin/raw /dev/raw/raw%n %N"
</pre>
<p>Again, set RESULT to the output of <tt class="command">scsi_id -g -u -s /block/sdX</tt>.  This will create the raw device(s) <tt class="command">/dev/raw/raw1, /dev/raw/raw2</tt>, etc. for each partition on the LUN and they will be persistently bound to the LUN with WWID <tt class="command">3600601601bd2180072193a9242c3dc11</tt>.</p>
<li><b>Setting ownership and permissions on the raw devices:</b>
<p>To set specific ownership and/or permissions for the raw devices, add entries to <tt class="command">/etc/udev/rules.d/60-raw.rules</tt> in the following format:</p>
<pre class="screen">
ACTION=="add", KERNEL=="raw*", OWNER=="root", GROUP=="disk", MODE=="0660"
</pre>
<li><b>Testing and implementing the udev rules:</b>
<p>Before implementing them, use the <tt class="command">udevtest</tt> command to verify the udev rules work as expected.  To verify that the raw device is created for a specific disk or partition, eg /dev/sdb1:</p>
<pre class="screen">
[root@rhel5 rules.d]# udevtest /block/sdb/sdb1 | grep raw
main: run: '/bin/raw /dev/raw/raw1 /dev/.tmp-8-17'
</pre>
<p>To check ownership/permission settings for a particular raw device, eg /dev/raw/raw1:</p>
<pre class="screen">
[root@rhel5 rules.d]# udevtest /class/raw/raw1 | grep mode
udev_node_add: creating device node '/dev/raw/raw1', major = '162', minor = '1', mode = '0600', uid = '0', gid = '0'
</pre>
<p>Finally, to actually create the raw device(s), use the <tt class="command">start_udev</tt> command:</p>
<pre class="screen">
[root@rhel5 rules.d]# start_udev
Starting udev:                                             [  OK  ]
</pre>
<p>Check that the raw device(s) have been created:</p>
<pre class="screen">
[root@rhel5 rules.d]# raw -qa
/dev/raw/raw1:  bound to major 8, minor 17
[root@rhel5 rules.d]# ls -l /dev/raw
total 0
crw-rw---- 1 root   disk 162,  1 Jan 29 02:47 raw1
</pre>
<li><b>Creating persistent raw devices for multipathed LUNs:</b>
<p>Unfortunately it is not possible to write udev rules for creating raw devices on multipath devices (/dev/dm-*) without manipulating existing udev rules.  Modifying existing rules for this purpose could cause unforeseen problems and is not supported by Red Hat Global Support Services.<br />
If absolutely necessary, an alternate method for creating raw devices on top of multipath devices could be to create the raw devices in <tt class="command">/etc/rc.d/rc.local</tt>, so long as the raw device is not required before rc.local is executed.  For example:</p>
<pre class="screen">
/bin/raw /dev/raw/raw1 /dev/mpath/mpath1p1
/bin/raw /dev/raw/raw2 /dev/mpath/mpath1p2
</pre>
</ul>
<p><strong>Note:</strong> Raw device support is not enabled on the s390 architecture.</p>
<p><a href="https://bugzilla.redhat.com/show_bug.cgi?id=452534">https://bugzilla.redhat.com/show_bug.cgi?id=452534</a></p>
<p class="authorblurb">Red Hat&#8217;s customer service and support teams receive technical support questions from users all over the world. Red Hat technicians add the questions and answers to Red Hat Knowledgebase on a daily basis. Access to <a href="http://kbase.redhat.com/">Red Hat Knowledgebase</a> is free. Red Hat Magazine offers a preview into the Red Hat Knowledgebase by highlighting some of the most recent entries. The information provided in this article is for your information only. The origin of this information may be internal or external to Red Hat. While Red Hat attempts to verify the validity of this information before it is posted, Red Hat makes no express or implied claims to its validity.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.redhatmagazine.com/2008/09/17/tips-and-tricks-how-do-i-add-raw-device-mapping-in-red-hat-enterprise-linux-5/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Video: The history of Fedora</title>
		<link>http://www.redhatmagazine.com/2008/09/16/video-the-history-of-fedora/</link>
		<comments>http://www.redhatmagazine.com/2008/09/16/video-the-history-of-fedora/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 22:53:33 +0000</pubDate>
		<dc:creator>the editorial team</dc:creator>
		
		<category>multimedia</category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/09/16/video-the-history-of-fedora/</guid>
		<description><![CDATA[
Download this video: [Ogg Theora]

You&#8217;ve seen him here before, but it&#8217;s been a while since he popped in for a visit. You can enjoy his earlier work here, here, here or here. (Or check out his entire RHM collection).  Who is that masked man?  It&#8217;s the Fedora Project&#8217;s Greg DeKoenigsberg.  And who [...]]]></description>
			<content:encoded><![CDATA[<p><embed src="http://www.redhat.com/v/swf/flvplayer.swf?file=http://www.redhat.com/v/magazine/swf/HistoryOfFedora.flv &#038;autoStart=false&#038;image=http://www.redhat.com/g/magazine/video_stills/ss_HistoryOfFedora.png" width="320" height="260" quality="high" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
<div class="caption" >Download this video: [<a href="http://www.redhat.com/v/magazine/ogg/HistoryOfFedora.ogg">Ogg Theora</a>]</div>
<p><!-- caption --></p>
<p>You&#8217;ve seen him here before, but it&#8217;s been a while since he popped in for a visit. You can enjoy his earlier work <a href="http://www.redhatmagazine.com/2007/02/23/building-the-xo-introducing-sugar/">here</a>, <a href="http://www.redhatmagazine.com/2007/11/15/olpc-give-one-get-one-right-now/">here</a>, <a href="http://www.redhatmagazine.com/2007/10/17/creative-commons-artist-spotlight-philippe-mangold/">here</a> or <a href="http://www.redhatmagazine.com/2007/08/17/book-review-bash-cookbook/">here</a>. (Or check out his <a href="http://www.redhatmagazine.com/author/gregdek/">entire RHM collection</a>).  Who is that masked man?  It&#8217;s the Fedora Project&#8217;s Greg DeKoenigsberg.  And who better to talk about this history of the Fedora than someone who has been involved nearly every step of the way&#8230;
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.redhatmagazine.com/2008/09/16/video-the-history-of-fedora/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Tips and tricks: What is devlabel, and how do I use it?</title>
		<link>http://www.redhatmagazine.com/2008/09/15/tips-and-tricks-what-is-devlabel-and-how-do-i-use-it/</link>
		<comments>http://www.redhatmagazine.com/2008/09/15/tips-and-tricks-what-is-devlabel-and-how-do-i-use-it/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 18:53:13 +0000</pubDate>
		<dc:creator>the editorial team</dc:creator>
		
		<category>tips and tricks</category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/09/15/tips-and-tricks-what-is-devlabel-and-how-do-i-use-it/</guid>
		<description><![CDATA[Devlabel is a script which manages symbolic links to storage devices on your system. This is accomplished by utilizing the inherent unique identifiers (UUID) that each device should have in order to maintain a correctly pointing symlink in the event that the device name changes (eg. /dev/sdc1 becomes /dev/sdd1).

  

By adding  entries  [...]]]></description>
			<content:encoded><![CDATA[<p><!-- http://kbase.redhat.com/faq/FAQ_43_4625.shtm  -->Devlabel is a script which manages symbolic links to storage devices on your system. This is accomplished by utilizing the inherent unique identifiers (UUID) that each device should have in order to maintain a correctly pointing symlink in the event that the device name changes (eg. <tt class="COMMAND">/dev/sdc1</tt> becomes <tt class="COMMAND">/dev/sdd1</tt>).
</p>
<p>  <a id="more-1047"></a></p>
<p>
By adding  entries  using devlabel, users can instead reference all devices by their symlink and no longer have to worry about what the true name of their device is. Devlabel works with both IDE and SCSI storage.
</p>
<p>
Devlabel first tries to find the uuid of the partition that you are attempting to add to devlabel by using the <tt class="COMMAND">/usr/bin/partition_uuid</tt> program. Partition  UUIDs  are supported currently under ext2, ext3, xfs, jfs and ocfs. If no partition UUID can be found (or if it is not a partition you are adding) devlabel will then attempt to find either a SCSI uuid or IDE identifier.
</p>
<p>
To determine the unique identifier associated with a SCSI device, devlabel uses the program <tt class="COMMAND">/usr/bin/scsi_unique_id</tt>. If this program cannot determine a unique identifier for your block device then the device cannot be used with devlabel.
</p>
<p>
Example usage of the <tt class="COMMAND">devlabel</tt> command can be found below:</p>
<ul>
<li>
Add a device to be managed by devlabel</p>
<blockquote><p><tt CLASS="COMMAND"><b>
<pre>
devlabel add -d &lt;device&gt; -s &lt;link&gt;
</pre>
<p></b></tt></p></blockquote>
</li>
<li>
Remove a devlabel symlink </p>
<blockquote><p><tt CLASS="COMMAND"><b>
<pre>

devlabel remove -s &lt;link&gt;
</pre>
<p></b></tt></p></blockquote>
</li>
<li>
Report the status of all devlabel symlinks</p>
<blockquote><p><tt CLASS="COMMAND"><b>
<pre>
devlabel status
</pre>
<p></b></tt></p></blockquote>
</li>
<li>
Get the UUID of a particular device</p>
<blockquote><p><tt CLASS="COMMAND"><b>
<pre>
devlabel printid -d <device>
</pre>
<p></b></tt></p></blockquote>
</li>
</ul>
<p>
Once a devlabel has been configured files such as <tt class="COMMAND">/etc/fstab</tt> can be modified to reflect these changes and point to the symlink rather than the physical device itself.
</p>
<p>
The configuration file for <tt class="COMMAND">devlabel</tt> is <tt class="COMMAND">/etc/sysconfig/devlabel</tt>. This file tracks all the current device symlinks. It is not recommended to edit this file by hand.</p>
<p>
The <tt class="COMMAND">devlabel</tt> command is available from the <tt class="COMMAND">devlabel</tt> package for Red Hat Enterprise Linux 3 and onwards.<br />
For further information see the Red Hat Enterprise Linux System Administration Guide <a href="http://www.redhat.com/docs/manuals/enterprise/RHEL-3-Manual/sysadmin-guide/ch-devlabel.html" target="blank">http://www.redhat.com/docs/manuals/enterprise/RHEL-3-Manual/sysadmin-guide/ch-devlabel.html</a></p>
<p class="authorblurb">Red Hat&#8217;s customer service and support teams receive technical support questions from users all over the world. Red Hat technicians add the questions and answers to Red Hat Knowledgebase on a daily basis. Access to <a href="http://kbase.redhat.com/">Red Hat Knowledgebase</a> is free. Red Hat Magazine offers a preview into the Red Hat Knowledgebase by highlighting some of the most recent entries. The information provided in this article is for your information only. The origin of this information may be internal or external to Red Hat. While Red Hat attempts to verify the validity of this information before it is posted, Red Hat makes no express or implied claims to its validity.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.redhatmagazine.com/2008/09/15/tips-and-tricks-what-is-devlabel-and-how-do-i-use-it/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
