<?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>unixpowered.com</title>
	<atom:link href="http://www.unixpowered.com/unixpowered/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unixpowered.com/unixpowered</link>
	<description>:(){ :&#124;:&#38; };:</description>
	<lastBuildDate>Tue, 24 Jan 2012 13:45:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Flashing firmware on SunFire T2000</title>
		<link>http://www.unixpowered.com/unixpowered/2012/01/20/flashing-firmware-on-sunfire-t2000/</link>
		<comments>http://www.unixpowered.com/unixpowered/2012/01/20/flashing-firmware-on-sunfire-t2000/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 15:14:25 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[alom]]></category>
		<category><![CDATA[openboot]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[solaris tips]]></category>
		<category><![CDATA[sun hardware]]></category>

		<guid isPermaLink="false">http://www.unixpowered.com/unixpowered/?p=880</guid>
		<description><![CDATA[Not so long ago I had to flash firmware on SunFire T2000. It&#8217;s not a complicated thing. I need to do something with Service Controller and in the process I found out that there is no scadm utility on T2000. Why? I am not completely sure. Maybe someone can chime in. It&#8217;s probably because T2000 [...]]]></description>
			<content:encoded><![CDATA[<p>Not so long ago I had to flash firmware on SunFire T2000. It&#8217;s not a complicated thing. </p>
<p>I need to do something with Service Controller and in the process I found out that there is no <em>scadm</em> utility on T2000. Why? I am not completely sure. Maybe someone can chime in. It&#8217;s probably because T2000 runs ALOM CMT which is not the same as ALOM.</p>
<p>Anyway, there are two methods of doing all this. You can use SC&#8217;s <em>flashupdate</em> command to grab firmware off an FTP server. Unfortunately I did not have Net management port hooked up, only serial. Long story&#8230;</p>
<p>I had to transfer the firmware archive to the server and then, using included utility upload it to System Controller and perform firmware flashing.</p>
<p>Before starting note your current firmware version by logging into System Controller:</p>
<p><code>sc> <strong>showhost</strong><br />
Sun-Fire-T2000 System Firmware 6.3.9&nbsp;&nbsp;2007/08/16 23:53<br />
Host flash versions:<br />
&nbsp;&nbsp;&nbsp;Hypervisor 1.3.4 2007/03/28 06:03<br />
&nbsp;&nbsp;&nbsp;OBP 4.25.8 2007/08/16 10:59<br />
&nbsp;&nbsp;&nbsp;POST 4.25.8 2007/08/16 11:26</code></p>
<p>Start by transferring the firmware archive to the server and unzipping it:</p>
<p><code>bash-3.00# <strong>ls</strong><br />
139434-09<br />
bash-3.00# <strong>cd 139434-09</strong><br />
bash-3.00# ls<br />
139434-09.html<br />
Install.info<br />
LEGAL_LICENSE.TXT<br />
Legal<br />
README.139434-09<br />
Sun_Fire_T2000_metadata.xml<br />
Sun_System_Firmware-6_7_12-SPARC_Enterprise_T2000.bin<br />
Sun_System_Firmware-6_7_12-Sun_Fire_T2000.bin<br />
copyright<br />
sysfwdownload<br />
sysfwdownload.README</code></p>
<p>Using included <em>sysfwdownload</em> utility upload the firmware to System Controller. This takes roughly 15-20 minutes.</p>
<p><code>bash-3.00# <strong>./sysfwdownload Sun_System_Firmware-6_7_12-Sun_Fire_T2000.bin</strong><br />
&nbsp;<br />
.......... (9%).......... (18%).......... (27%).......... (37%).......... (46%).......... (55%).......... (64%).......... (74%).......... (83%).......... (92%)......... (100%)<br />
&nbsp;<br />
Download completed successfully.<br />
bash-3.00# </code></p>
<p>At this point firmware is on System Controller. Now you need to shut down the system. </p>
<p><code>bash-3.00# <strong>shutdown -g0 -y -i0</strong></code></p>
<p>Power down the system from SC console and proceed with firmware flashing. </p>
<p><code>{8} ok sc> poweroff<br />
Are you sure you want to power off the system [y/n]?&nbsp;&nbsp;<strong>y</strong><br />
sc><br />
SC Alert: SC Request to Power Off Host.<br />
&nbsp;<br />
SC Alert: Host system has shut down.</code></p>
<p>Next, make sure keyswitch is set to <em>NORMAL</em>. If it is set to <em>LOCKED</em> you will not be able to flash the firmware or send <em>STOP-A</em> to the system. If keyswitch is set to <em>NORMAL</em> start actual flashing process using <em>flashupdate</em> command:</p>
<p><code>sc> <strong>showkeyswitch</strong><br />
Keyswitch is in the NORMAL position.<br />
sc> <strong>flashupdate -s 127.0.0.1</strong><br />
&nbsp;<br />
SC Alert: System poweron is disabled.<br />
.............................................................<br />
.............................................................<br />
............................................................<br />
&nbsp;<br />
Update complete. Reset device to use new software.<br />
&nbsp;<br />
SC Alert: SC firmware was reloaded</code></p>
<p>At this point firmware is flashed. You still have to reset SC so it loads the new firmware:</p>
<p><code>sc> <strong>resetsc</strong><br />
Are you sure you want to reset the SC [y/n]?&nbsp;&nbsp;<strong>y</strong><br />
User Requested SC Shutdown<br />
&nbsp;<br />
ALOM&nbsp;BOOTMON&nbsp;v1.7.11<br />
ALOM&nbsp;Build&nbsp;Release:&nbsp;001<br />
Reset&nbsp;register:&nbsp;00000000<br />
&nbsp;<br />
ALOM&nbsp;POST&nbsp;1.0<br />
&nbsp;<br />
&nbsp;<br />
Dual&nbsp;Port&nbsp;Memory&nbsp;Test,&nbsp;PASSED.<br />
&nbsp;<br />
TTY&nbsp;External&nbsp;-&nbsp;Internal&nbsp;Loopback&nbsp;Test<br />
TTY&nbsp;External&nbsp;-&nbsp;Internal&nbsp;Loopback&nbsp;Test,&nbsp;PASSED.<br />
&nbsp;<br />
TTYC&nbsp;-&nbsp;Internal&nbsp;Loopback&nbsp;Test<br />
TTYC&nbsp;-&nbsp;Internal&nbsp;Loopback&nbsp;Test,&nbsp;PASSED.<br />
&nbsp;<br />
TTYD&nbsp;-&nbsp;Internal&nbsp;Loopback&nbsp;Test<br />
TTYD&nbsp;-&nbsp;Internal&nbsp;Loopback&nbsp;Test,&nbsp;PASSED.<br />
&nbsp;<br />
Memory&nbsp;Data&nbsp;Lines&nbsp;Test<br />
Memory&nbsp;Data&nbsp;Lines&nbsp;Test,&nbsp;PASSED.<br />
&nbsp;<br />
Memory&nbsp;Address&nbsp;Lines&nbsp;Test<br />
&nbsp;&nbsp;Slide&nbsp;address&nbsp;bits&nbsp;to&nbsp;test&nbsp;open&nbsp;address&nbsp;lines<br />
&nbsp;&nbsp;Test&nbsp;for&nbsp;shorted&nbsp;address&nbsp;lines<br />
Memory&nbsp;Address&nbsp;Lines&nbsp;Test,&nbsp;PASSED.<br />
&nbsp;<br />
Boot&nbsp;Sector&nbsp;FLASH&nbsp;CRC&nbsp;Test<br />
Boot&nbsp;Sector&nbsp;FLASH&nbsp;CRC&nbsp;Test,&nbsp;PASSED.<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
Return&nbsp;to&nbsp;Boot&nbsp;Monitor&nbsp;for&nbsp;Handshake<br />
ALOM&nbsp;POST&nbsp;1.0<br />
&nbsp;&nbsp;&nbsp;Status&nbsp;=&nbsp;00007fff<br />
&nbsp;<br />
Returned&nbsp;from&nbsp;Boot&nbsp;Monitor&nbsp;and&nbsp;Handshake<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
Loading&nbsp;the&nbsp;runtime&nbsp;image...&nbsp;VxWorks&nbsp;running.<br />
&nbsp;<br />
Starting&nbsp;Advanced&nbsp;Lights&nbsp;Out&nbsp;Manager&nbsp;CMT&nbsp;v1.7.11<br />
&nbsp;<br />
Copyright&nbsp;(c)&nbsp;2010,&nbsp;Oracle&nbsp;and/or&nbsp;its&nbsp;affiliates.&nbsp;All&nbsp;rights&nbsp;reserved.<br />
Current&nbsp;mode:&nbsp;NORMAL<br />
Attaching&nbsp;network&nbsp;interface&nbsp;lo0...&nbsp;done.<br />
Attaching&nbsp;network&nbsp;interface&nbsp;motfec0....&nbsp;done.<br />
Booting&nbsp;from&nbsp;Segment&nbsp;0<br />
&nbsp;<br />
&nbsp;<br />
Oracle&nbsp;Advanced&nbsp;Lights&nbsp;Out&nbsp;Manager&nbsp;CMT&nbsp;v1.7.11<br />
&nbsp;<br />
&nbsp;<br />
SC&nbsp;Alert:&nbsp;SC&nbsp;System&nbsp;booted.<br />
&nbsp;<br />
&nbsp;<br />
Full&nbsp;VxDiag&nbsp;Tests<br />
&nbsp;<br />
BASIC&nbsp;TOD&nbsp;TEST<br />
&nbsp;&nbsp;Read&nbsp;the&nbsp;TOD&nbsp;Clock:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TUE&nbsp;NOV&nbsp;22&nbsp;22:04:15&nbsp;2011<br />
&nbsp;&nbsp;Wait,&nbsp;1&nbsp;-&nbsp;3&nbsp;seconds<br />
&nbsp;&nbsp;Read&nbsp;the&nbsp;TOD&nbsp;Clock:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TUE&nbsp;NOV&nbsp;22&nbsp;22:04:17&nbsp;2011<br />
BASIC&nbsp;TOD&nbsp;TEST,&nbsp;PASSED<br />
&nbsp;<br />
ETHERNET&nbsp;CPU&nbsp;LOOPBACK&nbsp;TEST<br />
&nbsp;&nbsp;50&nbsp;BYTE&nbsp;PACKET&nbsp;&nbsp;&nbsp;-&nbsp;a&nbsp;0&nbsp;in&nbsp;field&nbsp;of&nbsp;1's.<br />
&nbsp;&nbsp;50&nbsp;BYTE&nbsp;PACKET&nbsp;&nbsp;&nbsp;-&nbsp;a&nbsp;1&nbsp;in&nbsp;field&nbsp;of&nbsp;0's.<br />
&nbsp;&nbsp;900&nbsp;BYTE&nbsp;PACKET&nbsp;&nbsp;-&nbsp;pseudo-random&nbsp;data.<br />
ETHERNET&nbsp;CPU&nbsp;LOOPBACK&nbsp;TEST,&nbsp;PASSED<br />
&nbsp;<br />
Full&nbsp;VxDiag&nbsp;Tests&nbsp;-&nbsp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sp;&nbsp;MPC885&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;PASSED<br />
&nbsp;<br />
&nbsp;<br />
Please&nbsp;login:</code></p>
<p>After logging in make sure SC is running new version of firmware:</p>
<p><code>sc>&nbsp;<strong>showhost</strong><br />
Sun-Fire-T2000&nbsp;System&nbsp;Firmware&nbsp;6.7.12&nbsp;&nbsp;2011/07/06&nbsp;20:03<br />
&nbsp;<br />
Host&nbsp;flash&nbsp;versions:<br />
&nbsp;&nbsp;&nbsp;OBP&nbsp;4.30.4.d&nbsp;2011/07/06&nbsp;14:29<br />
&nbsp;&nbsp;&nbsp;Hypervisor&nbsp;1.7.3.c&nbsp;2010/07/09&nbsp;15:14<br />
&nbsp;&nbsp;&nbsp;POST&nbsp;4.30.4.b&nbsp;2010/07/09&nbsp;14:24</code></p>
<p>That&#8217;s it, now you can poweron the system.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/unixpowered/2012/01/20/flashing-firmware-on-sunfire-t2000/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unable to access console login prompt from ALOM</title>
		<link>http://www.unixpowered.com/unixpowered/2011/12/13/unable-to-access-console-login-prompt-from-alom/</link>
		<comments>http://www.unixpowered.com/unixpowered/2011/12/13/unable-to-access-console-login-prompt-from-alom/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 09:19:50 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[alom]]></category>
		<category><![CDATA[openboot]]></category>
		<category><![CDATA[smf]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[solaris tips]]></category>
		<category><![CDATA[sun hardware]]></category>

		<guid isPermaLink="false">http://www.unixpowered.com/unixpowered/?p=869</guid>
		<description><![CDATA[Not so long ago, I logged into System Controller of SunFire T2000 running Solaris 10 and tried to access server&#8217;s console. For some reason, usual console command did not work. It simply did not return anything. I figured maybe something was stuck, so I reset System Controller and tried again. Again, I got nothing, which [...]]]></description>
			<content:encoded><![CDATA[<p>Not so long ago, I logged into System Controller of <a title="SunFire T2000" href="http://docs.oracle.com/cd/E19076-01/t2k.srvr/index.html" target="_blank">SunFire T2000</a> running Solaris 10 and tried to access server&#8217;s console. For some reason, usual <em>console</em> command did not work. It simply did not return anything.</p>
<p>I figured maybe something was stuck, so I reset System Controller and tried again. Again, I got nothing, which was strange, because usually couple of &#8216;Enters&#8217; bring up console login prompt.</p>
<p>This had worked before so I knew there was not some configuration issue elsewhere. I vaguely remembered that I had a similar issue in Solaris 9. If you look at <em>/etc/inittab</em> on Solaris 9 and prior you will see something like this:</p>
<p><code>co:234:respawn:/usr/lib/saf/ttymon -g -h -p "`uname -n` console login: " -T sun -d /dev/console -l console -m ldterm,ttcompat</code></p>
<p>Killing <em>ttymon</em> process would cause init respawn it again in specified run-levels. This fixed my problem then. On Solaris 10 it&#8217;s different. Console login prompt is handled by <acronym title="Service Management Facility">SMF</acronym>: </p>
<p><code>bash-3.00# <strong>svcs -a | grep console-login</strong><br />
online&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;14:41:04 svc:/system/console-login:default</code></p>
<p>So, restarting <em>svc:/system/console-login:default</em> should fix the issue:</p>
<p><code>bash-3.00# <strong>svcadm restart svc:/system/console-login:default</strong></code></p>
<p>Now you should be able to get console login prompt from ALOM.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/unixpowered/2011/12/13/unable-to-access-console-login-prompt-from-alom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZFS and swapping</title>
		<link>http://www.unixpowered.com/unixpowered/2011/11/15/zfs-and-swapping/</link>
		<comments>http://www.unixpowered.com/unixpowered/2011/11/15/zfs-and-swapping/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 10:19:27 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[solaris]]></category>
		<category><![CDATA[solaris tips]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://www.unixpowered.com/unixpowered/?p=863</guid>
		<description><![CDATA[ZFS is great. Obviously. Generally when I do a server I install system on UFS and then mirror disks with SVM. I keep data and apps on ZFS. That&#8217;s nice, especially if ZFS is on a SAN. If something happens with the server I can move ZFS pools to a different server, if necessary. The [...]]]></description>
			<content:encoded><![CDATA[<p>ZFS is great. Obviously. Generally when I do a server I install system on UFS and then mirror disks with <acronym title="Solaris Volume Manager">SVM</acronym>. I keep data and apps on ZFS. That&#8217;s nice, especially if ZFS is on a SAN. If something happens with the server I can move ZFS pools to a different server, if necessary.</p>
<p>The server build process is just a preference. You can easily install Solaris 10 on ZFS and be done with it.</p>
<p>Not so long ago I ran into situation, where I needed to add some swap. For various reasons I did not want to shuffle slicing on system disks while system is running. Nor could I add a swap file on one of UFS filesystems. So The last option I had was to use one of the zpools:</p>
<p><code>bash-3.00# <strong>zpool status</strong><br />
&nbsp;&nbsp;pool:&nbsp;dudespool<br />
&nbsp;state:&nbsp;ONLINE<br />
&nbsp;scrub:&nbsp;none&nbsp;requested<br />
config:<br />
&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;STATE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;READ&nbsp;WRITE&nbsp;CKSUM<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dudespool&nbsp;&nbsp;&nbsp;ONLINE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mirror-0&nbsp;&nbsp;ONLINE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;c2t1d0&nbsp;&nbsp;ONLINE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;c2t2d0&nbsp;&nbsp;ONLINE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br />
&nbsp;<br />
errors:&nbsp;No&nbsp;known&nbsp;data&nbsp;errors</code></p>
<p>I was going to create a file to use it as swap area: </p>
<p><code>bash-3.00# <strong>cd /dudespool</strong><br />
bash-3.00# <strong>mkfile 50M swap</strong><br />
bash-3.00# <strong>swap -a /dudespool/swap</strong><br />
"/dudespool/swap" may contain holes - can't swap on it.</code></p>
<p>So that was that. As it turns out, ZFS can not be used for swap files. You have to create zvol and swap on that.</p>
<p><code>bash-3.00# <strong>zfs create -V 50M dudespool/swapvol</strong><br />
bash-3.00# <strong>swap -a /dev/zvol/dsk/dudespool/swapvol</strong><br />
bash-3.00# <strong>swap -l</strong><br />
swapfile&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dev&nbsp;&nbsp;swaplo&nbsp;blocks&nbsp;&nbsp;&nbsp;free<br />
/dev/md/dsk/d10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;85,10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;8&nbsp;1220928&nbsp;1220928<br />
/dev/zvol/dsk/dudespool/swapvol&nbsp;181,1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;8&nbsp;102392&nbsp;102392</code></p>
<p>There is more info on the net, just google it&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/unixpowered/2011/11/15/zfs-and-swapping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Very basic SELinux troubleshooting</title>
		<link>http://www.unixpowered.com/unixpowered/2011/10/31/very-basic-selinux-troubleshooting/</link>
		<comments>http://www.unixpowered.com/unixpowered/2011/10/31/very-basic-selinux-troubleshooting/#comments</comments>
		<pubDate>Mon, 31 Oct 2011 19:01:39 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux tips]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.unixpowered.com/blog/?p=853</guid>
		<description><![CDATA[SELinux has been around for a while in RedHat. SELinux is Mandatory Access Control mechanism. Starting with RedHat 6, the installer automatically sets SELinux to enforcing mode. When troubleshooting something SELinux is one more thing to keep in mind. If you are fixing something and you booted with SELinux disabled, all files created since you [...]]]></description>
			<content:encoded><![CDATA[<p><a title="SELinux wiki at Fedora Project" href="http://fedoraproject.org/wiki/SELinux" target="_blank">SELinux</a> has been around for a while in RedHat. SELinux is Mandatory Access Control mechanism. Starting with RedHat 6, the installer automatically sets SELinux to enforcing mode.</p>
<p>When troubleshooting something SELinux is one more thing to keep in mind.</p>
<p>If you are fixing something and you booted with SELinux disabled, all files created since you have disabled it will not have SELinux context (fcontext). This will cause filesystem relabelling, when you turn SELinux back on. This can take a long time and you will lose fcontexts unless you have added them to the policy database.</p>
<p>If you do decide to go this route, you can disable SELinux by passing <em>selinux=0</em> to init or edit <em>/etc/sysconfig/selinux</em> config file and the reboot.</p>
<p>When troubleshooting, it&#8217;s probably better to use <em>getenforce</em> and <em>setenforce</em> commands:</p>
<p><code>[root@ultra opt]# <strong>getenforce</strong><br />
Enforcing</code></p>
<p>To change SELinux status use <em>setenforce</em>:</p>
<p><code>[root@ultra opt]# <strong>setenforce 0</strong><br />
[root@ultra opt]# <strong>getenforce</strong><br />
Permissive</code></p>
<p>One thing that I forget sometimes is difference between <em>cp</em> and <em>mv</em> commands with respect to SELinux. Moving file preserves fcontext, whereas copying does not, unless you use <em>-a</em> option.</p>
<p>Then there are different booleans that can be read and set using <em>getsebool</em> and <em>setsebool</em>. The key thing to remember is that unless you supply <em>-P</em> option to <em>setsebool</em>, the change will not survive reboot.</p>
<p>If you are suspecting problems with fcontexts, you can use <em>chcon</em> and <em>semanage</em> tools. Using <em>chcon</em> changes context on a file or directory, but the context is not added to policy database, so it will not survive reboot.</p>
<p><code>[root@ultra opt]# <strong>chcon --reference /var/www/html /www</strong></code></p>
<p>This is handy if you want to quickly test out fcontext. The command applies the same fcontext from <em>/var/www/html</em> to <em>/www</em>.</p>
<p>To make fcontext stick across reboots you have to do something like:</p>
<p><code>[root@ultra opt]# <strong>semanage -a -t public_content_t '/www(/.*)?'</strong></code></p>
<p>You will need to substitute desired fcontext in place of <em>public_content_t</em>.</p>
<p>Then there is <em>setroubleshootd</em>, which along with <em>sealert</em> can help you figure out what&#8217;s happening. The log file <em>/var/log/messages</em> will contain SELinux messages that setroubleshootd intercepts when it&#8217;s running, giving you <em>sealert</em> command to run to see in detail what SELinux violation occurred.</p>
<p>That would be it in a very basic nutshell.</p>
<p>One more thing to remember, if you did something like:</p>
<p><code>[root@ultra opt]# <strong>semanage -a -t private_content_t '/www/stuff(/.*)?'</strong><br />
[root@ultra opt]# <strong>semanage -a -t public_content_t '/www(/.*)?'</strong></code></p>
<p>Then during next filesystem relabel <em>/www/stuff</em> will have <em>public_content_t fcontext</em>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/unixpowered/2011/10/31/very-basic-selinux-troubleshooting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenBoot: All CPUs failed or disabled</title>
		<link>http://www.unixpowered.com/unixpowered/2011/09/19/openboot-all-cpus-failed-or-disabled/</link>
		<comments>http://www.unixpowered.com/unixpowered/2011/09/19/openboot-all-cpus-failed-or-disabled/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 19:32:44 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[openboot]]></category>
		<category><![CDATA[sun hardware]]></category>

		<guid isPermaLink="false">http://www.unixpowered.com/blog/?p=840</guid>
		<description><![CDATA[I guess every day you learn something new. This incident happened on Sun Fire V480R. The server was running for running for ages but for one reason or another it had to be rebooted. So after the diags ran, it came back with this: Sun&#160;Fire&#160;480R,&#160;No&#160;Keyboard Copyright&#160;1998-2003&#160;Sun&#160;Microsystems,&#160;Inc.&#160;&#160;All&#160;rights&#160;reserved. OpenBoot&#160;4.10.7,&#160;4096&#160;MB&#160;memory&#160;installed,&#160;Serial&#160;#55408554. Ethernet&#160;address&#160;0:3:ba:4d:77:aa,&#160;Host&#160;ID:&#160;834d77aa. &#160; &#160; &#160; &#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; FATAL:&#160;All&#160;CPUs&#160;failed&#160;or&#160;disabled. Hmm, [...]]]></description>
			<content:encoded><![CDATA[<p>I guess every day you learn something new. This incident happened on Sun Fire V480R. The server was running for running for ages but for one reason or another it had to be rebooted. </p>
<p>So after the diags ran, it came back with this:</p>
<p><code>Sun&nbsp;Fire&nbsp;480R,&nbsp;No&nbsp;Keyboard<br />
Copyright&nbsp;1998-2003&nbsp;Sun&nbsp;Microsystems,&nbsp;Inc.&nbsp;&nbsp;All&nbsp;rights&nbsp;reserved.<br />
OpenBoot&nbsp;4.10.7,&nbsp;4096&nbsp;MB&nbsp;memory&nbsp;installed,&nbsp;Serial&nbsp;#55408554.<br />
Ethernet&nbsp;address&nbsp;0:3:ba:4d:77:aa,&nbsp;Host&nbsp;ID:&nbsp;834d77aa.<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
FATAL:&nbsp;All&nbsp;CPUs&nbsp;failed&nbsp;or&nbsp;disabled.</code></p>
<p>Hmm, interesting. This was the first time I have seen this error. Admittedly, it was a little bit stressful, because the system had to come back up, never mind the fact that the hardware is at a completely different location.</p>
<p>So, pretty much the only viable options was to make server boot somehow. Let&#8217;s see what had been <acronym title="Automatic System Recovery">ASR</acronym> disabled:</p>
<p><code>{3}&nbsp;ok&nbsp;<strong>.asr</strong><br />
ASR&nbsp;Disablement&nbsp;Status<br />
Component:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Status<br />
&nbsp;<br />
CPU/Memory:&nbsp;&nbsp;&nbsp;&nbsp;Enabled<br />
IO-Bridge5:&nbsp;&nbsp;&nbsp;&nbsp;Enabled<br />
IO-Bridge8:&nbsp;&nbsp;&nbsp;&nbsp;Enabled<br />
IO-Bridge9:&nbsp;&nbsp;&nbsp;&nbsp;Enabled<br />
GPTwo&nbsp;Slots:&nbsp;&nbsp;&nbsp;Enabled<br />
Onboard&nbsp;FCAL:&nbsp;&nbsp;Enabled<br />
Onboard&nbsp;Net1:&nbsp;&nbsp;Enabled<br />
Onboard&nbsp;Net0:&nbsp;&nbsp;Enabled<br />
Onboard&nbsp;IDE:&nbsp;&nbsp;&nbsp;Enabled<br />
PCI&nbsp;Slots:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enabled</code></p>
<p>All seems OK to me. Let&#8217;s see if disabling and enabling CPU/Memory banks will do the trick:</p>
<p><code>{3}&nbsp;ok&nbsp;<strong>asr-disable&nbsp;cpu0</strong><br />
{3}&nbsp;ok&nbsp;<strong>asr-disable&nbsp;cpu1</strong><br />
{3}&nbsp;ok&nbsp;<strong>asr-disable&nbsp;cpu2</strong><br />
{3}&nbsp;ok&nbsp;<strong>asr-disable&nbsp;cpu3</strong><br />
{3}&nbsp;ok&nbsp;<strong>.asr</strong><br />
ASR&nbsp;Disablement&nbsp;Status<br />
Component:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Status<br />
&nbsp;<br />
CPU0:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Disabled<br />
Memory&nbsp;Bank0:&nbsp;&nbsp;Enabled<br />
Memory&nbsp;Bank1:&nbsp;&nbsp;Enabled<br />
Memory&nbsp;Bank2:&nbsp;&nbsp;Enabled<br />
Memory&nbsp;Bank3:&nbsp;&nbsp;Enabled<br />
CPU1/Memory:&nbsp;&nbsp;&nbsp;Disabled<br />
Memory&nbsp;Bank0:&nbsp;&nbsp;Enabled<br />
Memory&nbsp;Bank1:&nbsp;&nbsp;Enabled<br />
Memory&nbsp;Bank2:&nbsp;&nbsp;Enabled<br />
Memory&nbsp;Bank3:&nbsp;&nbsp;Enabled<br />
CPU2:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Disabled<br />
Memory&nbsp;Bank0:&nbsp;&nbsp;Enabled<br />
Memory&nbsp;Bank1:&nbsp;&nbsp;Enabled<br />
Memory&nbsp;Bank2:&nbsp;&nbsp;Enabled<br />
Memory&nbsp;Bank3:&nbsp;&nbsp;Enabled<br />
CPU3:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Disabled<br />
Memory&nbsp;Bank0:&nbsp;&nbsp;Enabled<br />
Memory&nbsp;Bank1:&nbsp;&nbsp;Enabled<br />
Memory&nbsp;Bank2:&nbsp;&nbsp;Enabled<br />
Memory&nbsp;Bank3:&nbsp;&nbsp;Enabled<br />
IO-Bridge5:&nbsp;&nbsp;&nbsp;&nbsp;Enabled<br />
IO-Bridge8:&nbsp;&nbsp;&nbsp;&nbsp;Enabled<br />
IO-Bridge9:&nbsp;&nbsp;&nbsp;&nbsp;Enabled<br />
GPTwo&nbsp;Slots:&nbsp;&nbsp;&nbsp;Enabled<br />
Onboard&nbsp;FCAL:&nbsp;&nbsp;Enabled<br />
Onboard&nbsp;Net1:&nbsp;&nbsp;Enabled<br />
Onboard&nbsp;Net0:&nbsp;&nbsp;Enabled<br />
Onboard&nbsp;IDE:&nbsp;&nbsp;&nbsp;Enabled<br />
PCI&nbsp;Slots:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enabled<br />
&nbsp;<br />
{3}&nbsp;ok&nbsp;<strong>asr-enable&nbsp;cpu0</strong><br />
{3}&nbsp;ok&nbsp;<strong>asr-enable&nbsp;cpu1</strong><br />
{3}&nbsp;ok&nbsp;<strong>asr-enable&nbsp;cpu2</strong><br />
{3}&nbsp;ok&nbsp;<strong>asr-enable&nbsp;cpu3</strong><br />
{3}&nbsp;ok&nbsp;<strong>reset-all</strong></code></p>
<p>After reset, the system came back again with the same error, saying all CPU&#8217;s were failed or disabled. So the whole enable,disable procedure was repeated again. Except this time, the system was powered off and then back on.</p>
<p>This time it booted happily. Maybe simple poweroff and poweron would suffice. Anyways, there is some good information right <a title="Enable and disable components on Sun computers" href="http://wiki.ssystems.de/doku.php?id=enable_and_disable_hardware_on_sun_and_solaris&#038;DokuWiki=8d5afac8f090556a585c8f8cf786a15c" target="_self">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/unixpowered/2011/09/19/openboot-all-cpus-failed-or-disabled/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

