<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TuXHaT&#187; Storage Archives  &#8211; Blog Title</title>
	<atom:link href="http://www.tuxhat.com/category/linux/storage/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tuxhat.com</link>
	<description>Linux / sysadmin / Debian / Ubuntu / Red Hat / Centos</description>
	<lastBuildDate>Tue, 13 Oct 2009 07:25:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>selinux denials on 3ware RAID SMART check</title>
		<link>http://www.tuxhat.com/linux/selinux-denials-and-smartd-in-linux/</link>
		<comments>http://www.tuxhat.com/linux/selinux-denials-and-smartd-in-linux/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 10:02:40 +0000</pubDate>
		<dc:creator>tux</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Selinux]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[3ware RAID]]></category>
		<category><![CDATA[SMART]]></category>
		<category><![CDATA[smartd]]></category>

		<guid isPermaLink="false">http://www.tuxhat.com/?p=54</guid>
		<description><![CDATA[  If you have a selinux enabled linux machine and is using smartd to check hard drives connected to 3ware RAID controller, you may encounter with couple of denials as below,
 kernel: type=1400 audit(1252046658.420:122): avc:  denied  { ioctl } for  pid=28988 comm=&#8221;smartd&#8221; path=&#8221;/dev/twa0&#8243; dev=tmpfs ino=7729 scontext=root:system_r:fsdaemon_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=chr_file
kernel: type=1400 audit(1252049165.256:123): avc: [...]]]></description>
			<content:encoded><![CDATA[<p>  If you have a selinux enabled linux machine and is using smartd to check hard drives connected to 3ware RAID controller, you may encounter with couple of denials as below,</p>
<p> kernel: type=1400 audit(1252046658.420:122): avc:  denied  { ioctl } for  pid=28988 comm=&#8221;smartd&#8221; path=&#8221;/dev/twa0&#8243; dev=tmpfs ino=7729 scontext=root:system_r:fsdaemon_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=chr_file</p>
<p>kernel: type=1400 audit(1252049165.256:123): avc:  denied  { getattr } for  pid=18264 comm=&#8221;smartd&#8221; path=&#8221;/dev/twa0&#8243; dev=tmpfs ino=7729 scontext=user_u:system_r:fsdaemon_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=chr_file</p>
<p> kernel: type=1400 audit(1252049165.258:124): avc:  denied  { read } for  pid=18264 comm=&#8221;smartd&#8221; name=&#8221;twa0&#8243; dev=tmpfs ino=7729 scontext=user_u:system_r:fsdaemon_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=chr_file</p>
<p> kernel: type=1400 audit(1252049165.258:125): avc:  denied  { ioctl } for  pid=18264 comm=&#8221;smartd&#8221; path=&#8221;/dev/twa0&#8243; dev=tmpfs ino=7729 scontext=user_u:system_r:fsdaemon_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=chr_file</p>
<p> For default the 3ware RAID controller device /dev/twa0 will be having generic filecontext for /dev which is device_t. But smartd runs under context fsdaemon_t, which do not have access to object type device_t.</p>
<p>  So you need to relabel /dev/twa0 as below,</p>
<pre>chcon -t fixed_disk_device_t /dev/twa*</pre>
<p>Conclusion:</p>
<p> fsdaemon_t can operate on object types fixed_disk_device_t</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tuxhat.com/linux/selinux-denials-and-smartd-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SMART check for 3ware RAID drives</title>
		<link>http://www.tuxhat.com/linux/smart-check-on-3ware-raid/</link>
		<comments>http://www.tuxhat.com/linux/smart-check-on-3ware-raid/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 09:44:33 +0000</pubDate>
		<dc:creator>tux</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[3ware RAID]]></category>
		<category><![CDATA[SMART]]></category>
		<category><![CDATA[tw_cli]]></category>

		<guid isPermaLink="false">http://www.tuxhat.com/?p=49</guid>
		<description><![CDATA[    SMART checks can be performed on hard drives connected to 3ware RAID controllers. The RAID device will be identified as /dev/twa0-15 or /dev/twe0-15 depending on the controller you are using. Each controller will be having ports on to which the hard drives will be connected. For eg: p0 , p1 , [...]]]></description>
			<content:encoded><![CDATA[<p>    SMART checks can be performed on hard drives connected to 3ware RAID controllers. The RAID device will be identified as /dev/twa0-15 or /dev/twe0-15 depending on the controller you are using. Each controller will be having ports on to which the hard drives will be connected. For eg: p0 , p1 , p2 etc.</p>
<p> You may use tw_cli command line utility provided by 3ware to identify the ports on which hard drives are connected.</p>
<pre>
tw_cli /c0/u0 show
</pre>
<p> Above will give details of RAID configuration for unit 0 (u0) on 3ware RAID controller 0 (c0).</p>
<p> Once you got the information on ports , you may do SMART checks on your hard drives as below,</p>
<pre>
smartctl -H -d 3ware,0 /dev/twa0
</pre>
<p>=== START OF READ SMART DATA SECTION ===<br />
SMART overall-health self-assessment test result: PASSED</p>
<p> Here &#8216;-d 3ware,0&#8242; denotes hard drive connected  to port 0. Similarly port 1, port 2 etc. can be checked.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tuxhat.com/linux/smart-check-on-3ware-raid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
