<?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/"
	xmlns:georss="http://www.georss.org/georss" >

<channel>
	<title>spiralbound.net</title>
	<atom:link href="http://spiralbound.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://spiralbound.net</link>
	<description>my digital notebook</description>
	<lastBuildDate>Sun, 20 Jan 2013 03:51:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Debugging UDP Connections</title>
		<link>http://spiralbound.net/blog/2012/12/19/debugging-udp-connections/</link>
		<comments>http://spiralbound.net/blog/2012/12/19/debugging-udp-connections/#comments</comments>
		<pubDate>Wed, 19 Dec 2012 22:09:31 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Data and Technology]]></category>
		<category><![CDATA[illumos solaris udp snoop networking]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=367</guid>
		<description><![CDATA[The most basic network troubleshooting trick in the book is a simple test to make sure that a daemon is listening on its respective port. This is easy with TCP connections because you can simply setup the daemon on the &#8230; <a href="http://spiralbound.net/blog/2012/12/19/debugging-udp-connections/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>The most basic network troubleshooting trick in the book is a simple test to make sure that a daemon is listening on its respective port. This is easy with TCP connections because you can simply setup the daemon on the destination and telnet to the port. It&#8217;s harder for UDP connections because there is no ACK.</p>
<p>For Solaris, or even better yet <a href="http://illumos.org">illumos</a>:</p>
<pre>
snoop -d ce0 'host server.example.com and udp and port 137'

ping -U -p 137 server.example.com
</pre>
<p>If you have linux it&#8217;s:</p>
<pre>
tcpdump -i en1 'host server.example.com and udp and port 137'
</pre>
<p>See also:<br />
<a href="http://www.cosine.org/2007/08/21/debugging-connectivity-problems/">http://www.cosine.org/2007/08/21/debugging-connectivity-problems/</a><br />
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at&#8230;</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2005/11/22/solaris-virtual-network-interfaces/'>Solaris Virtual Network Interfaces</a></li>
<li><a href='http://spiralbound.net/blog/2010/01/26/zonetype-sh-version-2-0/'>ZoneType.sh Version 2.0</a></li>
<li><a href='http://spiralbound.net/blog/2009/11/02/unix-find-files-that-changed-within-time-window/'>UNIX &#8211; Find Files that Changed Within Time Window</a></li>
<li><a href='http://spiralbound.net/blog/2012/01/09/how-to-replace-a-failed-drive-in-a-zfs-pool/'>How to Replace a Failed Drive in a ZFS Pool</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2012/07/23/mounting-iso-images-on-illumos/'>Mounting ISO Images on Illumos</a></li>
<li><a href='http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/'>Illumos ZFS Storage Appliance</a></li>
<li><a href='http://spiralbound.net/blog/2012/03/15/using-macports-subversion-with-bbedit/'>Using MacPorts Subversion With BBEdit</a></li>
<li><a href='http://spiralbound.net/blog/2012/01/09/how-to-replace-a-failed-drive-in-a-zfs-pool/'>How to Replace a Failed Drive in a ZFS Pool</a></li>
<li><a href='http://spiralbound.net/blog/2011/10/11/thankyou-now-time-for-a-cold-one/'>THANKYOU! &#8211; Now time for a cold one!</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2012/12/19/debugging-udp-connections/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mounting ISO Images on Illumos</title>
		<link>http://spiralbound.net/blog/2012/07/23/mounting-iso-images-on-illumos/</link>
		<comments>http://spiralbound.net/blog/2012/07/23/mounting-iso-images-on-illumos/#comments</comments>
		<pubDate>Mon, 23 Jul 2012 17:10:09 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Data and Technology]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[iso illumos]]></category>
		<category><![CDATA[lofiadm]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[openindiana]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[storage]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=1565</guid>
		<description><![CDATA[I always have to look this up, so I&#8217;m wiring it down. To mount an ISO image on Solaris derived systems, do the following: lofiadm -a /path/to/image.iso /dev/lofi/1 mount -F hsfs -o ro /dev/lofi/1 /path/to/mountpoint People who looked at this &#8230; <a href="http://spiralbound.net/blog/2012/07/23/mounting-iso-images-on-illumos/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I always have to look this up, so I&#8217;m wiring it down. To mount an ISO image on Solaris derived systems, do the following:</p>
<pre>
lofiadm -a /path/to/image.iso /dev/lofi/1
mount -F hsfs -o ro /dev/lofi/1 /path/to/mountpoint
</pre>
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at&#8230;</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/'>Illumos ZFS Storage Appliance</a></li>
<li><a href='http://spiralbound.net/blog/2012/01/09/how-to-replace-a-failed-drive-in-a-zfs-pool/'>How to Replace a Failed Drive in a ZFS Pool</a></li>
<li><a href='http://spiralbound.net/blog/2012/03/15/using-macports-subversion-with-bbedit/'>Using MacPorts Subversion With BBEdit</a></li>
<li><a href='http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/img_8955/'>Internals</a></li>
<li><a href='http://spiralbound.net/blog/2007/07/23/example-linux-init-script/'>Example LINUX init Script</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2005/12/21/rebuilding-the-solaris-device-tree/'>Rebuilding the Solaris Device Tree</a></li>
<li><a href='http://spiralbound.net/blog/2006/11/21/taking-disk-cylinders-from-swap-on-solaris-8/'>Taking Disk Cylinders From Swap on Solaris 8</a></li>
<li><a href='http://spiralbound.net/blog/2006/04/12/changing-linux-mount-points/'>Changing Linux Mount Points</a></li>
<li><a href='http://spiralbound.net/blog/2006/01/01/solaris-automounter/'>Solaris Automounter</a></li>
<li><a href='http://spiralbound.net/blog/2005/09/21/solaris-x86-compatible-raid-controller/'>Solaris X86 Compatible RAID Controller</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2012/07/23/mounting-iso-images-on-illumos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Illumos ZFS Storage Appliance</title>
		<link>http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/</link>
		<comments>http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/#comments</comments>
		<pubDate>Wed, 04 Jul 2012 05:38:04 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Data and Technology]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=1508</guid>
		<description><![CDATA[A while back Casey started complaining that his Drobo storage robot was no longer being awesome. This got me thinking about how easy it would be to build a nice ZFS storage appliance that provide massive storage, constant data protection &#8230; <a href="http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>A while back <a href="http://maisonbisson.com">Casey</a> started complaining that his <a href="http://maisonbisson.com/blog/post/11773/drobo-sweet-storage-one-big-flaw/">Drobo storage robot</a> was no longer being awesome. This got me thinking about how easy it would be to build a nice ZFS storage appliance that provide massive storage, constant data protection and self-healing against bit rot. I have wanted to build something like this for some time, but just never had the storage needs at home to justify it. Well, data needs grow and my discussion with Casey while stumbling around Fry&#8217;s was all it took to get me moving.</p>
<p>What is ZFS? Well, put simply, ZFS is <a href="http://en.wikipedia.org/wiki/Jeff_Bonwick">Jeff Bonwick</a> and The Bonwick Youth&#8217;s answer to every filesystem annoyance the world has ever known. It is the pinnacle of human achievement in filesystem development, and quite honestly, the only commonly available storage option that will truly protect your data. Now, before you start leaving angry comments explaining how [insert RAID solution here] does a perfectly good job of protecting data, I&#8217;m not talking about RAID. I&#8217;m talking about leveraging copy on write transactions and checksums at the block level to ensure data integrity, and an implemented strategy for self-healing against bit rot, current spikes, bugs in disk firmware, ghost writes, etc. I&#8217;m also talking about a dead simple and logical volume management layer and <a href="https://blogs.oracle.com/stw/entry/zfs_zpool_and_file_system">wealth of features</a> too numerous to list here.</p>
<p>Anyhow, I cobbled together the items listed below, installed <a href="http://openindiana.org/">Openindiana Illumos</a> on it and <a href="http://wiki.openindiana.org/oi/Netatalk">configured Netatalk</a>. It works wonderfully, and I can&#8217;t say enough about how pleased I am with Illumos, and how happy I am to have an industrial strength, feature-rich UNIX in the open source community.</p>
<p>The links below will take you to listings for the components I used:<br />
<a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16813131732">Motherboard</a><br />
<a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16820148346">Memory X2</a><br />
<a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16811112265&#038;nm_mc=OTC-Froogle&#038;cm_mmc=OTC-Froogle-_-Cases+%28Computer+Cases+-+ATX+Form%29-_-Lian-Li-_-11112265">Case</a><br />
<a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16817152028">PSU</a><br />
<a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16822145475">Drives X5</a></p>
<p>Price: $807.92<br />
Usable Storage: 7.6TB (raidz)</p>
<p>
<a href='http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/img_8906/' title='Drive Boxes'><img width="150" height="150" src="http://spiralbound.net/files/2012/05/IMG_8906-150x150.jpg" class="attachment-thumbnail" alt="Drive Boxes" /></a>
<a href='http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/img_8914/' title='Equipment'><img width="150" height="150" src="http://spiralbound.net/files/2012/05/IMG_8914-150x150.jpg" class="attachment-thumbnail" alt="Equipment" /></a>
<a href='http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/img_8916/' title='Case'><img width="150" height="150" src="http://spiralbound.net/files/2012/05/IMG_8916-150x150.jpg" class="attachment-thumbnail" alt="Case" /></a>
<a href='http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/img_8923/' title='IMG_8923'><img width="150" height="150" src="http://spiralbound.net/files/2012/05/IMG_8923-150x150.jpg" class="attachment-thumbnail" alt="IMG_8923" /></a>
<a href='http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/img_8926/' title='Blue Fan'><img width="150" height="150" src="http://spiralbound.net/files/2012/05/IMG_8926-150x150.jpg" class="attachment-thumbnail" alt="Blue Fan" /></a>
<a href='http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/img_8937/' title='Drives in Place'><img width="150" height="150" src="http://spiralbound.net/files/2012/05/IMG_8937-150x150.jpg" class="attachment-thumbnail" alt="Drives in Place" /></a>
<a href='http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/img_8938/' title='Cables'><img width="150" height="150" src="http://spiralbound.net/files/2012/05/IMG_8938-150x150.jpg" class="attachment-thumbnail" alt="Cables" /></a>
<a href='http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/img_8943/' title='More Cables'><img width="150" height="150" src="http://spiralbound.net/files/2012/05/IMG_8943-150x150.jpg" class="attachment-thumbnail" alt="More Cables" /></a>
<a href='http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/img_8950/' title='Completed Cabling'><img width="150" height="150" src="http://spiralbound.net/files/2012/05/IMG_8950-150x150.jpg" class="attachment-thumbnail" alt="Completed Cabling" /></a>
<a href='http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/img_8955/' title='Internals'><img width="150" height="150" src="http://spiralbound.net/files/2012/05/IMG_8955-150x150.jpg" class="attachment-thumbnail" alt="Internals" /></a>
<br />
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at&#8230;</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/img_8937/'>Drives in Place</a></li>
<li><a href='http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/img_8926/'>Blue Fan</a></li>
<li><a href='http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/img_8906/'>Drive Boxes</a></li>
<li><a href='http://spiralbound.net/blog/2012/07/23/mounting-iso-images-on-illumos/'>Mounting ISO Images on Illumos</a></li>
<li><a href='http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/img_8916/'>Case</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2012/12/19/debugging-udp-connections/'>Debugging UDP Connections</a></li>
<li><a href='http://spiralbound.net/blog/2012/07/23/mounting-iso-images-on-illumos/'>Mounting ISO Images on Illumos</a></li>
<li><a href='http://spiralbound.net/blog/2012/03/15/using-macports-subversion-with-bbedit/'>Using MacPorts Subversion With BBEdit</a></li>
<li><a href='http://spiralbound.net/blog/2012/01/09/how-to-replace-a-failed-drive-in-a-zfs-pool/'>How to Replace a Failed Drive in a ZFS Pool</a></li>
<li><a href='http://spiralbound.net/blog/2011/10/11/thankyou-now-time-for-a-cold-one/'>THANKYOU! &#8211; Now time for a cold one!</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using MacPorts Subversion With BBEdit</title>
		<link>http://spiralbound.net/blog/2012/03/15/using-macports-subversion-with-bbedit/</link>
		<comments>http://spiralbound.net/blog/2012/03/15/using-macports-subversion-with-bbedit/#comments</comments>
		<pubDate>Thu, 15 Mar 2012 16:12:31 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Data and Technology]]></category>
		<category><![CDATA[bbedit]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[macports]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=1441</guid>
		<description><![CDATA[PROTIP: If you want to use the Subversion features in BBedit, and you also like using v1.7+ of svn, you have to change the default location. Obviously this assumes that you have MacPorts installed and have used it to build &#8230; <a href="http://spiralbound.net/blog/2012/03/15/using-macports-subversion-with-bbedit/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>PROTIP: If you want to use the Subversion features in BBedit, and you also like using v1.7+ of svn, you have to change the default location. Obviously this assumes that you have MacPorts installed and have used it to build and install the Subversion port.</p>
<div class="igBar"><span id="lcode-2"><a href="#" onclick="javascript:showPlainTxt('code-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-2">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">defaults write com.<span style="">barebones</span>.<span style="">bbedit</span> Subversion:SubversionToolPathOverride /opt/local/bin/svn </div>
</li>
</ol>
</div>
</div>
</div>
<p>
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at...</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/about/'>About</a></li>
<li><a href='http://spiralbound.net/blog/2010/08/20/how-to-enable-ssl-for-cswapache2/'>How to Enable SSL for CSWapache2</a></li>
<li><a href='http://spiralbound.net/blog/2012/01/09/how-to-replace-a-failed-drive-in-a-zfs-pool/'>How to Replace a Failed Drive in a ZFS Pool</a></li>
<li><a href='http://spiralbound.net/blog/2007/11/13/toyota-yaris-review/'>Toyota Yaris Review</a></li>
<li><a href='http://spiralbound.net/blog/2007/12/14/why-did-my-arm-fall-asleep/'>Why Did my Arm Fall Asleep?</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2007/11/30/managing-wordpress-and-gallery2-with-subversion/'>Managing WordPress and Gallery2 With Subversion</a></li>
<li><a href='http://spiralbound.net/blog/2012/12/19/debugging-udp-connections/'>Debugging UDP Connections</a></li>
<li><a href='http://spiralbound.net/blog/2012/07/23/mounting-iso-images-on-illumos/'>Mounting ISO Images on Illumos</a></li>
<li><a href='http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/'>Illumos ZFS Storage Appliance</a></li>
<li><a href='http://spiralbound.net/blog/2012/01/09/how-to-replace-a-failed-drive-in-a-zfs-pool/'>How to Replace a Failed Drive in a ZFS Pool</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2012/03/15/using-macports-subversion-with-bbedit/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Replace a Failed Drive in a ZFS Pool</title>
		<link>http://spiralbound.net/blog/2012/01/09/how-to-replace-a-failed-drive-in-a-zfs-pool/</link>
		<comments>http://spiralbound.net/blog/2012/01/09/how-to-replace-a-failed-drive-in-a-zfs-pool/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 18:49:42 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Data and Technology]]></category>
		<category><![CDATA[cfgadm]]></category>
		<category><![CDATA[cfgadm configure]]></category>
		<category><![CDATA[cfgadm unconfigure]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[zfs]]></category>
		<category><![CDATA[zpool]]></category>
		<category><![CDATA[zpool replace]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=1436</guid>
		<description><![CDATA[So you have a failed disk in a ZFS pool and you want to fix it? Routine disk failures are really a non-event with ZFS because the volume management makes replacing them so dang easy. In many cases, unlike hardware &#8230; <a href="http://spiralbound.net/blog/2012/01/09/how-to-replace-a-failed-drive-in-a-zfs-pool/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>So you have a failed disk in a ZFS pool and you want to fix it? Routine disk failures are really a non-event with ZFS because the volume management makes replacing them so dang easy. In many cases, unlike hardware RAID or older volume management solutions, the replacement disk doesn't even need to be exactly the same as the original. So let's get started replacing our failed disk. These instructions will be for a Solaris 10 system, so a few of the particulars related to unconfiguring the disk and device paths will vary with different flavors of UNIX.</p>
<p>First, take a look at the zpools to see if there are any errors. The -x flag will only display status for pools  that  are  exhibiting errors or are otherwise unavailable.<br />
Note: If the disk is actively failing (a process that sometimes takes a while as the OS offlines it), any commands that use storage related system calls will hang and take a long time to return. These include "zpool" and "format", so just be patient; they will eventually return.</p>
<p># zpool status -x</p>
<pre>
 pool: data
 state: DEGRADED
status: One or more devices are faulted in response to persistent errors.
        Sufficient replicas exist for the pool to continue functioning in a
        degraded state.
action: Replace the faulted device, or use 'zpool clear' to mark the device
        repaired.
 scrub: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        data        DEGRADED     0     0     0
          mirror-0  DEGRADED     0     0     0
            c1t4d0  ONLINE       0     0     0
            c1t5d0  FAULTED      1    81     0  too many errors
          mirror-1  ONLINE       0     0     0
            c1t2d0  ONLINE       0     0     0
            c1t3d0  ONLINE       0     0     0

errors: No known data errors
</pre>
<p>So we can easily see that c1t5d0 has failed. Take a look at the "format" output do get the particulars about the disk:<br />
# format</p>
<pre>
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <sun146g cyl 14087 alt 2 hd 24 sec 848>
          /pci@0/pci@0/pci@2/scsi@0/sd@0,0
       1. c1t1d0 </sun146g><sun146g cyl 14087 alt 2 hd 24 sec 848>
          /pci@0/pci@0/pci@2/scsi@0/sd@1,0
       2. c1t2d0 <seagate -ST914602SSUN146G-0603-136.73GB>
          /pci@0/pci@0/pci@2/scsi@0/sd@2,0
       3. c1t3d0 </seagate><seagate -ST914602SSUN146G-0603-136.73GB>
          /pci@0/pci@0/pci@2/scsi@0/sd@3,0
       4. c1t4d0 </seagate><seagate -ST914602SSUN146G-0603-136.73GB>
          /pci@0/pci@0/pci@2/scsi@0/sd@4,0
       5. c1t5d0 </seagate><seagate -ST914602SSUN146G-0603-136.73GB>
          /pci@0/pci@0/pci@2/scsi@0/sd@5,0
Specify disk (enter its number): 
</seagate></sun146g></pre>
<p>Get your hands on a replacement disk that is as similar as possible to a SEAGATE-ST914602SSUN146G-0603-136.73GB. I was only able to dig up a HITACHI-H103014SCSUN146G-A2A8-136.73GB, so I'll be using that instead of a direct replacement.</p>
<p>Next, use "cfgadm" to look at the disks you have and their configuration status:</p>
<p># cfgadm -al</p>
<pre>
Ap_Id                          Type         Receptacle   Occupant     Condition
c1                             scsi-sata    connected    configured   unknown
c1::dsk/c1t0d0                 disk         connected    configured   unknown
c1::dsk/c1t1d0                 disk         connected    configured   unknown
c1::dsk/c1t2d0                 disk         connected    configured   unknown
c1::dsk/c1t3d0                 disk         connected    configured   unknown
c1::dsk/c1t4d0                 disk         connected    configured   unknown
c1::dsk/c1t5d0                 disk         connected    configured   unknown
</pre>
<p>We want to replace t5, so we prepare it for removal by unconfiguring it:</p>
<p># cfgadm -c unconfigure c1::dsk/c1t5d0</p>
<p>The "safe to remove" led should turn on and you can pull the disk, remembering to allow it several seconds to spin down. Replace it with the new disk and take a look at "cfgadm -al" output again to ensure that it has been automatically configured. If it has not, you can manually configure it like below:</p>
<p># cfgadm -c configure c1::dsk/c1t5d0</p>
<p>Now, it's a simple matter of a quick "zpool replace" to get things rebuilding:</p>
<p># zpool replace data c1t5d0</p>
<p>You can use the output of zpool status to watch the resilver process...<br />
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at...</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2005/05/10/how-to-copy-a-solaris-boot-drive-to-a-disk-with-a-different-partition-layout/'>Copy a Solaris Boot Drive to a New Disk</a></li>
<li><a href='http://spiralbound.net/blog/2004/06/11/solaris-disk-partition-layout-mirroring-scripts/'>Solaris Disk Partition Layout &#038; Mirroring Scripts</a></li>
<li><a href='http://spiralbound.net/blog/2009/03/03/script-to-determine-solaris-10-zone-type/'>Script to Determine Solaris 10 Zone Type</a></li>
<li><a href='http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/'>Illumos ZFS Storage Appliance</a></li>
<li><a href='http://spiralbound.net/blog/2012/03/15/using-macports-subversion-with-bbedit/'>Using MacPorts Subversion With BBEdit</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2007/07/23/problems-registering-solaris-hosts-with-qla-2310-hbas-in-navasphere/'>Registering Solaris CLARiiON Hosts With QLA 2310 HBAs</a></li>
<li><a href='http://spiralbound.net/blog/2006/12/06/setting-up-the-automounter-service-on-rhel/'>Setting Up The Automounter Service on RHEL</a></li>
<li><a href='http://spiralbound.net/blog/2006/11/27/using-sort-to-list-directories-by-size/'>Using Sort to List Directories by Size</a></li>
<li><a href='http://spiralbound.net/blog/2006/11/21/taking-disk-cylinders-from-swap-on-solaris-8/'>Taking Disk Cylinders From Swap on Solaris 8</a></li>
<li><a href='http://spiralbound.net/blog/2006/04/12/changing-linux-mount-points/'>Changing Linux Mount Points</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2012/01/09/how-to-replace-a-failed-drive-in-a-zfs-pool/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Enable SSL for CSWapache2</title>
		<link>http://spiralbound.net/blog/2010/08/20/how-to-enable-ssl-for-cswapache2/</link>
		<comments>http://spiralbound.net/blog/2010/08/20/how-to-enable-ssl-for-cswapache2/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 17:56:43 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Data and Technology]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[appache ssl]]></category>
		<category><![CDATA[OpenCSW]]></category>
		<category><![CDATA[service management facility]]></category>
		<category><![CDATA[service manifest]]></category>
		<category><![CDATA[SMF]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=1393</guid>
		<description><![CDATA[If you're running the OpenCSW Apache package, it installs a Service Manifest into the SMF, so you'll have to edit this if you want to run Apache SSL... Here's how: <a href="http://spiralbound.net/blog/2010/08/20/how-to-enable-ssl-for-cswapache2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>If you've spent any time at all around <a href="http://en.wikipedia.org/wiki/Solaris_%28operating_system%29">Solaris 10</a>, you know that Sun has invested a fair amount of effort developing a pretty snazzy <a href="http://en.wikipedia.org/wiki/Service_Management_Facility">Service Management Facility (SMF)</a>. It is extremely flexible and feature rich, but it's not quite as strait forward as the old legacy /etc/init.d scripts. If you're running the <a href="http://www.opencsw.org/">OpenCSW</a> Apache package, it installs a Service Manifest into the SMF, so you'll have to edit this to run Apache SSL... Here's how:</p>
<pre><code>
# svccfg

svc:> select cswapache2
svc:/network/http:cswapache2> listprop httpd/ssl

httpd/ssl  boolean  false

svc:/network/http:cswapache2> setprop httpd/ssl=true
svc:/network/http:cswapache2> exit
</code></pre>
<p>Now, make the changes active:</p>
<pre><code>
# svcadm disable cswapache2
# svcadm enable cswapache2
# svcprop -p httpd/ssl svc:/network/http:cswapache2

false

# svcadm refresh cswapache2
# svcprop -p httpd/ssl svc:/network/http:cswapache2

true
</code></pre>
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at...</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/?page_id=1097'>Gallery</a></li>
<li><a href='http://spiralbound.net/blog/2009/03/03/script-to-determine-solaris-10-zone-type/'>Script to Determine Solaris 10 Zone Type</a></li>
<li><a href='http://spiralbound.net/blog/2005/08/23/fish-supposedly-washed-up-by-asian-tsunami/'>Fish Supposedly Washed Up By Asian Tsunami</a></li>
<li><a href='http://spiralbound.net/about/'>About</a></li>
<li><a href='http://spiralbound.net/?page_id=386'>Archives</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2011/10/11/thankyou-now-time-for-a-cold-one/'>THANKYOU! &#8211; Now time for a cold one!</a></li>
<li><a href='http://spiralbound.net/blog/2010/01/26/zonetype-sh-version-2-0/'>ZoneType.sh Version 2.0</a></li>
<li><a href='http://spiralbound.net/blog/2009/03/03/script-to-determine-solaris-10-zone-type/'>Script to Determine Solaris 10 Zone Type</a></li>
<li><a href='http://spiralbound.net/blog/2008/12/28/install-solaris-package-in-alternate-base-directory/'>Install Solaris Package in Alternate Base Directory</a></li>
<li><a href='http://spiralbound.net/blog/2008/06/03/x11-forwarding-broken-on-solaris/'>X11 Forwarding Broken on Solaris</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2010/08/20/how-to-enable-ssl-for-cswapache2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wes Anderson Parodies</title>
		<link>http://spiralbound.net/blog/2010/08/05/wes-anderson-parodies/</link>
		<comments>http://spiralbound.net/blog/2010/08/05/wes-anderson-parodies/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 21:24:27 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Et cetera]]></category>
		<category><![CDATA[Alfred Hitchcock]]></category>
		<category><![CDATA[comedy]]></category>
		<category><![CDATA[film]]></category>
		<category><![CDATA[film director]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[Mike Nichols]]></category>
		<category><![CDATA[Orson Welles]]></category>
		<category><![CDATA[parody]]></category>
		<category><![CDATA[spiderman]]></category>
		<category><![CDATA[urlesque]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[wes anderson]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=369</guid>
		<description><![CDATA[Courtney points out that urlesque has a post entitled "7 Great Wes Anderson Parodies". I found Wes' work through Rushmore and he immediately became my favorite film director of all time! Having joined the creative ranks of Alfred Hitchcock, Orson &#8230; <a href="http://spiralbound.net/blog/2010/08/05/wes-anderson-parodies/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><a href="http://twistedstitches.net">Courtney</a> points out that urlesque has a post entitled "<a href="http://www.urlesque.com/2010/04/13/7-great-wes-anderson-parodies/">7 Great Wes Anderson Parodies</a>". I found Wes' work through <em>Rushmore</em> and he immediately became my favorite film director of all time! Having joined the creative ranks of Alfred Hitchcock, Orson Welles and Mike Nichols, imagining what movies like<em> Spiderman</em> or <em>The Lord of the Rings</em> may have been like under his unique style of direction is really quite fun!</p>
<p>Anyhow, visit the <a href="http://www.urlesque.com/2010/04/13/7-great-wes-anderson-parodies/">Urlesque post</a> for a complete list... My favorite is the <em>Spiderman</em> parody.</p>
<p><object width="570" height="345"><param name="movie" value="http://www.youtube.com/v/H5KfHEoZDKI&#038;color1=0xb1b1b1&#038;color2=0xd0d0d0&#038;hl=en_US&#038;feature=player_embedded&#038;fs=1"/><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://www.youtube.com/v/H5KfHEoZDKI&#038;color1=0xb1b1b1&#038;color2=0xd0d0d0&#038;hl=en_US&#038;feature=player_embedded&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="500" height="280"/></object><br />
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at...</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2007/12/14/why-did-my-arm-fall-asleep/'>Why Did my Arm Fall Asleep?</a></li>
<li><a href='http://spiralbound.net/blog/2010/08/20/how-to-enable-ssl-for-cswapache2/'>How to Enable SSL for CSWapache2</a></li>
<li><a href='http://spiralbound.net/blog/2009/05/01/the-banana-slug-is-not-a-mythical-creature/'>The Banana Slug is not a Mythical Creature</a></li>
<li><a href='http://spiralbound.net/blog/2007/04/03/giant-rabbits-in-north-korea/'>Giant Rabbits in North Korea</a></li>
<li><a href='http://spiralbound.net/?page_id=1097'>Gallery</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2011/11/17/she-must-have-had-a-really-bad-day-i-mean-the-mother-of-bad-days-the-stepmother-of-all-bad-days-the-grandmother-of-all-bad-days/'>she must have had a really bad day. I mean, the mother of bad days.. The Stepmother of all bad days&#8230; The GRANDMOTHER of all bad days&#8230;</a></li>
<li><a href='http://spiralbound.net/blog/2007/08/29/matrix-ping-pong/'>Matrix Ping Pong</a></li>
<li><a href='http://spiralbound.net/blog/2007/05/11/802-hip-hop-vermont-style/'>802 &#8211; Hip Hop Vermont Style</a></li>
<li><a href='http://spiralbound.net/blog/2005/10/25/south-park-katrina-media-spoof/'>South Park Katrina Media Spoof</a></li>
<li><a href='http://spiralbound.net/blog/2005/10/21/worlds-angriest-woman/'>World&#8217;s Angriest Woman</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2010/08/05/wes-anderson-parodies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZoneType.sh Version 2.0</title>
		<link>http://spiralbound.net/blog/2010/01/26/zonetype-sh-version-2-0/</link>
		<comments>http://spiralbound.net/blog/2010/01/26/zonetype-sh-version-2-0/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 17:29:29 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Data and Technology]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[cfengine]]></category>
		<category><![CDATA[global zone]]></category>
		<category><![CDATA[local zone]]></category>
		<category><![CDATA[prtdiag]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[solaris 10]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[zonetype.sh]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=1316</guid>
		<description><![CDATA[We just started supporting Solaris 10 in our VMware cluster so I had to update my zone type script to detect if the OS is running there. I'm not sure how I feel about depending on the output of ptrdiag &#8230; <a href="http://spiralbound.net/blog/2010/01/26/zonetype-sh-version-2-0/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>We just started supporting Solaris 10 in our VMware cluster so I had to update <a href="http://spiralbound.net/2009/03/03/script-to-determine-solaris-10-zone-type">my zone type script</a> to detect if the OS is running there. I'm not sure how I feel about depending on the output of <strong>ptrdiag</strong> since the interface is labeled "unstable", but it works for now, and I really don't see Sun changing the first line of output where the system configuration is listed. Anyhow, when issued with the -v or --vmware flag, the script returns 0 if it's running on the cluster and 1 if it is not.</p>
<p>Usage:</p>
<p># zonetype.sh -g or --global<br />
Return 0: The machine is a global zone with 1 or more local zones<br />
Return 1: The machine is not a global zone</p>
<p># zonetype.sh -l or --local<br />
Return 0: The machine is a local zone<br />
Return 1: The machine is not a not a local zone</p>
<p># zonetype.sh -v or --vmware<br />
Return 0: The machine is running on a VMware hypervisor<br />
Return 1: The machine is not running in VMware</p>
<pre>
#! /bin/bash
#
# When issued with the -g or --global flag, this script will return:
# 0 if the machine is a global zone and has one or more local zones. 
# Otherwise, it will return 1
#
# When issued with the -l or --local flag, this script will return:
# 0 if if is a local zone and 1 if it is not
#
# When issued with the -v or --vmware flag, this script will return:
# 0 if it is a vmware host and 1 if not.
#

list=( `/usr/sbin/zoneadm list -civ | awk '{ print $1 }'`)

  case "$1" in
    -g|--global)
        # If the third element in our array is null, set it to 0
        if [ "${list[2]}" == ""  ]; then
        list[2]=0
        fi
        # This is a global zone only if it has one or more local zones.
        if [ ${list[1]} -eq 0 ] &#038;& [ ${list[2]} -ge 1 ]; then
        # 1 is returned if we have a global and local zone, 
        # otherwise, we return 0
                exit 0
            else
                exit 1
        fi
              ;;
    -l|--local)
        # If the second element in our array is = or > 1, it is a local zone.
        if [ ${list[1]} -ge 1 ]; then
        # Return 1 if this is a local zone, otherwise return 0.
                exit 0
            else
                exit 1
        fi

              ;;
   -v|--vmware)
        # Don't run our check on local zones... Prtdiag can't run there
        if [ ${list[1]} != 0 ]; then
                exit 1
           else 
                vmhost=( `/usr/sbin/prtdiag | grep System | awk '{ print $5 }'`)
                if [ $vmhost == VMware ]; then
                        #If the host is running on the vmware cluster return 0, 
                        # otherwise, return 1
                        exit 0
                else
                        exit 1
                fi
        fi
              ;;
        *)
        echo "Usage: /local/adm/zonetype.sh {-l | --local | -g | --global | -v | --vmware}"
        exit 1
  esac
</pre>
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at...</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2009/03/03/script-to-determine-solaris-10-zone-type/'>Script to Determine Solaris 10 Zone Type</a></li>
<li><a href='http://spiralbound.net/blog/2005/12/21/rebuilding-the-solaris-device-tree/'>Rebuilding the Solaris Device Tree</a></li>
<li><a href='http://spiralbound.net/blog/2004/06/11/solaris-disk-partition-layout-mirroring-scripts/'>Solaris Disk Partition Layout &#038; Mirroring Scripts</a></li>
<li><a href='http://spiralbound.net/blog/2009/11/02/unix-find-files-that-changed-within-time-window/'>UNIX &#8211; Find Files that Changed Within Time Window</a></li>
<li><a href='http://spiralbound.net/blog/2005/05/10/how-to-copy-a-solaris-boot-drive-to-a-disk-with-a-different-partition-layout/'>Copy a Solaris Boot Drive to a New Disk</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2009/03/03/script-to-determine-solaris-10-zone-type/'>Script to Determine Solaris 10 Zone Type</a></li>
<li><a href='http://spiralbound.net/blog/2005/09/21/solaris-x86-compatible-raid-controller/'>Solaris X86 Compatible RAID Controller</a></li>
<li><a href='http://spiralbound.net/blog/2008/12/28/install-solaris-package-in-alternate-base-directory/'>Install Solaris Package in Alternate Base Directory</a></li>
<li><a href='http://spiralbound.net/blog/2007/06/13/another-used-sun-fire-t2000-for-sale/'>Another Used Sun Fire T2000 For Sale</a></li>
<li><a href='http://spiralbound.net/blog/2007/05/22/used-sun-fire-t2000-for-sale/'>Used Sun Fire T2000 For Sale</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2010/01/26/zonetype-sh-version-2-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP Error: The data could not be converted to UTF-8</title>
		<link>http://spiralbound.net/blog/2009/12/22/wp-error-the-data-could-not-be-converted-to-utf-8/</link>
		<comments>http://spiralbound.net/blog/2009/12/22/wp-error-the-data-could-not-be-converted-to-utf-8/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 01:27:23 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Data and Technology]]></category>
		<category><![CDATA[coolstack]]></category>
		<category><![CDATA[iconv. mbstring]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[The data could not be converted to UTF-8]]></category>
		<category><![CDATA[utf-8]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=1330</guid>
		<description><![CDATA[If you've just upgraded to WordPress 2.9 and you are now getting UTF 8 conversion errors on your dashboard, you'll need to take a look at WordPress Trac Ticket #11219. RSS Error: The data could not be converted to UTF-8 &#8230; <a href="http://spiralbound.net/blog/2009/12/22/wp-error-the-data-could-not-be-converted-to-utf-8/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>If you've just upgraded to WordPress 2.9 and you are now getting UTF 8 conversion errors on your dashboard, you'll need to take a look at <a href="http://core.trac.wordpress.org/ticket/11219">WordPress Trac Ticket #11219</a>.<br />
<code><br />
RSS Error: The data could not be converted to UTF-8<br />
</code><br />
The bottom line is that you'll need to enable either <a href="http://php.net/manual/en/book.iconv.php">iconv</a> or <a href="http://php.net/manual/en/book.mbstring.php">mbstring</a> in your PHP configuration. I'm using CoolStack on Solaris 10, so it was a simple matter of uncommenting the following lines from <code>/opt/coolstack/php5/lib/php.ini</code> and restarting apache. While you're at it, may as well uncomment ctype as well since the new image uploader needs it.</p>
<p>Uncommnet the following lines in /opt/coolstack/php5/lib/php.ini.<br />
<code><br />
extension=iconv.so<br />
extension=mbstring.so<br />
extension=ctype.so<br />
</code></p>
<p>Finally, restart apache:<br />
<code><br />
svcadm restart apache22-csk<br />
</code><br />
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at...</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2010/08/20/how-to-enable-ssl-for-cswapache2/'>How to Enable SSL for CSWapache2</a></li>
<li><a href='http://spiralbound.net/blog/2008/12/28/install-solaris-package-in-alternate-base-directory/'>Install Solaris Package in Alternate Base Directory</a></li>
<li><a href='http://spiralbound.net/blog/2004/06/11/solaris-disk-partition-layout-mirroring-scripts/'>Solaris Disk Partition Layout &#038; Mirroring Scripts</a></li>
<li><a href='http://spiralbound.net/?page_id=386'>Archives</a></li>
<li><a href='http://spiralbound.net/blog/2005/09/21/solaris-x86-compatible-raid-controller/'>Solaris X86 Compatible RAID Controller</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2007/11/30/managing-wordpress-and-gallery2-with-subversion/'>Managing WordPress and Gallery2 With Subversion</a></li>
<li><a href='http://spiralbound.net/blog/2007/01/30/ecto-is-busted-in-wordpress-21/'>Ecto is Busted in WordPress 2.1</a></li>
<li><a href='http://spiralbound.net/blog/2005/11/21/picking-a-multiuser-blogging-system/'>Picking a Multiuser Blogging System</a></li>
<li><a href='http://spiralbound.net/blog/2005/04/29/apache-mysql-and-php-howto-from-source/'>Apache, MySql and PHP Howto (from source)</a></li>
<li><a href='http://spiralbound.net/blog/2005/04/28/things-to-remember-when-creating-apache-ssl-certs/'>Things to remember when creating Apache SSL certs</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2009/12/22/wp-error-the-data-could-not-be-converted-to-utf-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UNIX &#8211; Find Files that Changed Within Time Window</title>
		<link>http://spiralbound.net/blog/2009/11/02/unix-find-files-that-changed-within-time-window/</link>
		<comments>http://spiralbound.net/blog/2009/11/02/unix-find-files-that-changed-within-time-window/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 18:57:56 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Data and Technology]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[newer]]></category>
		<category><![CDATA[posix]]></category>
		<category><![CDATA[touch]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=373</guid>
		<description><![CDATA[Every so often us lowly UNIX admins find ourselves needing to search a file system for files that have been created or changed within a certain time window. In other words, those files that are newer than time "X", but &#8230; <a href="http://spiralbound.net/blog/2009/11/02/unix-find-files-that-changed-within-time-window/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Every so often us lowly UNIX admins find ourselves needing to search a file system for files that have been created or changed within a certain time window. In other words, those files that are newer than time "X", but not newer than time "Y". There are a number of ways to accomplish this, but my preferred method is to create two reference files to indicate the beginning and end of my window and use the "-newer" and "! -newer" flags to search for files that changed within that window.<br />
<code><br />
# touch -amt 200910260000 /tmp/starttime<br />
# touch -amt 200910262359 /tmp/endtime<br />
# find / -type f -newer /tmp/starttime -a ! -newer /tmp/endtime<br />
</code><br />
The guys at  virtuelvis.com <a href="http://virtuelvis.com/archives/2008/10/finding-files-modified-on-a-certain-date">point out</a> that it is more elegant to accomplish this without creating two files, but their solution does not work with operating systems that use strict <a href="http://en.wikipedia.org/wiki/POSIX">POSIX</a> compliant "find" implementations, making it of little use in some cases. For the curious, here is their example:<br />
<code><br />
# find . -type f -newermt 2009-10-26 ! -newermt 2009-10-27<br />
</code><br />
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at...</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2005/08/23/fish-supposedly-washed-up-by-asian-tsunami/'>Fish Supposedly Washed Up By Asian Tsunami</a></li>
<li><a href='http://spiralbound.net/blog/2008/12/07/worlds-coolest-datacenter/'>World&#8217;s Coolest Datacenter</a></li>
<li><a href='http://spiralbound.net/blog/2006/02/24/rebreather-evaluation-part-4-the-megalodon/'>Rebreather Evaluation &#8211; Part 4: The Megalodon</a></li>
<li><a href='http://spiralbound.net/blog/2007/12/12/php-and-sed-for-string-substitution/'>PHP and Sed for String Substitution</a></li>
<li><a href='http://spiralbound.net/blog/2009/05/01/the-banana-slug-is-not-a-mythical-creature/'>The Banana Slug is not a Mythical Creature</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2005/09/22/macintosh-finder-copy-to-samba-share-problem/'>Macintosh Finder Copy to Samba Share Problem</a></li>
<li><a href='http://spiralbound.net/blog/2012/01/09/how-to-replace-a-failed-drive-in-a-zfs-pool/'>How to Replace a Failed Drive in a ZFS Pool</a></li>
<li><a href='http://spiralbound.net/blog/2011/02/24/thanks-for-the-tip/'>Thanks for the tip.</a></li>
<li><a href='http://spiralbound.net/blog/2010/01/26/zonetype-sh-version-2-0/'>ZoneType.sh Version 2.0</a></li>
<li><a href='http://spiralbound.net/blog/2009/01/27/happy-1234567890-second-unix/'>Happy 1234567890&#8242;th Second UNIX!</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2009/11/02/unix-find-files-that-changed-within-time-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino Resources for the n00b</title>
		<link>http://spiralbound.net/blog/2009/10/14/arduino-resources-for-the-n00b/</link>
		<comments>http://spiralbound.net/blog/2009/10/14/arduino-resources-for-the-n00b/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 21:08:16 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Data and Technology]]></category>
		<category><![CDATA[Highlights]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=1321</guid>
		<description><![CDATA[Lately I've been entertaining myself by building a rebreather loop controller using the Arduino micro controller. This little open source board is really nice to work with for a number of reasons. Unlike many of the alternatives which employ proprietary &#8230; <a href="http://spiralbound.net/blog/2009/10/14/arduino-resources-for-the-n00b/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Lately I've been entertaining myself by building a rebreather loop controller using the <a href="http://www.arduino.cc/">Arduino</a> micro controller. This little open source board is really nice to work with for a number of reasons. Unlike many of the <a href="http://www.parallax.com/propeller/">alternatives</a> which employ proprietary programming languages, the Arduino simply uses "C". It also has an IDE that runs the my Mac, and it enjoys an enormous development community.</p>
<p>I'm pretty new to this kind of thing, so I've been using web tutorials to work my way up from the most basic blinking LED to something that actually monitors oxygen sensors and populates an LCD with information. Some of the more valuable resources I have used are as follows:</p>
<ul>
<li><a href="http://www.ladyada.net/learn/arduino/lesson0.html">A really good five-part tutorial to get started</a></li>
<li><a href="http://www.arduino.cc/en/Tutorial/AnalogInput">A tutorial to get started with analog input</a></li>
<li><a href="http://www.arduino.cc/playground/Learning/SparkFunSerLCD">Guide to using serial LCD's from Spark Fun Electronics</a></li>
<li><a href="http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1172808516/1">A solution to some common problems with interupts</a></li>
<li><a href="http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1233535986/7">Some good examples of code using an LCD menu with three buttons</a></li>
</ul>
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at...</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2008/12/07/worlds-coolest-datacenter/'>World&#8217;s Coolest Datacenter</a></li>
<li><a href='http://spiralbound.net/blog/2012/01/09/how-to-replace-a-failed-drive-in-a-zfs-pool/'>How to Replace a Failed Drive in a ZFS Pool</a></li>
<li><a href='http://spiralbound.net/blog/2009/05/01/the-banana-slug-is-not-a-mythical-creature/'>The Banana Slug is not a Mythical Creature</a></li>
<li><a href='http://spiralbound.net/blog/2005/12/29/rebreather-evaluation-part-1/'>Rebreather Evaluation &#8211; Part 1</a></li>
<li><a href='http://spiralbound.net/blog/2006/04/05/rebreather-evaluation-part-5-my-decision/'>Rebreather Evaluation &#8211; Part 5: My Decision</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2008/12/07/worlds-coolest-datacenter/'>World&#8217;s Coolest Datacenter</a></li>
<li><a href='http://spiralbound.net/blog/2008/08/05/bare-metal-linux-restore/'>Bare Metal Linux Restore</a></li>
<li><a href='http://spiralbound.net/blog/2007/08/27/iphone-hacked-no-longer-bound-to-att/'>iPhone Hacked; No Longer Bound to AT&#038;T</a></li>
<li><a href='http://spiralbound.net/blog/2007/08/21/joybubbles-a-phone-phreaking-legend-passes/'>Joybubbles &#8211; A Phone Phreaking Legend Passes</a></li>
<li><a href='http://spiralbound.net/blog/2007/01/31/flickr-has-always-sucked-now-it-sucks-more/'>Flickr Has Always Sucked&#8230; Now it Sucks More!</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2009/10/14/arduino-resources-for-the-n00b/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Banana Slug is not a Mythical Creature</title>
		<link>http://spiralbound.net/blog/2009/05/01/the-banana-slug-is-not-a-mythical-creature/</link>
		<comments>http://spiralbound.net/blog/2009/05/01/the-banana-slug-is-not-a-mythical-creature/#comments</comments>
		<pubDate>Fri, 01 May 2009 06:27:55 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Et cetera]]></category>
		<category><![CDATA[Highlights]]></category>
		<category><![CDATA[banana slug]]></category>
		<category><![CDATA[California]]></category>
		<category><![CDATA[mythical creature]]></category>
		<category><![CDATA[Santa cruz]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=1241</guid>
		<description><![CDATA[OK, so I never actually believed that they were a mythical creature, but it took me so long to actually find one after moving to Santa Cruz that I had great fun telling those who didn't know better that they &#8230; <a href="http://spiralbound.net/blog/2009/05/01/the-banana-slug-is-not-a-mythical-creature/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>OK, so I never actually believed that they were a mythical creature, but it took me so long to actually find one after <a href="http://spiralbound.net/2008/08/23/move-to-santa-cruz">moving to Santa Cruz</a> that I had great fun telling those who didn't know better that they were figment of the collective local imagination. <a href="http://twistedstitches.net">Courtney</a>, who had seen them before, always sighed, rolled her eyes, and reassured whatever unwitting soul I happened to be talking with at the moment that they did exist, and that I should absolutely not be taken seriously. On this point, I cannot disagree with her, but I must have been somewhat convincing because her mom actually sounded surprised when a friend finally pointed one out to me and I managed to snap a picture of it. She actually made me send her the picture because she didn't believe me.</p>
<p>A few banana slug facts:</p>
<ul>
<li>They are native to the Northwest</li>
<li>The are HUGE! Some have reached 10 inches in length, and weights of a quarter of a pound.</li>
<li>They were almost the official mollusk of California. Yes, the legislature actually voted in the noble slug, but the Governor vetoed it.</li>
<li>They are the official mascot of <a href="http://ucsc.edu">UC Santa Cruz</a>.</li>
</ul>
<p><div id="attachment_1246" class="wp-caption aligncenter" style="width: 510px"><a href="http://spiralbound.net/files/2009/05/img_0141.jpg" class="highslide-image" onclick="return hs.expand(this);"><img src="http://spiralbound.net/files/2009/05/img_0141-768x1024.jpg" alt="Banana Slug" title="Banana Slug" width="500" height="666" class="size-large wp-image-1246" /></a><p class="wp-caption-text">Banana Slug</p></div><br />
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at...</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2005/08/23/fish-supposedly-washed-up-by-asian-tsunami/'>Fish Supposedly Washed Up By Asian Tsunami</a></li>
<li><a href='http://spiralbound.net/blog/2005/10/21/worlds-angriest-woman/'>World&#8217;s Angriest Woman</a></li>
<li><a href='http://spiralbound.net/blog/2007/04/03/giant-rabbits-in-north-korea/'>Giant Rabbits in North Korea</a></li>
<li><a href='http://spiralbound.net/blog/2006/01/19/deep-dive-on-a-wreck-full-of-toilets/'>Deep Dive On A Wreck Full Of Toilets</a></li>
<li><a href='http://spiralbound.net/blog/2005/11/22/cute-koi-pictures/'>Cute Koi Pictures</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2008/08/23/move-to-santa-cruz/'>Move to Santa Cruz</a></li>
<li><a href='http://spiralbound.net/blog/2009/03/04/best-of-santa-cruz-city-council/'>Best of the Santa Cruz City Council</a></li>
<li><a href='http://spiralbound.net/blog/2007/04/25/arkansas-woman-blames-heat-on-daylight-savings-time/'>Arkansas Woman Blames Heat On Daylight Savings Time</a></li>
<li><a href='http://spiralbound.net/blog/2006/03/07/bush-has-record-low-iq/'>Bush Has Record Low I.Q.</a></li>
<li><a href='http://spiralbound.net/blog/2006/02/06/essay-on-calvin-hobbes/'>Essay on Calvin &#038; Hobbes</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2009/05/01/the-banana-slug-is-not-a-mythical-creature/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Useful MySQL Commands</title>
		<link>http://spiralbound.net/blog/2009/04/30/useful-mysql-commands/</link>
		<comments>http://spiralbound.net/blog/2009/04/30/useful-mysql-commands/#comments</comments>
		<pubDate>Fri, 01 May 2009 02:45:21 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Data and Technology]]></category>
		<category><![CDATA[bootable]]></category>
		<category><![CDATA[corruption]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database optomization]]></category>
		<category><![CDATA[database password]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysqlcheck]]></category>
		<category><![CDATA[port forwarding]]></category>
		<category><![CDATA[root password]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ssh tunneling]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=1221</guid>
		<description><![CDATA[There are a lot of usefully MySQL commands that I either don't run enough to remember or just end up using some GUI to accomplish. Nothing against Navicat, but what kind of sysadmin would I be if I couldn't do &#8230; <a href="http://spiralbound.net/blog/2009/04/30/useful-mysql-commands/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>There are a lot of usefully MySQL commands that I either don't run enough to remember or just end up using some GUI to accomplish. Nothing against Navicat, but what kind of sysadmin would I be if I couldn't do it at the command line as well. Anyhow, I had to do a bunch of this kind of work lately, so I thought I would write the more common commands down here so I would have them to reference.</p>
<p>It is generally a good idea to firewall off your MySQL port (3306) unless you are on a secure network. The downside to this is that it prevents you from using GUI tools like Navicat to connect to your database server. No problem, just use this command to SSH tunnel a connection. After doing this, you can connect to your database on localhost port 8888:<br />
<code><br />
ssh -fNg -L 8888:127.0.0.1:3306 login@mysql-server<br />
</code></p>
<p>Once you have installed a new instance of MySQL, you have to change the root password:<br />
<code><br />
# mysql -u root<br />
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpwd');<br />
mysql> SET PASSWORD FOR 'root'@'yourhostname' = PASSWORD('newpwd');<br />
mysql> exit<br />
</code></p>
<p>Depending on the way you handle your MySQL installation, you will most likely have to run the mysql_upgrade script after upgrades to use all the new features:<br />
<code><br />
mysql_upgrade -u root â€“password=yourpassword<br />
</code></p>
<p>Do a thorough check to see if your tables are corrupted:<br />
<code><br />
mysqlcheck -u root -p --check --extended --all-databases<br />
</code></p>
<p>Repair any corruption if it exists:<br />
<code><br />
mysqlcheck -u root -p --repair --all-databases<br />
</code></p>
<p>Look at all your tables and optomize them if necessary:<br />
<code><br />
mysqlcheck -u root -p --optimize --all-databases<br />
</code><br />
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at...</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2008/12/31/basic-iptables-configuration/'>Basic iptables Configuration</a></li>
<li><a href='http://spiralbound.net/blog/2008/12/07/worlds-coolest-datacenter/'>World&#8217;s Coolest Datacenter</a></li>
<li><a href='http://spiralbound.net/blog/2009/11/02/unix-find-files-that-changed-within-time-window/'>UNIX &#8211; Find Files that Changed Within Time Window</a></li>
<li><a href='http://spiralbound.net/blog/2007/01/31/mysql-connection-over-an-ssl-tunnel/'>MySQL Connection Over an ssl Tunnel</a></li>
<li><a href='http://spiralbound.net/blog/2007/04/30/disable-ssh-root-logins-on-rhel/'>Disable SSH Root Logins on RHEL</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2007/01/31/mysql-connection-over-an-ssl-tunnel/'>MySQL Connection Over an ssl Tunnel</a></li>
<li><a href='http://spiralbound.net/blog/2006/12/21/horde-imp-on-rhel-4-from-rpm-howto/'>Horde / IMP on RHEL 4 From RPM HOWTO</a></li>
<li><a href='http://spiralbound.net/blog/2006/09/08/why-modern-raid-5-is-ideal-for-oracle-databases/'>Why Modern RAID 5 is Ideal for Oracle Databases</a></li>
<li><a href='http://spiralbound.net/blog/2005/11/21/picking-a-multiuser-blogging-system/'>Picking a Multiuser Blogging System</a></li>
<li><a href='http://spiralbound.net/blog/2011/10/11/thankyou-now-time-for-a-cold-one/'>THANKYOU! &#8211; Now time for a cold one!</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2009/04/30/useful-mysql-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best of the Santa Cruz City Council</title>
		<link>http://spiralbound.net/blog/2009/03/04/best-of-santa-cruz-city-council/</link>
		<comments>http://spiralbound.net/blog/2009/03/04/best-of-santa-cruz-city-council/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 15:00:39 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Et cetera]]></category>
		<category><![CDATA[California]]></category>
		<category><![CDATA[city council]]></category>
		<category><![CDATA[crazy lady]]></category>
		<category><![CDATA[Dumb Santa Cruz Lady Vs. Sarah Palin]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[funny video]]></category>
		<category><![CDATA[insane]]></category>
		<category><![CDATA[Santa cruz]]></category>
		<category><![CDATA[Santa Cruz Airhead]]></category>
		<category><![CDATA[Sarah Palin]]></category>
		<category><![CDATA[strange]]></category>
		<category><![CDATA[strange people]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=296</guid>
		<description><![CDATA[She may not the the world's angriest woman, but the lady in this video may very well be the biggest airhead! The rest of the characters in the last one are pretty good too. It turns out that you don't &#8230; <a href="http://spiralbound.net/blog/2009/03/04/best-of-santa-cruz-city-council/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>She may not the the <a href="http://spiralbound.net/2005/10/21/worlds-angriest-woman">world's angriest woman</a>, but the lady in this video may very well be the biggest airhead! The rest of the characters in the last one are pretty good too. It turns out that you don't have to live in Santa Cruz very long before you start running into these folks. What can I say... It's a crazy place.</p>
<p>Santa Cruz lady at city council meeting:<br />
<center><object type="application/x-shockwave-flash" data="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=1917596&#038;fullscreen=1" width="480" height="360" ><param name="allowfullscreen" value="true"/><param name="wmode" value="transparent"/><param name="AllowScriptAccess" value="true"/><param name="movie" quality="best" value="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=1917596&#038;fullscreen=1"/><embed src="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=1917596&#038;fullscreen=1" type="application/x-shockwave-flash" wmode="transparent"  width="480" height="360"  allowScriptAccess="always"></embed></object>
<div style="padding:5px 0; text-align:center; width:480px;"></div>
<p></center></p>
<p>Santa Cruz Lady Vs. Sarah Palin:<br />
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/vRwckV9NLb4&#038;hl=en&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/vRwckV9NLb4&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>The whole Santa Cruz City Council Mashup:<br />
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/dChBN_zfofY&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/dChBN_zfofY&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object><br />
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at...</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2008/08/23/move-to-santa-cruz/'>Move to Santa Cruz</a></li>
<li><a href='http://spiralbound.net/blog/2005/10/21/worlds-angriest-woman/'>World&#8217;s Angriest Woman</a></li>
<li><a href='http://spiralbound.net/blog/2009/05/01/the-banana-slug-is-not-a-mythical-creature/'>The Banana Slug is not a Mythical Creature</a></li>
<li><a href='http://spiralbound.net/blog/2007/04/03/giant-rabbits-in-north-korea/'>Giant Rabbits in North Korea</a></li>
<li><a href='http://spiralbound.net/blog/2005/08/23/fish-supposedly-washed-up-by-asian-tsunami/'>Fish Supposedly Washed Up By Asian Tsunami</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2011/11/17/she-must-have-had-a-really-bad-day-i-mean-the-mother-of-bad-days-the-stepmother-of-all-bad-days-the-grandmother-of-all-bad-days/'>she must have had a really bad day. I mean, the mother of bad days.. The Stepmother of all bad days&#8230; The GRANDMOTHER of all bad days&#8230;</a></li>
<li><a href='http://spiralbound.net/blog/2005/10/21/worlds-angriest-woman/'>World&#8217;s Angriest Woman</a></li>
<li><a href='http://spiralbound.net/blog/2009/05/01/the-banana-slug-is-not-a-mythical-creature/'>The Banana Slug is not a Mythical Creature</a></li>
<li><a href='http://spiralbound.net/blog/2008/08/23/move-to-santa-cruz/'>Move to Santa Cruz</a></li>
<li><a href='http://spiralbound.net/blog/2005/12/22/war-on-christmas/'>War On Christmas</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2009/03/04/best-of-santa-cruz-city-council/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Script to Determine Solaris 10 Zone Type</title>
		<link>http://spiralbound.net/blog/2009/03/03/script-to-determine-solaris-10-zone-type/</link>
		<comments>http://spiralbound.net/blog/2009/03/03/script-to-determine-solaris-10-zone-type/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 22:46:27 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Data and Technology]]></category>
		<category><![CDATA[cfengine]]></category>
		<category><![CDATA[global zone]]></category>
		<category><![CDATA[local zone]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[zoneadm]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=1203</guid>
		<description><![CDATA[We use a lot of local zones in our Solaris 10 environment. We also use cfengine pretty heavily and there are some instances when we need to include or exclude certain automated tasks based on what type of zone we &#8230; <a href="http://spiralbound.net/blog/2009/03/03/script-to-determine-solaris-10-zone-type/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>We use a lot of local zones in our Solaris 10 environment. We also use cfengine pretty heavily and there are some instances when we need to include or exclude certain automated tasks based on what type of zone we are working with. I wrote this little script that checks to see what type of zone we are dealing with. Based on the return value, I can set a cfengine class and control what gets run and where.</p>
<ul>
<li>Return 0 if the machine is a global zone with 1 or more local zones</li>
<li>Return 1 if the machine is either a local zone or a global zone with 0 local zones</li>
</ul>
<pre>
#! /bin/bash
#
# When issued with the -g or --global flag, this script will return:
# 0 if the machine is a global zone and has one or more local zones.
# Otherwise, it will return 1
#
# Wen issued with the -l or --local flag, this script will return:
# 0 if if is a local zone and 1 if it is not
#

list=( `/usr/sbin/zoneadm list -civ | awk '{ print $1 }'`)
  case "$1" in
    -g|--global)
        # If the third element in our array is null, set it to 0
        if [ "${list[2]}" == ""  ]; then
        list[2]=0
        fi
        # This is a global zone only if it has one or more local zones.
        if [ ${list[1]} -eq 0 ] &#038;& [ ${list[2]} -ge 1 ]; then
        # 1 is returned if we have a global and local zone, otherwise, we return 0
                exit 0
            else
                exit 1
        fi
              ;;
    -l|--local)
        # If the second element in our array is = or > 1, it is a local zone.
        if [ ${list[1]} -ge 1 ]; then
        # Return 1 if this is a local zone, otherwise return 0.
                exit 0
            else
                exit 1
        fi
              ;;
        *)
        echo "Usage: /local/adm/zonetype.sh {-l | --local | -g | --global}"
        exit 1
  esac
</pre>
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at...</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2009/03/02/check-speed-duplex-on-solaris-10/'>Check Speed / Duplex on Solaris 10</a></li>
<li><a href='http://spiralbound.net/blog/2010/01/26/zonetype-sh-version-2-0/'>ZoneType.sh Version 2.0</a></li>
<li><a href='http://spiralbound.net/blog/2012/01/09/how-to-replace-a-failed-drive-in-a-zfs-pool/'>How to Replace a Failed Drive in a ZFS Pool</a></li>
<li><a href='http://spiralbound.net/blog/2006/03/31/how-to-increase-the-maximum-number-of-processes-per-uid-in-solaris/'>Increase The Max Number of Processes Per UID in Solaris</a></li>
<li><a href='http://spiralbound.net/blog/2004/06/11/solaris-disk-partition-layout-mirroring-scripts/'>Solaris Disk Partition Layout &#038; Mirroring Scripts</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2010/01/26/zonetype-sh-version-2-0/'>ZoneType.sh Version 2.0</a></li>
<li><a href='http://spiralbound.net/blog/2011/10/11/thankyou-now-time-for-a-cold-one/'>THANKYOU! &#8211; Now time for a cold one!</a></li>
<li><a href='http://spiralbound.net/blog/2010/08/20/how-to-enable-ssl-for-cswapache2/'>How to Enable SSL for CSWapache2</a></li>
<li><a href='http://spiralbound.net/blog/2008/12/28/install-solaris-package-in-alternate-base-directory/'>Install Solaris Package in Alternate Base Directory</a></li>
<li><a href='http://spiralbound.net/blog/2008/06/03/x11-forwarding-broken-on-solaris/'>X11 Forwarding Broken on Solaris</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2009/03/03/script-to-determine-solaris-10-zone-type/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Check Speed / Duplex on Solaris 10</title>
		<link>http://spiralbound.net/blog/2009/03/02/check-speed-duplex-on-solaris-10/</link>
		<comments>http://spiralbound.net/blog/2009/03/02/check-speed-duplex-on-solaris-10/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 23:52:54 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Data and Technology]]></category>
		<category><![CDATA[dladm]]></category>
		<category><![CDATA[duplex]]></category>
		<category><![CDATA[ethernet]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[link speed]]></category>
		<category><![CDATA[ndd]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=1198</guid>
		<description><![CDATA[In the past, I always had to use the ndd - get command to figure out what my link speed and duplex settings were. In Solaris 10, Sun now gives us the handy dladm command, which makes it a whole &#8230; <a href="http://spiralbound.net/blog/2009/03/02/check-speed-duplex-on-solaris-10/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>In the past, I always had to use the ndd - get command to figure out what my link speed and duplex settings were. In Solaris 10, Sun now gives us the handy dladm command, which makes it a whole lot easier. <br clear="left"/><br />
<code><br />
# dladm show-dev<br />
e1000g2         link: up        speed: 1000  Mbps       duplex: full<br />
e1000g3         link: up        speed: 1000  Mbps       duplex: full<br />
e1000g0         link: up        speed: 1000  Mbps       duplex: full<br />
e1000g1         link: up        speed: 1000  Mbps       duplex: full<br />
</code></p>
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at...</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2005/04/05/forcing-sun-network-interfaces-to-100full-duplex/'>Forcing Sun Network Interfaces to 100/Full Duplex</a></li>
<li><a href='http://spiralbound.net/blog/2005/04/16/issues-forcing-speed-duplex-on-ce-and-bge-ethernet-cards/'>Issues forcing Speed / Duplex on &#8221;ce&#8221; and &#8221;bge&#8221; Ethernet cards</a></li>
<li><a href='http://spiralbound.net/blog/2009/03/03/script-to-determine-solaris-10-zone-type/'>Script to Determine Solaris 10 Zone Type</a></li>
<li><a href='http://spiralbound.net/blog/2005/05/10/how-to-copy-a-solaris-boot-drive-to-a-disk-with-a-different-partition-layout/'>Copy a Solaris Boot Drive to a New Disk</a></li>
<li><a href='http://spiralbound.net/blog/2012/07/03/illumos-zfs-storage-appliance/img_8937/'>Drives in Place</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2007/02/16/ifconfig-does-not-give-you-link-status-ethtool-does/'>IFCONFIG Does Not give You Link Status; ETHTOOL Does</a></li>
<li><a href='http://spiralbound.net/blog/2007/10/02/smb-printing-in-mac-osx/'>SMB Printing in Mac OSX</a></li>
<li><a href='http://spiralbound.net/blog/2006/06/06/sun-happy-meal-card/'>Sun Happy Meal Card???</a></li>
<li><a href='http://spiralbound.net/blog/2005/08/04/problems-with-ghost-and-broadcom-netxtreme-dos-drivers/'>Problems with Ghost and Broadcom NetXtreme DOS drivers</a></li>
<li><a href='http://spiralbound.net/blog/2005/04/16/issues-forcing-speed-duplex-on-ce-and-bge-ethernet-cards/'>Issues forcing Speed / Duplex on &#8221;ce&#8221; and &#8221;bge&#8221; Ethernet cards</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2009/03/02/check-speed-duplex-on-solaris-10/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Replace Failed SVM Mirror Drive</title>
		<link>http://spiralbound.net/blog/2009/02/16/replace-failed-svm-mirror-drive/</link>
		<comments>http://spiralbound.net/blog/2009/02/16/replace-failed-svm-mirror-drive/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 05:45:42 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Data and Technology]]></category>
		<category><![CDATA[cfgadm]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[disk suite]]></category>
		<category><![CDATA[failed drive]]></category>
		<category><![CDATA[metadb]]></category>
		<category><![CDATA[metareplace]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=1141</guid>
		<description><![CDATA[So you have used SVM to mirror your disk, and one of the two drives fails. Aren't you glad you mirrored them! You don't have to do a restore from tape, but you are going have to replace the failed &#8230; <a href="http://spiralbound.net/blog/2009/02/16/replace-failed-svm-mirror-drive/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>So you have used SVM to mirror your disk, and one of the two drives fails. Aren't you glad you mirrored them! You don't have to do a restore from tape, but you are going have to replace the failed drive.</p>
<p>Many modern RAID arrays just require you to take out the bad drive and plug in the new one, while everything else is taken care of automatically. It's not quite that easy on a Sun server, but it's really just a few simple steps.  I just had to do this, so I thought I would write down the procedure here.</p>
<p>Basically, the process boils down to the following steps:</p>
<ul>
<li>Detach the failed meta devices from the failed drive</li>
<li>Delete the meta devices from the failed drive</li>
<li>Delete the meta databases from the failed drive</li>
<li>Unconfigure the failed drive</li>
<li>Remove and replace the failed drive</li>
<li>Configure the new drive</li>
<li>Copy the remaining drive's partition table to the new drive</li>
<li>Re-create the meta databases on the new drive</li>
<li>Install the bootblocks on the new drive</li>
<li>Recreate the meta devices</li>
<li>Attach the meta devices</li>
</ul>
<p>Let's look at each step individually. In my case, c0t1d0 has failed, so, I detach all meta devices on that disk and then delete them:</p>
<p><code><br />
# metadetach -f d0 d2<br />
# metadetach -f d10 d12<br />
# metadetach -f d40 d42<br />
# metaclear d2<br />
# metaclear d12<br />
# metaclear d42<br />
</code></p>
<p>Next I take a look at the status of my meta databases. Below we can see the the replicas on that disk have write errors:</p>
<pre>
# metadb -i
        flags           first blk       block count
     a m  p  luo        16               8192            /dev/dsk/c0t0d0s3
     a    p  luo        8208             8192            /dev/dsk/c0t0d0s3
     W    p  luo        16                8192            /dev/dsk/c0t1d0s3
     W    p  luo        8208            8192            /dev/dsk/c0t1d0s3
 r - replica does not have device relocation information
 o - replica active prior to last mddb configuration change
 u - replica is up to date
 l - locator for this replica was read successfully
 c - replica's location was in /etc/lvm/mddb.cf
 p - replica's location was patched in kernel
 m - replica is master, this is replica selected as input
 W - replica has device write errors
 a - replica is active, commits are occurring to this replica
 M - replica had problem with master blocks
 D - replica had problem with data blocks
 F - replica had format problems
 S - replica is too small to hold current data base
 R - replica had device read errors
</pre>
<p>The replicas on c0t1d0s3 are dead to us, so let's wipe them out!</p>
<p><code><br />
# metadb -d c0t1d0s3<br />
# metadb -i<br />
</code></p>
<pre>
        flags           first blk       block count
     a m  p  luo        16               8192            /dev/dsk/c0t0d0s3
     a    p  luo        8208             8192            /dev/dsk/c0t0d0s3
</pre>
<p>The only replicas we have left are on c0t0d0s3, so I'm all clear to unconfigure the device. I run cfgadm to get the c0 path:</p>
<p><code><br />
# cfgadm -al<br />
</code></p>
<pre>
Ap_Id                          Type         Receptacle   Occupant     Condition
c0                             scsi-bus     connected    configured   unknown
c0::dsk/c0t0d0                 disk         connected    configured   unknown
c0::dsk/c0t1d0                 disk         connected    configured   unknown
c0::dsk/c0t2d0                 disk         connected    configured   unknown
c0::dsk/c0t3d0                 disk         connected    configured   unknown
c1                             scsi-bus     connected    configured   unknown
c1::dsk/c1t0d0                 CD-ROM       connected    configured   unknown
usb0/1                         unknown      empty        unconfigured ok
usb0/2                         unknown      empty        unconfigured ok
usb1/1.1                       unknown      empty        unconfigured ok
usb1/1.2                       unknown      empty        unconfigured ok
usb1/1.3                       unknown      empty        unconfigured ok
usb1/1.4                       unknown      empty        unconfigured ok
usb1/2                         unknown      empty        unconfigured ok
</pre>
<p>I run the following command to unconfigure the failed drive:</p>
<p><code><br />
# cfgadm -c unconfigure c0::dsk/c0t1d0<br />
</code></p>
<p>The drive light turns blue<br />
Pull the failed drive out<br />
Insert the new drive</p>
<p>Configure the new drive:</p>
<p><code><br />
# cfgadm -c configure c0::dsk/c0t1d0<br />
</code></p>
<p>Now that the drive is configured and visible from within the format command, we can copy the partition table from the remaining mirror member:</p>
<p><code><br />
# prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t1d0s2<br />
</code></p>
<p>Next, I install the bootblocks onto the new drive:</p>
<p><code><br />
# installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t1d0s2<br />
</code></p>
<p>Create the state replicas:</p>
<p><code><br />
metadb -a -c 2 c0t1d0s3<br />
</code></p>
<p>Recreate the meta devices:<br />
<code><br />
metainit -f d2 1 1 c0t1d0s0<br />
metainit -f d12 1 1 c0t1d0s1<br />
metainit -f d42 1 1 c0t1d0s4<br />
</code></p>
<p>And finally, reattach the metadevices which will sync them up with the mirror.</p>
<p><code><br />
metattach d0 d2<br />
metattach d10 d12<br />
metattach d40 d42<br />
</code><br />
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at...</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2005/05/10/how-to-copy-a-solaris-boot-drive-to-a-disk-with-a-different-partition-layout/'>Copy a Solaris Boot Drive to a New Disk</a></li>
<li><a href='http://spiralbound.net/blog/2009/03/04/best-of-santa-cruz-city-council/'>Best of the Santa Cruz City Council</a></li>
<li><a href='http://spiralbound.net/blog/2009/01/27/happy-1234567890-second-unix/'>Happy 1234567890&#8242;th Second UNIX!</a></li>
<li><a href='http://spiralbound.net/blog/2005/12/21/rebuilding-the-solaris-device-tree/'>Rebuilding the Solaris Device Tree</a></li>
<li><a href='http://spiralbound.net/blog/2009/03/03/script-to-determine-solaris-10-zone-type/'>Script to Determine Solaris 10 Zone Type</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2007/12/10/solaris-8-san-frustrations/'>Solaris 8 SAN Frustrations</a></li>
<li><a href='http://spiralbound.net/blog/2006/11/21/taking-disk-cylinders-from-swap-on-solaris-8/'>Taking Disk Cylinders From Swap on Solaris 8</a></li>
<li><a href='http://spiralbound.net/blog/2005/09/21/solaris-x86-compatible-raid-controller/'>Solaris X86 Compatible RAID Controller</a></li>
<li><a href='http://spiralbound.net/blog/2005/09/09/problems-with-multiple-metadb-partitions/'>Problems With Multiple MetaDB Partitions</a></li>
<li><a href='http://spiralbound.net/blog/2007/07/23/problems-registering-solaris-hosts-with-qla-2310-hbas-in-navasphere/'>Registering Solaris CLARiiON Hosts With QLA 2310 HBAs</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2009/02/16/replace-failed-svm-mirror-drive/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Happy 1234567890&#8242;th Second UNIX!</title>
		<link>http://spiralbound.net/blog/2009/01/27/happy-1234567890-second-unix/</link>
		<comments>http://spiralbound.net/blog/2009/01/27/happy-1234567890-second-unix/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 19:31:24 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Data and Technology]]></category>
		<category><![CDATA[1234567890]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[epoch]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[UNIX time]]></category>
		<category><![CDATA[UTC]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=1144</guid>
		<description><![CDATA[Today, Friday February 13, at 3:31 PM (PST), the UNIX time will read exactly 1234567890. So exacly what is all this excitement about UNIX being able to count to 10? Surely, the operating system that is slowly but steadily putting &#8230; <a href="http://spiralbound.net/blog/2009/01/27/happy-1234567890-second-unix/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Today, Friday February 13, at 3:31 PM (PST), the UNIX time will read exactly 1234567890. So exacly what is all this excitement about UNIX being able to count to 10? Surely, the operating system that is slowly but steadily <a href="http://www.talkibie.com/technology/606/">putting Microsoft out of business</a> must be able to do that. Well, it's actually the UNIX time stamp, and what has all of us nerds talking is really just the fact that the numbers have never lined up in sequence like this before.</p>
<p>So what the heck is this UNIX time anyhow? Well, simply put, it's actually the exact number of seconds since the the Unix epoch. This was 00:00:00 UTC on January 1, 1970.</p>
<p>From <a href="http://en.wikipedia.org/wiki/Unix_time">Wikipedia</a>:</p>
<blockquote><p>
It is not a linear representation of time nor a true representation of UTC (though it is frequently mistaken for both) as the times it represents are UTC but it has no way of representing UTC leap seconds (e.g. 1998-12-31 23:59:60).
</p></blockquote>
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at...</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2007/07/23/bash-for-loop-example/'>Bash For loop Example</a></li>
<li><a href='http://spiralbound.net/blog/2009/11/02/unix-find-files-that-changed-within-time-window/'>UNIX &#8211; Find Files that Changed Within Time Window</a></li>
<li><a href='http://spiralbound.net/blog/2008/12/07/worlds-coolest-datacenter/'>World&#8217;s Coolest Datacenter</a></li>
<li><a href='http://spiralbound.net/blog/2009/04/30/useful-mysql-commands/'>Useful MySQL Commands</a></li>
<li><a href='http://spiralbound.net/blog/2010/08/20/how-to-enable-ssl-for-cswapache2/'>How to Enable SSL for CSWapache2</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2006/12/19/getting-ntpd-to-work-correctly-on-rhel/'>Getting ntpd to work correctly on RHEL</a></li>
<li><a href='http://spiralbound.net/blog/2012/01/09/how-to-replace-a-failed-drive-in-a-zfs-pool/'>How to Replace a Failed Drive in a ZFS Pool</a></li>
<li><a href='http://spiralbound.net/blog/2011/02/24/thanks-for-the-tip/'>Thanks for the tip.</a></li>
<li><a href='http://spiralbound.net/blog/2010/01/26/zonetype-sh-version-2-0/'>ZoneType.sh Version 2.0</a></li>
<li><a href='http://spiralbound.net/blog/2009/11/02/unix-find-files-that-changed-within-time-window/'>UNIX &#8211; Find Files that Changed Within Time Window</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2009/01/27/happy-1234567890-second-unix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
<enclosure url="http://spiralbound.net/wp-content/uploads/2009/01/gijoe-firealarm.mpg" length="1179652" type="video/mpeg" />
<enclosure url="http://spiralbound.net/wp-content/uploads/2009/01/deep6-11.mpg" length="1472516" type="video/mpeg" />
<enclosure url="http://spiralbound.net/wp-content/uploads/2009/01/gijoe-porksand.mpg" length="1947652" type="video/mpeg" />
<enclosure url="http://spiralbound.net/wp-content/uploads/2009/01/gijoebodymassage.mov" length="1074176" type="video/quicktime" />
<enclosure url="http://spiralbound.net/wp-content/uploads/2009/01/gijoe-reggae.mov" length="1801785" type="video/quicktime" />
<enclosure url="http://spiralbound.net/wp-content/uploads/2009/01/deep6-1.mpg" length="1472516" type="video/mpeg" />
		</item>
		<item>
		<title>Basic iptables Configuration</title>
		<link>http://spiralbound.net/blog/2008/12/31/basic-iptables-configuration/</link>
		<comments>http://spiralbound.net/blog/2008/12/31/basic-iptables-configuration/#comments</comments>
		<pubDate>Thu, 01 Jan 2009 00:05:54 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Data and Technology]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysl]]></category>
		<category><![CDATA[port forward]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=388</guid>
		<description><![CDATA[It's always a good idea to setup a local firewall on hosts that are on unprotected networks. The internet "winds" blow harder and harder each day, and it's only a matter of time before some daemon has an exploit that &#8230; <a href="http://spiralbound.net/blog/2008/12/31/basic-iptables-configuration/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>It's always a good idea to setup a local firewall on hosts that are on unprotected networks. The internet "winds" blow harder and harder each day, and it's only a matter of time before some daemon has an exploit that gets taken advantage of. I use <a href="http://centos.org">CentOS</a> 5 for all my web servers, and here is an example of the script I use to create a DEFAULT TO DENY set of firewall rules. This script generates a file called iptables in /etc/sysconfig.</p>
<p>I used to create a special rule for MySQL that only allowed connections from my own network, but lately I have been omitting this rule and <a href="http://spiralbound.net/2007/01/31/mysql-connection-over-an-ssl-tunnel">tunneling the connection through ssh instead</a>. That is why it is commented out in the script below.</p>
<p><code><br />
### SCRIPT ###<br />
#!/bin/sh<br />
# Drop all incoming traffic<br />
/sbin/iptables -P INPUT DROP<br />
# Drop all forwarded traffic<br />
/sbin/iptables -P FORWARD DROP<br />
# Allow all outgoing traffic<br />
/sbin/iptables -P OUTPUT ACCEPT<br />
# Allow returning packets<br />
/sbin/iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT<br />
# Allow incoming traffic on port 80 for web server<br />
/sbin/iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT<br />
# Allow MySQL only from a certain network<br />
/sbin/iptables -A INPUT -p tcp -m tcp -s XXX.XXX.XXX.0/24 --dport 3306 -j ACCEPT<br />
# Allow local traffic<br />
/sbin/iptables -A INPUT -i lo -j ACCEPT<br />
# Allow incoming SSH on port 22<br />
#/sbin/iptables -A INPUT -p tcp -m tcp --dport 22 -j ACCEPT<br />
# Allow ping<br />
/sbin/iptables -A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT<br />
/sbin/iptables-save > /etc/sysconfig/iptables<br />
chmod go-r /etc/sysconfig/iptables<br />
/sbin/sudo service iptables restart<br />
### /SCRIPT ###<br />
</code></p>
<p>Here is what /etc/sysconfig/iptables looks like after running this script:</p>
<p><code><br />
# Generated by iptables-save v1.3.5 on Wed Dec 31 13:47:40 2008<br />
*filter<br />
:INPUT DROP [0:0]<br />
:FORWARD DROP [0:0]<br />
:OUTPUT ACCEPT [12:8972]<br />
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT<br />
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT<br />
-A INPUT -p tcp -m tcp --dport 3306 -j ACCEPT<br />
-A INPUT -i lo -j ACCEPT<br />
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT<br />
-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT<br />
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT<br />
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT<br />
-A INPUT -i lo -j ACCEPT<br />
-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT<br />
COMMIT<br />
# Completed on Wed Dec 31 13:47:40 2008<br />
</code></p>
<p>After you are done, make sure you have iptables setup to start when the system boots.</p>
<p><code><br />
# /sbin/chkconfig --list | grep iptables</p>
<pre>iptables       	0:off	1:off	2:on	3:on	4:on	5:on	6:off</pre>
<p></code></p>
<p>If it's not on, just run:<br />
<code><br />
/sbin/chkconfig iptables on<br />
</code><br />
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at...</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2007/04/30/disable-ssh-root-logins-on-rhel/'>Disable SSH Root Logins on RHEL</a></li>
<li><a href='http://spiralbound.net/blog/2009/04/30/useful-mysql-commands/'>Useful MySQL Commands</a></li>
<li><a href='http://spiralbound.net/blog/2008/12/07/worlds-coolest-datacenter/'>World&#8217;s Coolest Datacenter</a></li>
<li><a href='http://spiralbound.net/blog/2007/04/11/rhel-winbind-authentication-against-active-directory/'>RHEL Winbind Authentication Against Active Directory</a></li>
<li><a href='http://spiralbound.net/blog/2007/01/31/mysql-connection-over-an-ssl-tunnel/'>MySQL Connection Over an ssl Tunnel</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2007/04/30/disable-ssh-root-logins-on-rhel/'>Disable SSH Root Logins on RHEL</a></li>
<li><a href='http://spiralbound.net/blog/2006/12/21/horde-imp-on-rhel-4-from-rpm-howto/'>Horde / IMP on RHEL 4 From RPM HOWTO</a></li>
<li><a href='http://spiralbound.net/blog/2007/01/31/mysql-connection-over-an-ssl-tunnel/'>MySQL Connection Over an ssl Tunnel</a></li>
<li><a href='http://spiralbound.net/blog/2006/12/15/installing-opengroupware-115-on-rhel-3/'>Installing OpenGroupWare 1.1.5 on RHEL 3</a></li>
<li><a href='http://spiralbound.net/blog/2005/04/29/apache-mysql-and-php-howto-from-source/'>Apache, MySql and PHP Howto (from source)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2008/12/31/basic-iptables-configuration/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install Solaris Package in Alternate Base Directory</title>
		<link>http://spiralbound.net/blog/2008/12/28/install-solaris-package-in-alternate-base-directory/</link>
		<comments>http://spiralbound.net/blog/2008/12/28/install-solaris-package-in-alternate-base-directory/#comments</comments>
		<pubDate>Sun, 28 Dec 2008 23:25:59 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Data and Technology]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[admin file]]></category>
		<category><![CDATA[basedir]]></category>
		<category><![CDATA[defaults]]></category>
		<category><![CDATA[packages]]></category>
		<category><![CDATA[pkgadd]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=376</guid>
		<description><![CDATA[Unless you specify a different administrative file, the pkgadd command reads "/var/sadm/install/admin/default", which specifies the base directory as "/opt". Do not change the settings in this file, but rather create a custom admin file and enter an alternate "basedir" directive &#8230; <a href="http://spiralbound.net/blog/2008/12/28/install-solaris-package-in-alternate-base-directory/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Unless you specify a different administrative file, the pkgadd command reads "/var/sadm/install/admin/default", which specifies the base directory as "/opt". Do not change the settings in this file, but rather create a custom admin file and enter an alternate "basedir" directive if you want to install your package into a different directory. We are going to install our package into "/var/applications", and call our custom admin file "custom".</p>
<p>First, create and edit "/var/sadm/install/admin/custom", adding a line similar to this:<br />
basedir=/var/applications/$PKGINST</p>
<p>Next, issue the pkgadd command with the "-a" flag to call you alternative admin file:</p>
<p>pkgadd -d device -a custom PackageName</p>
<p>This really comes in handy when your customers want to retain control over their packages, but you don't want to give them access to write packages into the system area. More detailed instructions can be found <a href="http://snap.nlc.dcccd.edu/reference/sysadmin/julian/ch13/286-288.html">here</a>.<br />
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at...</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2012/01/09/how-to-replace-a-failed-drive-in-a-zfs-pool/'>How to Replace a Failed Drive in a ZFS Pool</a></li>
<li><a href='http://spiralbound.net/blog/2005/12/19/sunwqlc-drivers-dont-work-with-thw-qlogic-qla2340-hba/'>SUNWqlc Drivers Don&#8217;t Work With thw QLogic QLA2340 HBA</a></li>
<li><a href='http://spiralbound.net/blog/2005/05/10/how-to-copy-a-solaris-boot-drive-to-a-disk-with-a-different-partition-layout/'>Copy a Solaris Boot Drive to a New Disk</a></li>
<li><a href='http://spiralbound.net/blog/2004/06/11/solaris-disk-partition-layout-mirroring-scripts/'>Solaris Disk Partition Layout &#038; Mirroring Scripts</a></li>
<li><a href='http://spiralbound.net/blog/2010/08/20/how-to-enable-ssl-for-cswapache2/'>How to Enable SSL for CSWapache2</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2010/01/26/zonetype-sh-version-2-0/'>ZoneType.sh Version 2.0</a></li>
<li><a href='http://spiralbound.net/blog/2005/12/19/sunwqlc-drivers-dont-work-with-thw-qlogic-qla2340-hba/'>SUNWqlc Drivers Don&#8217;t Work With thw QLogic QLA2340 HBA</a></li>
<li><a href='http://spiralbound.net/blog/2012/01/09/how-to-replace-a-failed-drive-in-a-zfs-pool/'>How to Replace a Failed Drive in a ZFS Pool</a></li>
<li><a href='http://spiralbound.net/blog/2011/10/11/thankyou-now-time-for-a-cold-one/'>THANKYOU! &#8211; Now time for a cold one!</a></li>
<li><a href='http://spiralbound.net/blog/2010/08/20/how-to-enable-ssl-for-cswapache2/'>How to Enable SSL for CSWapache2</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2008/12/28/install-solaris-package-in-alternate-base-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>World&#8217;s Coolest Datacenter</title>
		<link>http://spiralbound.net/blog/2008/12/07/worlds-coolest-datacenter/</link>
		<comments>http://spiralbound.net/blog/2008/12/07/worlds-coolest-datacenter/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 23:10:11 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Data and Technology]]></category>
		<category><![CDATA[Highlights]]></category>
		<category><![CDATA[bahnhof]]></category>
		<category><![CDATA[datacenter]]></category>
		<category><![CDATA[james bond]]></category>
		<category><![CDATA[pionen]]></category>
		<category><![CDATA[stockholm]]></category>
		<category><![CDATA[sweden]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[underground]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=310</guid>
		<description><![CDATA[Ever since coming to work at UC Santa Cruz, I have been feeling pretty lucky to work in a well engineered and managed datacenter. So lucky, in fact, that I've been cultivating hatred towards me in my former coworkers by &#8230; <a href="http://spiralbound.net/blog/2008/12/07/worlds-coolest-datacenter/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Ever since coming to work at <a href="http://its.ucsc.edu/core_tech/operations/">UC Santa Cruz</a>, I have been feeling pretty lucky to work in a well engineered and managed datacenter. So lucky, in fact, that I've been cultivating hatred towards me in my <a href="http://plymouth.edu/infotech/">former coworkers</a> by regaling them with stories about how wonderfully designed everything is here. The problem with thinking you have it made though, is that someone will always point out some greener grass in another field.</p>
<p>This is exactly what happened when I saw <a href="http://royal.pingdom.com/2008/11/14/the-worlds-most-super-designed-data-center-fit-for-a-james-bond-villain/">this article</a> about the <a href="http://www.bahnhof.se/colocation.php">Pionen datacenter</a>, owned by Bahnhof in Sweden. Located nearly 100 feet beneath the city of Stockholm, this epic datacenter has been compared (fairly I might add) to the secret layer of a James Bond villian. It's got backup power provided by twin submarine engines, triple-redundant internet backbone connections, and can reportedly stand up to a Hydrogen bomb. We spend so much time and effort trying to make our servers comfortable when designing datacenters, we often forget about the Human element. Even though these guys are literally working in a cave, it's nice to see that <a href="http://www.bahnhof.se/index.php">Bahnhof</a> is trying to make its people comfortable as well.<br />
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at...</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2009/10/14/arduino-resources-for-the-n00b/'>Arduino Resources for the n00b</a></li>
<li><a href='http://spiralbound.net/blog/2008/06/09/creating-linux-partitions-for-clariion/'>Creating Linux Partitions for CLARiiON</a></li>
<li><a href='http://spiralbound.net/blog/2009/11/02/unix-find-files-that-changed-within-time-window/'>UNIX &#8211; Find Files that Changed Within Time Window</a></li>
<li><a href='http://spiralbound.net/blog/2007/04/11/rhel-winbind-authentication-against-active-directory/'>RHEL Winbind Authentication Against Active Directory</a></li>
<li><a href='http://spiralbound.net/blog/2009/04/30/useful-mysql-commands/'>Useful MySQL Commands</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2005/06/16/whats-up-with-the-new-cms/'>What&#8217;s up with the new CMS?</a></li>
<li><a href='http://spiralbound.net/blog/2010/01/26/zonetype-sh-version-2-0/'>ZoneType.sh Version 2.0</a></li>
<li><a href='http://spiralbound.net/blog/2009/10/14/arduino-resources-for-the-n00b/'>Arduino Resources for the n00b</a></li>
<li><a href='http://spiralbound.net/blog/2008/08/05/bare-metal-linux-restore/'>Bare Metal Linux Restore</a></li>
<li><a href='http://spiralbound.net/blog/2008/02/26/sun-project-blackbox-datacenter-in-a-can/'>Sun Project Blackbox &#8211; Datacenter in a Can</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2008/12/07/worlds-coolest-datacenter/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Move to Santa Cruz</title>
		<link>http://spiralbound.net/blog/2008/08/23/move-to-santa-cruz/</link>
		<comments>http://spiralbound.net/blog/2008/08/23/move-to-santa-cruz/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 20:14:54 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Et cetera]]></category>
		<category><![CDATA[Highlights]]></category>
		<category><![CDATA[California]]></category>
		<category><![CDATA[relocation]]></category>
		<category><![CDATA[Santa cruz]]></category>
		<category><![CDATA[UCSC]]></category>
		<category><![CDATA[vermont]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=354</guid>
		<description><![CDATA[Well, after five years living in Vermont, and something like thirteen years living in New England, Courtney and I have gone and moved to Santa Cruz, CA. There are a lot of reasons for this; the very hard winters and &#8230; <a href="http://spiralbound.net/blog/2008/08/23/move-to-santa-cruz/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Well, after five years living in Vermont, and something like thirteen years living in New England, <a href="http://twistedstitches.net">Courtney</a> and I have gone and moved to Santa Cruz, CA. There are a lot of reasons for this; the very hard winters and extremely rainy summers in Vermont were starting to wear on us, but mostly we just wanted to live in a young and vital place that has a larger population. Courtney had some experience with the area during her brief stint working at <a href="http://www.medicinebuddha.org/medicine_buddha.htm">Land of Medicine Buddha</a>, and I had always enjoyed The Monterey Bay area when my family and I would camp here as a kid, so Santa Cruz seemed the perfect place for us.</p>
<p>I applied for a UNIX Systems Engineer position at the <a href="http://ucsc.edu">University of California Santa Cruz</a>, and was offered the job back in July. After some serious soul searching, I decided to accept, and we started the process of relocating a full 3,000 miles from home, which I can assure you is no simple task! I've been here just under two weeks, but Courtney is still tidying up our affairs in Vermont before she starts the long journey out here in <a href="http://spiralbound.net/2007/11/13/toyota-yaris-review">our car</a>. Yep... That's car, not cars. The public transportation system is so good out here that we can finally be a single car family. For my part, I've managed to move clear across this country twice and not driven it a single time. This is fine with me, however, since I have very little interest in seeing <a href="http://en.wikipedia.org/wiki/Middle_America_(United_States)#As_a_cultural_and_geographical_label">middle America</a>.</p>
<p><a href="http://maisonbisson.com/blog/">Casey</a> and I managed to find <a href="http://flickr.com/photos/maisonbisson/tags/paulasbreakfastshack/">Paula's Breakfast Shack</a> while he was out for <a href="http://2008.sf.wordcamp.org/">WordCamp 08</a>. Home of the $1.99 Basic Breakfast, this place is so good, that I simply can't imagine going anywhere else for eggs and home fries! I've tried a number of <a href="http://en.wikipedia.org/wiki/Taquer%C3%ADa">taquerias</a>, but the jury is still out on which one is best. Once I find it I'll have to freeze some tacos and burritos and send them out to <a href="http://borkweb.com">Matt</a>, who has strongly indicated that he hates me for having such easy access to good Mexican Food.<br />
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at...</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2009/03/04/best-of-santa-cruz-city-council/'>Best of the Santa Cruz City Council</a></li>
<li><a href='http://spiralbound.net/blog/2009/05/01/the-banana-slug-is-not-a-mythical-creature/'>The Banana Slug is not a Mythical Creature</a></li>
<li><a href='http://spiralbound.net/about/'>About</a></li>
<li><a href='http://spiralbound.net/?page_id=1097'>Gallery</a></li>
<li><a href='http://spiralbound.net/blog/2007/11/13/toyota-yaris-review/'>Toyota Yaris Review</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2009/05/01/the-banana-slug-is-not-a-mythical-creature/'>The Banana Slug is not a Mythical Creature</a></li>
<li><a href='http://spiralbound.net/blog/2009/03/04/best-of-santa-cruz-city-council/'>Best of the Santa Cruz City Council</a></li>
<li><a href='http://spiralbound.net/blog/2007/07/18/brattleboro-selectmen-ban-public-nudity/'>Brattleboro Selectmen Ban Public Nudity</a></li>
<li><a href='http://spiralbound.net/blog/2007/07/11/springfield-vermont-will-host-simpsons-movie-premiere/'>Springfield Vermont Will Host Simpsons Movie Premiere</a></li>
<li><a href='http://spiralbound.net/blog/2007/06/08/charges-for-making-faces-at-police-dog-dont-stick/'>Charges for Making Faces at Police Dog Don&#8217;t Stick</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2008/08/23/move-to-santa-cruz/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<georss:point>36.9671745 -122.0388794</georss:point>	</item>
		<item>
		<title>Bare Metal Linux Restore</title>
		<link>http://spiralbound.net/blog/2008/08/05/bare-metal-linux-restore/</link>
		<comments>http://spiralbound.net/blog/2008/08/05/bare-metal-linux-restore/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 16:14:34 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Data and Technology]]></category>
		<category><![CDATA[Highlights]]></category>
		<category><![CDATA[bare metal]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[restore]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[RHEL4]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=344</guid>
		<description><![CDATA[Several weeks ago we started seeing some pretty scary errors showing up on the main system disk for our Blackboard server. We had an extra server hanging around, so we decided to move all the data off the failing disk &#8230; <a href="http://spiralbound.net/blog/2008/08/05/bare-metal-linux-restore/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Several weeks ago we started seeing some pretty scary errors showing up on the main system disk for our Blackboard server. We had an extra server hanging around, so we decided to move all the data off the failing disk and onto our spare server. The only question was how to make the new server as close to a perfect copy of the old one as possible. Simply restoring all the filesystems failed for a variety of reasons, mostly related to GRUB and the kernel, so I had to find a way of excluding only the files and directories that were tied to the specific model of server.</p>
<p>To do this, I started by installing a minimal copy of RHEL 4, making sure to lay the filesystems out in exactly the same way as they were on the old server. I then went through several experiments, leaving just the bare minimum files and directories required for the hardware and booting, but formatting all other filesystems and restoring the data from our old server. In the end, the below process resulted in system that worked perfectly, and very closely mirrored the original server.<br />
<span id="more-344"></span></p>
<ul>
<li>I conducted a minimal OS install on the new server, replicating the filesystem layout on the old server.</li>
<li>I booted the new server from DVD in rescue mode, allowing it to mount the filesystems in /mnt/sysimage</li>
<li>I removed EVERYTHING in every filesystem and directory EXCEPT the following:</li>
</ul>
<ul>
<li>Everything in /sys</li>
<li>Everything in /dev</li>
<li>Everything in /proc</li>
<li>Everything in /boot</li>
<li>/lib/modules</li>
<li>/etc/grub.conf</li>
<li>/etc/sysconficg/grub</li>
<li>/etc/modules.conf</li>
<li>/etc/fstab</li>
</ul>
<p>Next, I went to my backups and restored the entire system to /mnt/sysimage, making sure not to overwrite existing files. We use NetBackup, which defaults to not overwrite, but other systems are not so careful. If you accidentally overwrite the files we excluded from deletion above, your restored system will not boot.</p>
<p>Once the restore was complete, I rebooted the system and it came up pretty much as a carbon copy of the old server. Once it was up and on the network, I ran "up2date -uf" to install the latest version of the kernel and I was done.<br />
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at...</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2007/04/11/rhel-winbind-authentication-against-active-directory/'>RHEL Winbind Authentication Against Active Directory</a></li>
<li><a href='http://spiralbound.net/blog/2008/12/07/worlds-coolest-datacenter/'>World&#8217;s Coolest Datacenter</a></li>
<li><a href='http://spiralbound.net/blog/2009/11/02/unix-find-files-that-changed-within-time-window/'>UNIX &#8211; Find Files that Changed Within Time Window</a></li>
<li><a href='http://spiralbound.net/blog/2009/04/30/useful-mysql-commands/'>Useful MySQL Commands</a></li>
<li><a href='http://spiralbound.net/blog/2007/02/06/how-to-disable-automatic-fsck-on-ext3-filesystems/'>How to Disable Automatic FSCK on EXT3 Filesystems</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2011/01/22/thanks-so-much-its-a-permanent-bookmark-for-me/'>Thanks so much!  It&#8217;s a permanent bookmark for me.</a></li>
<li><a href='http://spiralbound.net/blog/2008/03/17/rhel-system-configuration-changes-for-oracle-10g/'>RHEL System Configuration Changes for Oracle 10G</a></li>
<li><a href='http://spiralbound.net/blog/2008/01/11/how-to-make-gnarly-big-linux-filesystems/'>How to Make Gnarly Big Linux Filesystems</a></li>
<li><a href='http://spiralbound.net/blog/2007/07/25/rhel-useradd-syntax/'>RHEL useradd Syntax</a></li>
<li><a href='http://spiralbound.net/blog/2007/04/30/disable-ssh-root-logins-on-rhel/'>Disable SSH Root Logins on RHEL</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2008/08/05/bare-metal-linux-restore/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Installing APC on CentOS</title>
		<link>http://spiralbound.net/blog/2008/07/14/installing-apc-on-centos/</link>
		<comments>http://spiralbound.net/blog/2008/07/14/installing-apc-on-centos/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 19:06:12 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Data and Technology]]></category>
		<category><![CDATA[apc]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[pecl]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=324</guid>
		<description><![CDATA[Casey needed me to install APC cache for the Scriblio project. It's a PECL module, and pecl install apc gives an error. Here are some great instructions for getting it all to work. UPDATE: Casey actually has some instructions that &#8230; <a href="http://spiralbound.net/blog/2008/07/14/installing-apc-on-centos/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Casey needed me to install APC cache for the <a href="http://about.scriblio.net/">Scriblio project</a>. It's a PECL module, and <code>pecl install apc</code> gives an error. <a href="http://www.agileapproach.com/blog-entry/howto-install-pecl-apc-cache-centos-without-xampp">Here are some great instructions</a> for getting it all to work.</p>
<p>UPDATE: Casey actually has <a href="http://maisonbisson.com/blog/post/12589/installing-php-apc-on-rhel-centos/">some instructions</a> that provide a more elegant method of installing APC on CentOS or RHEL. Both methods will work, but Casey's instructions will get you around the package management problems.<br />
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at...</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2008/12/28/install-solaris-package-in-alternate-base-directory/'>Install Solaris Package in Alternate Base Directory</a></li>
<li><a href='http://spiralbound.net/blog/2005/09/21/solaris-x86-compatible-raid-controller/'>Solaris X86 Compatible RAID Controller</a></li>
<li><a href='http://spiralbound.net/blog/2005/11/21/picking-a-multiuser-blogging-system/'>Picking a Multiuser Blogging System</a></li>
<li><a href='http://spiralbound.net/blog/2009/04/30/useful-mysql-commands/'>Useful MySQL Commands</a></li>
<li><a href='http://spiralbound.net/blog/2007/11/13/toyota-yaris-review/'>Toyota Yaris Review</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2006/12/21/horde-imp-on-rhel-4-from-rpm-howto/'>Horde / IMP on RHEL 4 From RPM HOWTO</a></li>
<li><a href='http://spiralbound.net/blog/2011/02/24/thanks-for-the-tip/'>Thanks for the tip.</a></li>
<li><a href='http://spiralbound.net/blog/2009/12/22/wp-error-the-data-could-not-be-converted-to-utf-8/'>WP Error: The data could not be converted to UTF-8</a></li>
<li><a href='http://spiralbound.net/blog/2008/12/31/basic-iptables-configuration/'>Basic iptables Configuration</a></li>
<li><a href='http://spiralbound.net/blog/2007/12/12/php-and-sed-for-string-substitution/'>PHP and Sed for String Substitution</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2008/07/14/installing-apc-on-centos/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>RMAN 10G NFS Mount Options</title>
		<link>http://spiralbound.net/blog/2008/06/11/rman-10g-nfs-mount-options/</link>
		<comments>http://spiralbound.net/blog/2008/06/11/rman-10g-nfs-mount-options/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 15:51:18 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Data and Technology]]></category>
		<category><![CDATA[10G]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[mount options]]></category>
		<category><![CDATA[mountpoint]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[options]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[oralce 10G]]></category>
		<category><![CDATA[rman]]></category>

		<guid isPermaLink="false">http://spiralbound.net/?p=323</guid>
		<description><![CDATA[We backup our Oracle databases using RMAN and then write the backup pieces out to an NFS share. This has always worked well, but RMAN started complaining that the NFS share was not mounted with the correct options when we &#8230; <a href="http://spiralbound.net/blog/2008/06/11/rman-10g-nfs-mount-options/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>We backup our Oracle databases using RMAN and then write the backup pieces out to an NFS share. This has always worked well, but RMAN started complaining that the NFS share was not mounted with the correct options when we upgraded to Oracle 10G. After some poking around in the docs I finally came up with a set of mount options that work.</p>
<p>Vfstab entry on a Solaria 8 box:<br />
<code>nfsserver.domain.com:/path/to/remote/mountpoint  /local-mountpoint nfs 0 yes rw,bg,intr,hard,timeo=600,wsize=32768,rsize=32768</code><br />
Manual mount on a Solaris 8 box:<br />
<code>mount -o rw,bg,intr,hard,timeo=600,wsize=32768,rsize=32768 nfsserver.domain.com:/path/to/remote/mountpoint /local-mountpoint</code></p>
<p>According to the docs, the options on a Linux box are pretty much the same, except you would add the following:<br />
<code>nfsver=3,tcp</code><br />
<h3 class="bsuite_related_bypageviews">People who looked at this item also looked at...</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2008/03/17/rhel-system-configuration-changes-for-oracle-10g/'>RHEL System Configuration Changes for Oracle 10G</a></li>
<li><a href='http://spiralbound.net/blog/2006/09/08/why-modern-raid-5-is-ideal-for-oracle-databases/'>Why Modern RAID 5 is Ideal for Oracle Databases</a></li>
<li><a href='http://spiralbound.net/blog/2008/06/03/x11-forwarding-broken-on-solaris/'>X11 Forwarding Broken on Solaris</a></li>
<li><a href='http://spiralbound.net/blog/2006/04/12/changing-linux-mount-points/'>Changing Linux Mount Points</a></li>
<li><a href='http://spiralbound.net/blog/2006/12/06/setting-up-the-automounter-service-on-rhel/'>Setting Up The Automounter Service on RHEL</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://spiralbound.net/blog/2006/12/06/setting-up-the-automounter-service-on-rhel/'>Setting Up The Automounter Service on RHEL</a></li>
<li><a href='http://spiralbound.net/blog/2008/03/17/rhel-system-configuration-changes-for-oracle-10g/'>RHEL System Configuration Changes for Oracle 10G</a></li>
<li><a href='http://spiralbound.net/blog/2006/09/08/why-modern-raid-5-is-ideal-for-oracle-databases/'>Why Modern RAID 5 is Ideal for Oracle Databases</a></li>
<li><a href='http://spiralbound.net/blog/2006/04/12/changing-linux-mount-points/'>Changing Linux Mount Points</a></li>
<li><a href='http://spiralbound.net/blog/2006/01/01/solaris-automounter/'>Solaris Automounter</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spiralbound.net/blog/2008/06/11/rman-10g-nfs-mount-options/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>