<?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>Solutions Log &#187; sysadmin</title>
	<atom:link href="http://solutions.unixsherpa.com/category/sysadmin/feed/" rel="self" type="application/rss+xml" />
	<link>http://solutions.unixsherpa.com</link>
	<description>by Dan Reiland</description>
	<lastBuildDate>Fri, 16 Apr 2010 20:28:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>The device, \Device\Ide\iaStor0, did not respond within the timeout period</title>
		<link>http://solutions.unixsherpa.com/2010/03/25/the-device-deviceideiastor0-did-not-respond-within-the-timeout-period/</link>
		<comments>http://solutions.unixsherpa.com/2010/03/25/the-device-deviceideiastor0-did-not-respond-within-the-timeout-period/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 16:38:21 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[ICH10R]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[seagate]]></category>
		<category><![CDATA[ST3500320AS]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=280</guid>
		<description><![CDATA[Issue: After an updated release of Intel's Matrix Storage Manager [v.8.9.0.1023] and chipset drivers for Windows, you experience unexpected system timeouts, lockups, pausing, or freezing. The following event is recorded in the System event log: Log Name: System Source: iaStor EventID: 9 Level: Error The device, \Device\Ide\iaStor0, did not respond within the timeout period. Cause: [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Issue:</strong><br />
After an updated release of Intel's Matrix Storage Manager [v.8.9.0.1023] and chipset drivers for Windows, you experience unexpected system timeouts, lockups, pausing, or freezing. The following event is recorded in the System event log:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Log Name: System<br />
Source: iaStor<br />
EventID: 9<br />
Level: Error<br />
The device, \Device\Ide\iaStor0, did not respond within the timeout period.</div></div>
<p><strong>Cause:</strong><br />
The issue is the result of Aggressive Link State Power Management (ALPM) on the PCI-Express bus negotiating a lower power state for the link between the controller and disk when there is no activity. When ALPM works, disk requests are queued, the serial link revived, and the queued requests are sent to the relevant disk; this requires a disk that supports ALPM.</p>
<p><strong>Resolution:</strong><br />
Modify the advanced settings of your active power management scheme in Windows to turn PCI Express Link State Power Management off.<br />
<a href="http://solutions.unixsherpa.com/wp-content/uploads/2010/03/power-1.jpg"><img src="http://solutions.unixsherpa.com/wp-content/uploads/2010/03/power-1-300x224.jpg" alt="" title="Change Plan Settings" width="300" height="224" class="aligncenter size-medium wp-image-298" /></a><br />
<a href="http://solutions.unixsherpa.com/wp-content/uploads/2010/03/power-2.jpg"><img src="http://solutions.unixsherpa.com/wp-content/uploads/2010/03/power-2-300x225.jpg" alt="" title="Change advanced power settings" width="300" height="225" class="aligncenter size-medium wp-image-295" /></a><br />
<a href="http://solutions.unixsherpa.com/wp-content/uploads/2010/03/power-3.jpg"><img src="http://solutions.unixsherpa.com/wp-content/uploads/2010/03/power-3.jpg" alt="" title="PCI Express Link State Power Management" width="420" height="449" class="aligncenter size-full wp-image-294" /></a></p>
<p><strong>Commentary:</strong><br />
Searching for a solution yielded a number of possibilities.</p>
<p>Setting the value of:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">HKLM\SYSTEM\CurrentControlSet\Services\iaSTOR\Parameters\PortN\LPMDSTATE &nbsp;0</div></div>
<p>as discussed by <a href="http://derek858.blogspot.com/2009/01/windows-7-intel-sataahci-lockups.html">Derek Seaman</a> did not resolve my issue.</p>
<p>Renaming:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">HKLM\SYSTEM\CurrentControlSet\Services\iaSTOR\Parameters</div></div>
<p>to</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">HKLM\SYSTEM\CurrentControlSet\Services\iaSTOR\Parameters.dist</div></div>
<p>as suggested by <a href="http://www.paulscomputerservice.net/index.php?body=./os/intelSataError9.php">Paul's Computer Service</a> was also ineffective. At the time I was running the latest set of drivers for my <a href="http://www.intel.com/products/desktop/chipsets/x58/x58-overview.htm">platform</a>. Caveat emptor: the solution I outlined in this article worked for me.</p>
<p><strong>References:</strong><br />
<a href="http://www.intel.com/support/chipsets/imsm/sb/cs-025783.htm">Intel CS-025783 - Possible issues with Windows Vista* and Intel® RAID</a><br />
<a href="http://derek858.blogspot.com/2009/01/windows-7-intel-sataahci-lockups.html">Windows 7 Intel SATA/AHCI Lockups</a><br />
<a href="http://www.paulscomputerservice.net/index.php?body=./os/intelSataError9.php">Intel® Matrix Storage Manager Bug</a></p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2010/03/25/the-device-deviceideiastor0-did-not-respond-within-the-timeout-period/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Reformat and reindent an XML file</title>
		<link>http://solutions.unixsherpa.com/2010/02/11/reformat-and-reindent-an-xml-file/</link>
		<comments>http://solutions.unixsherpa.com/2010/02/11/reformat-and-reindent-an-xml-file/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 18:14:53 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Shell]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=248</guid>
		<description><![CDATA[This is easy to accomplish with xmllint and a shell one-liner: xmllint --format inputfile.xml &#62; outputfile.xml]]></description>
			<content:encoded><![CDATA[<p>This is easy to accomplish with <em>xmllint</em> and a shell one-liner:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">xmllint --format inputfile.xml &gt; outputfile.xml</div></div>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2010/02/11/reformat-and-reindent-an-xml-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>xinetd per_source limit issues</title>
		<link>http://solutions.unixsherpa.com/2010/02/09/xinetd-per_source-limit-issues/</link>
		<comments>http://solutions.unixsherpa.com/2010/02/09/xinetd-per_source-limit-issues/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 09:32:34 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[xinetd]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=241</guid>
		<description><![CDATA[Issue: Users note availability issues when accessing services backed by xinetd (subversion, rsync, etc.) Identification: Syslog on the affected server will present multiple lines containing daemon per_source_limit for 0.0.0.0. Cause: You have exceeded per_source_limit defaults imposed by your xinetd configuration. Many distributions include per_source limits that may not be suitable for your use case. Evaluate [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Issue:</strong><br />
Users note availability issues when accessing services backed by xinetd (subversion, rsync, etc.)</p>
<p><strong>Identification:</strong><br />
Syslog on the affected server will present multiple lines containing <code class="codecolorer text twitlight"><span class="text">daemon per_source_limit for 0.0.0.0</span></code>.</p>
<p><strong>Cause:</strong><br />
You have exceeded per_source_limit defaults imposed by your xinetd configuration. Many distributions include per_source limits that may not be suitable for your use case. Evaluate your needs carefully.</p>
<p><strong>Resolution:</strong><br />
Modify the default setting for per_source in <code class="codecolorer text twitlight"><span class="text">/etc/xinetd.conf</span></code> or modify the service specific configuration (recommended) under <code class="codecolorer text twitlight"><span class="text">/etc/xinet.d</span></code>. per_source limits may be set as follows:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">per_source = 10</div></div>
<p>per_source may be set to an integer or UNLIMITED (the number represents the number of connections allowed per host). A sensible fixed value is <strong>always</strong> better than UNLIMITED.</p>
<p><em>Reference:</em> xinetd.conf(5)</p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2010/02/09/xinetd-per_source-limit-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset HP Integrated Lights Out Board to Factory Defaults</title>
		<link>http://solutions.unixsherpa.com/2010/01/05/reset-hp-integrated-lights-out-board-to-factory-defaults/</link>
		<comments>http://solutions.unixsherpa.com/2010/01/05/reset-hp-integrated-lights-out-board-to-factory-defaults/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 21:45:19 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[hp]]></category>
		<category><![CDATA[ilo]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[riloe]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=230</guid>
		<description><![CDATA[Issue: Cannot login to HP Integrated Lights Out Board (bad credentials). Cause: Someone failed to record the configuration. Solution: If an operating system supported by HP Proliant Essentials is installed along with a recent Proliant Support Pack, you may reset the Integrated Lights Out board to its factory defaults. Use the HP Lights-Out Online Configuration [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Issue:</strong><br />
Cannot login to HP Integrated Lights Out Board (bad credentials).</p>
<p><strong>Cause:</strong><br />
Someone failed to record the configuration.</p>
<p><strong>Solution:</strong><br />
If an operating system supported by HP Proliant Essentials is installed along with a recent Proliant Support Pack, you may reset the Integrated Lights Out board to its factory defaults. Use the HP Lights-Out Online Configuration utility.</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">C:\Program Files\HP\hponcfg\hponcfg.exe <span style="color: #000000; font-weight: bold;">/</span>reset</div></div>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2010/01/05/reset-hp-integrated-lights-out-board-to-factory-defaults/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Honor Guest IDE/SATA Flush Requests</title>
		<link>http://solutions.unixsherpa.com/2009/12/07/honor-guest-idesata-flush-requests/</link>
		<comments>http://solutions.unixsherpa.com/2009/12/07/honor-guest-idesata-flush-requests/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 20:43:59 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=226</guid>
		<description><![CDATA[Issue: VirtualBox ignores IDE/SATA disk flush requests. Cause: This is by design. To improve performance VirtualBox ignores these requests. This can create an issue with filesystems that do not have fsck-like tools (ZFS is an example) create a situation where the on disk information is inconsistent due to data held in RAM. Solution: To enable [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Issue:</strong><br />
VirtualBox ignores IDE/SATA disk flush requests.</p>
<p><strong>Cause:</strong><br />
This is by design. To improve performance VirtualBox ignores these requests. This can create an issue with filesystems that do not have fsck-like tools (ZFS is an example) create a situation where the on disk information is inconsistent due to data held in RAM.</p>
<p><strong>Solution:</strong><br />
To enable flushing for IDE disks, issue the following command:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">VBoxManage setextradata VMNAME <br />
&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">&quot;VBoxInternal/Devices/piix3ide/0/LUN#[x]/Config/IgnoreFlush&quot;</span> <span style="color: #000000;">0</span></div></div>
<p>The value [x] that selects the disk is 0 for the master device on the first channel, 1 for the slave device on the first channel, 2 for the master device on the second channel or 3 for the master device on the second channel.</p>
<p>To enable flushing for SATA disks, issue the following command:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">VBoxManage setextradata VMNAME <br />
&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">&quot;VBoxInternal/Devices/ahci/0/LUN#[x]/Config/IgnoreFlush&quot;</span> <span style="color: #000000;">0</span></div></div>
<p>The value [x] that selects the disk can be a value between 0 and 29.</p>
<p>Reference: <a href="http://www.virtualbox.org/manual/UserManual.html#id2499944">http://www.virtualbox.org/manual/UserManual.html#id2499944</a></p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/12/07/honor-guest-idesata-flush-requests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replace Pipes with Tabs in a Delimited File</title>
		<link>http://solutions.unixsherpa.com/2009/12/04/replace-pipes-with-tabs-in-a-delimited-file/</link>
		<comments>http://solutions.unixsherpa.com/2009/12/04/replace-pipes-with-tabs-in-a-delimited-file/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 20:44:37 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Apple OSX]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Regular Expression]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=224</guid>
		<description><![CDATA[Issue: It is often necessary to replace delimiters in a file with a form the receiving party expects. sed is my favorite method of meeting the need. Solution: Replace double pipes with tabs sed 's/&#124;&#124;/ &#160; &#160; &#160; &#160; &#160; /g' file.in &#62; file.out Note: If you find the tab key simply does not work, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Issue:</strong><br />
It is often necessary to replace delimiters in a file with a form the receiving party expects. sed is my favorite method of meeting the need.</p>
<p><strong>Solution:</strong><br />
Replace double pipes with tabs</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/||/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /g'</span> file.in <span style="color: #000000; font-weight: bold;">&gt;</span> file.out</div></div>
<p><em>Note: If you find the tab key simply does not work, try CTRL+V+I from your terminal.</em><br />
<em>Reference: <a href="http://forums.devshed.com/unix-help-35/replacing-tabs-with-spaces-372623.html">http://forums.devshed.com/unix-help-35/replacing-tabs-with-spaces-372623.html</a></em></p>
<p><strong>Caveats:</strong><br />
Special consideration (and a regex) will be required for data where delimiters are present in the data itself. Consider your use case and apply appropriately.</p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/12/04/replace-pipes-with-tabs-in-a-delimited-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove a Range of Unwanted ZFS Snapshots from the Command Line</title>
		<link>http://solutions.unixsherpa.com/2009/11/25/remove-a-range-of-unwanted-zfs-snapshots-from-the-command-line/</link>
		<comments>http://solutions.unixsherpa.com/2009/11/25/remove-a-range-of-unwanted-zfs-snapshots-from-the-command-line/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 05:51:41 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[snapshots]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=218</guid>
		<description><![CDATA[Remove a range of unwanted snapshots, from the command line, if necessary. In the following example, all automatic snapshots in the bash shell are removed. for s in $&#40;zfs list -H -o name -t snapshot &#124; grep @zfs-auto-snap&#41;; do zfs destroy $s; done One could add a secondary pipe and grep statement to filter on [...]]]></description>
			<content:encoded><![CDATA[<p>Remove a range of unwanted snapshots, from the command line, if necessary.<br />
In the following example, <strong>all</strong> automatic snapshots in the bash shell are removed.</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">for</span> s <span style="color: #000000; font-weight: bold;">in</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span>zfs list <span style="color: #660033;">-H</span> <span style="color: #660033;">-o</span> name <span style="color: #660033;">-t</span> snapshot <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #000000; font-weight: bold;">@</span>zfs-auto-snap<span style="color: #7a0874; font-weight: bold;">&#41;</span>; <span style="color: #000000; font-weight: bold;">do</span> zfs destroy <span style="color: #007800;">$s</span>; <span style="color: #000000; font-weight: bold;">done</span></div></div>
<p>One could add a secondary pipe and grep statement to filter on individual file systems.</p>
<p>Reference: <a href="http://wikis.sun.com/display/OpenSolarisInfo200906/How+to+Manage+the+Automatic+ZFS+Snapshot+Service">How to Manage the Automatic ZFS Snapshot Service</a></p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/11/25/remove-a-range-of-unwanted-zfs-snapshots-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable X in OpenSolaris</title>
		<link>http://solutions.unixsherpa.com/2009/10/09/disable-x-in-opensolaris/</link>
		<comments>http://solutions.unixsherpa.com/2009/10/09/disable-x-in-opensolaris/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 03:18:46 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=207</guid>
		<description><![CDATA[From the shell pfexec svcadm disable gdm]]></description>
			<content:encoded><![CDATA[<p>From the shell</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">pfexec svcadm disable gdm</div></div>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/10/09/disable-x-in-opensolaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a pidof command to find PID numbers easily</title>
		<link>http://solutions.unixsherpa.com/2009/10/07/create-a-pidof-command-to-find-pid-numbers-easily/</link>
		<comments>http://solutions.unixsherpa.com/2009/10/07/create-a-pidof-command-to-find-pid-numbers-easily/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 20:30:44 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Apple OSX]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[init]]></category>
		<category><![CDATA[pid]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=205</guid>
		<description><![CDATA[Most UNIX environments include the pidof command which is put to use whenever one needs to quickly determine, by name, the pid of a running program. Apple's Mac OS X lacks the pidof command, however, one may approximate its function with the following shell script: #!/bin/sh ps axc&#124;awk &#34;{if (\$5==\&#34;$1\&#34;) print \$1}&#34;; Save the script [...]]]></description>
			<content:encoded><![CDATA[<p><em>Most</em> UNIX environments include the pidof command which is put to use whenever one needs to quickly determine, by name, the pid of a running program. Apple's Mac OS X lacks the pidof command, however, one may approximate its function with the following shell script:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/sh</span><br />
<span style="color: #c20cb9; font-weight: bold;">ps</span> axc<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">&quot;{if (<span style="color: #000099; font-weight: bold;">\$</span>5==<span style="color: #000099; font-weight: bold;">\&quot;</span>$1<span style="color: #000099; font-weight: bold;">\&quot;</span>) print <span style="color: #000099; font-weight: bold;">\$</span>1}&quot;</span>;</div></div>
<p>Save the script as /bin/pidof and be sure to set its executable bit:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">chmod</span> a+x <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">pidof</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/10/07/create-a-pidof-command-to-find-pid-numbers-easily/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable disk checking during boot on Linux systems</title>
		<link>http://solutions.unixsherpa.com/2009/08/27/disable-disk-checking-during-boot-on-linux-systems/</link>
		<comments>http://solutions.unixsherpa.com/2009/08/27/disable-disk-checking-during-boot-on-linux-systems/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 19:39:46 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[ext2]]></category>
		<category><![CDATA[ext3]]></category>
		<category><![CDATA[ext4]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[fsck]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=190</guid>
		<description><![CDATA[Issue: Linux (appropriately) checks filesystems after a number of boot cycles. Cause: This is by design. By default, ext[2,3,4] filesystems are automatically checked every 34 mounts or 180 days (whichever comes first). Resolution: In some cases (ephemeral machine instances in a cloud) this behavior is undesirable. It may be tuned with the following: To disable [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Issue:</strong><br />
Linux (appropriately) checks filesystems after a number of boot cycles.</p>
<p><strong>Cause:</strong><br />
This is by design. By default, ext[2,3,4] filesystems are automatically checked every 34 mounts or 180 days (whichever comes first).</p>
<p><strong>Resolution:</strong><br />
In some cases (ephemeral machine instances in a cloud) this behavior is undesirable. It may be tuned with the following:</p>
<p>To disable it use the following at the terminal:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">tune2fs <span style="color: #660033;">-c</span> <span style="color: #000000;">0</span> <span style="color: #660033;">-i</span> <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hdXY</div></div>
<p>Set it to check after 30 system boots</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">tune2fs <span style="color: #660033;">-c</span> <span style="color: #000000;">30</span> <span style="color: #660033;">-i</span> <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hdXY</div></div>
<p>Also ensure that your /etc/fstab file reflects a similar setting. The sixth column should contain a 0 (never check) rather than a 1 (check at boot).</p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/08/27/disable-disk-checking-during-boot-on-linux-systems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
