<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SYSADMINMAN&#187; Solaris</title>
	<atom:link href="http://sysadminman.net/blog/category/solaris/feed" rel="self" type="application/rss+xml" />
	<link>http://sysadminman.net/blog</link>
	<description></description>
	<lastBuildDate>Sat, 21 Aug 2010 13:55:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Replacing a failed zpool ZFS drive</title>
		<link>http://sysadminman.net/blog/2008/replacing-a-failed-zpool-zfs-drive-137</link>
		<comments>http://sysadminman.net/blog/2008/replacing-a-failed-zpool-zfs-drive-137#comments</comments>
		<pubDate>Mon, 22 Sep 2008 14:56:26 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[spare]]></category>
		<category><![CDATA[zfs]]></category>
		<category><![CDATA[zpool]]></category>

		<guid isPermaLink="false">http://sysadminman.net/blog/?p=137</guid>
		<description><![CDATA[We have a Sun X4500 &#8216;Thumper&#8217; that recently had a failed drive. Our zpools are all raidz2 with 4 spares. We were getting errors on the disk c1t5d0, although the drive hadn&#8217;t failed completely. As we had not yet tested replacing a &#8216;live&#8217; drive the disk was pulled from the system before running any commands [...]]]></description>
			<content:encoded><![CDATA[<p>We have a Sun X4500 &#8216;Thumper&#8217; that recently had a failed drive. Our zpools are all raidz2 with 4 spares. We were getting errors on the disk c1t5d0, although the drive hadn&#8217;t failed completely.</p>
<p>As we had not yet tested replacing a &#8216;live&#8217; drive the disk was pulled from the system before running any commands to remove it from the pool.</p>
<p>You can run the following command to see the status of your pools -</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">zpool status</div></div>
<p><span id="more-137"></span><br />
Our pool was showing as degraded and that a spare drive had been brought online -</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">raidz2 &nbsp; &nbsp; &nbsp;DEGRADED &nbsp; &nbsp; 0 &nbsp; &nbsp; 0 &nbsp; &nbsp; 0&lt;br&gt;<br />
c0t5d0 &nbsp; &nbsp;ONLINE &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; 0 &nbsp; &nbsp; 0&lt;br&gt;<br />
c0t6d0 &nbsp; &nbsp;ONLINE &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; 0 &nbsp; &nbsp; 0&lt;br&gt;<br />
spare &nbsp; &nbsp; DEGRADED &nbsp; &nbsp; 0 &nbsp; &nbsp; 0 &nbsp; &nbsp; 0&lt;br&gt;<br />
c1t5d0 &nbsp;UNAVAIL &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 0 &nbsp; &nbsp; 0 &nbsp;cannot open&lt;br&gt;<br />
c1t0d0 &nbsp;ONLINE &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; 0 &nbsp; &nbsp; 0&lt;br&gt;</div></div>
<p>To remove the failed disk from the pool we ran the command -</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">zpool detach zpoolname c1t5d0</div></div>
<p>Now our pool showed as being online and all that was left to do was to set up the replaced drive to be a new spare.</p>
<p>First we have to configure it in Solaris. To check that the system is seeing the drive run -</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cfgadm</div></div>
<p>and there was our new, unconfigured drive -</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sata1/5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;disk &nbsp; &nbsp; &nbsp; &nbsp; connected &nbsp; &nbsp;unconfigured unknown</div></div>
<p>To configure the disk in Solaris run -</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cfgadm -cconfigure sata1/5::dsk/c1t5d0</div></div>
<p>and then just add it to the pool as a spare -</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">zpool add zpoolname spare c1t5d0</div></div>
<script src="http://feeds.feedburner.com/~s/daintree1@gmail.com?i=http://sysadminman.net/blog/2008/replacing-a-failed-zpool-zfs-drive-137" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://sysadminman.net/blog/2008/replacing-a-failed-zpool-zfs-drive-137/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove all ZFS snapshots</title>
		<link>http://sysadminman.net/blog/2008/remove-all-zfs-snapshots-50</link>
		<comments>http://sysadminman.net/blog/2008/remove-all-zfs-snapshots-50#comments</comments>
		<pubDate>Mon, 07 Jul 2008 16:08:39 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[snapshot]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://sysadminman.net/blog/?p=50</guid>
		<description><![CDATA[Here&#8217;s a small bash script to destroy all existing zfs snapshots. Run at your own risk!  #!/bin/bash for snapshot in `zfs list -H -t snapshot &#124; cut -f 1` do zfs destroy $snapshot done]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a small bash script to destroy all existing zfs snapshots.</p>
<p>Run at your own risk!  <img src='http://sysadminman.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/bash</span><br />
<span style="color: #000000; font-weight: bold;">for</span> snapshot <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>zfs list <span style="color: #660033;">-H</span> <span style="color: #660033;">-t</span> snapshot <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-f</span> <span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">`</span><br />
<span style="color: #000000; font-weight: bold;">do</span><br />
zfs destroy <span style="color: #007800;">$snapshot</span><br />
<span style="color: #000000; font-weight: bold;">done</span></div></div>
<script src="http://feeds.feedburner.com/~s/daintree1@gmail.com?i=http://sysadminman.net/blog/2008/remove-all-zfs-snapshots-50" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://sysadminman.net/blog/2008/remove-all-zfs-snapshots-50/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>ERROR: Could not open file (/a/etc/vfstab)</title>
		<link>http://sysadminman.net/blog/2008/error-could-not-open-file-aetcvfstab-42</link>
		<comments>http://sysadminman.net/blog/2008/error-could-not-open-file-aetcvfstab-42#comments</comments>
		<pubDate>Thu, 15 May 2008 17:37:35 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[solaris jumpstart grub]]></category>

		<guid isPermaLink="false">http://sysadminman.net/blog/archives/42</guid>
		<description><![CDATA[I was trying to install Solaris U5 on one of our Sun boxes using jumpstart today and came across the error &#8211; ERROR: Could not open file (/a/etc/vfstab) We were previously using Solaris U4 and I had copied the U5 media to our jumpstart server. What I had forgotten to do was to copy the [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to install Solaris U5 on one of our Sun boxes using jumpstart today and came across the error &#8211; </p>
<p>ERROR: Could not open file (/a/etc/vfstab)</p>
<p>We were previously using Solaris U4 and I had copied the U5 media to our jumpstart server. What I had forgotten to do was to copy the <strong>x86.miniroot </strong>file from the installation media to where it was being loaded from.</p>
<p>This resulted in the U5 installation trying to use the U4 ramdisk image. Doh!</p>
<p>So, if you see the same error, it&#8217;s something to check.</p>
<script src="http://feeds.feedburner.com/~s/daintree1@gmail.com?i=http://sysadminman.net/blog/2008/error-could-not-open-file-aetcvfstab-42" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://sysadminman.net/blog/2008/error-could-not-open-file-aetcvfstab-42/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
