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

<channel>
	<title>unixpowered.com</title>
	<atom:link href="http://www.unixpowered.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unixpowered.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 10 Feb 2010 14:54:38 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Failed Repository Integrity Check</title>
		<link>http://www.unixpowered.com/blog/2010/02/10/failed-repository-integrity-check/</link>
		<comments>http://www.unixpowered.com/blog/2010/02/10/failed-repository-integrity-check/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 14:54:38 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[smf]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[solaris tips]]></category>

		<guid isPermaLink="false">http://www.unixpowered.com/blog/?p=418</guid>
		<description><![CDATA[Last week I was presented with the following error on one of the Solaris 10 boxes:
svc.configd: smf(5) database integrity check of:
 /etc/svc/repository.db
 failed.  The database might be damaged or a media error might have
prevented it from being verified.  Additional information useful to
your service provider is in:
 /etc/svc/volatile/db_errors
 The system will not be able [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I was presented with the following error on one of the Solaris 10 boxes:</p>
<p><code>svc.configd: smf(5) database integrity check of:</code></p>
<p><code> /etc/svc/repository.db</code></p>
<p><code> failed.  The database might be damaged or a media error might have<br />
prevented it from being verified.  Additional information useful to<br />
your service provider is in:</code></p>
<p><code> /etc/svc/volatile/db_errors</code></p>
<p><code> The system will not be able to boot until you have restored a working<br />
database.  svc.startd(1M) will provide a sulogin(1M) prompt for recovery<br />
purposes.  The command:</code></p>
<p><code> /lib/svc/bin/restore_repository</code></p>
<p><code> can be run to restore a backup version of your repository.  See<br />
http://sun.com/msg/SMF-8000-MY for more information.</code></p>
<p>Having never seen this error, I was thinking: &#8220;this is gonna be interesting&#8230;&#8221;. Thankfully the error was pretty verbose so I started to disect it section by section. Yeah, service repository got hosed, somehow, and I can potentially find some usefull info in <em>/etc/svc/volatile/db_errors</em>. Unfortunatelly, there was nothing of use in there.</p>
<p>The <em>restore_repository</em> script mentioned gave me little more hope. I also went and checked out the page URL. After reading the page I decided to go ahead and try to restore the service repository.</p>
<p>I logged in to the box in single user mode and took a look at the restore script to get an idea of what it might do. Then, I ran it. Fortunatelly, the script was pretty good at doing checks and told me that I can not proceed any further because <em>/</em> filesystem is mounted <em>RO</em>. To fix this I was asked to run:</p>
<p><code>bash-3.00# <strong>/lib/svc/method/fs-root</strong><br />
bash-3.00# <strong>/lib/svc/method/fs-usr</strong></code></p>
<p>Once the filesystems were fixed up I ran the <em>restore_repository</em> script. I was asked which backup copy I wanted to restore and that was it. The system rebooted and came back up fine. This turned out to be a pretty good learning experience and <a title="Repository Integrity Check Failed" href="http://www.sun.com/msg/SMF-8000-MY" target="_self">http://www.sun.com/msg/SMF-8000-MY</a> is very well worth reading.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/blog/2010/02/10/failed-repository-integrity-check/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding out length of a UTP cable using Cisco IOS</title>
		<link>http://www.unixpowered.com/blog/2010/01/05/finding-out-length-of-a-utp-cable-using-cisco-ios/</link>
		<comments>http://www.unixpowered.com/blog/2010/01/05/finding-out-length-of-a-utp-cable-using-cisco-ios/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 12:21:03 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[cisco]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://wayciak.wordpress.com/?p=348</guid>
		<description><![CDATA[Well, this is just cool. Everyone has been there; sitting at a Cisco switch console wondering how long the unmarked UTP plugged into port 17 is&#8230; Thankfully Cisco IOS might be able to tell you:
core# test cable-diagnostics tdr interface gigabitethernet0/17
Unfortunately it&#8217;s not available on all switches. I dug this up on here Cisco site. And [...]]]></description>
			<content:encoded><![CDATA[<p>Well, this is just cool. Everyone has been there; sitting at a <a title="Cisco Homepage" href="http://www.cisco.com" target="_blank">Cisco</a> switch console wondering how long the unmarked <acronym title="Unshielded Twisted Pair">UTP</acronym> plugged into port 17 is&#8230; Thankfully Cisco <acronym title="Internetwork Operating System">IOS</acronym> might be able to tell you:</p>
<p><code>core# <strong>test cable-diagnostics tdr interface gigabitethernet0/17</strong></code></p>
<p>Unfortunately it&#8217;s not available on all switches. I dug this up on <a title="Cool Tool for Solving Layer 1 Cable Issues" href="http://https://supportforums.cisco.com/docs/DOC-5815" target="_blank">here</a> Cisco site. And <a title="Cisco IOS Configuration Fundamentals Command Reference" href="http://www.cisco.com/en/US/docs/ios/fundamentals/command/reference/cf_t1.html#wp1046637" target="_blank">here</a> is the command reference&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/blog/2010/01/05/finding-out-length-of-a-utp-cable-using-cisco-ios/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick and dirty SVM cheatsheet</title>
		<link>http://www.unixpowered.com/blog/2009/12/03/quick-and-dirty-svm-cheatsheet/</link>
		<comments>http://www.unixpowered.com/blog/2009/12/03/quick-and-dirty-svm-cheatsheet/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 12:50:43 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[solaris]]></category>
		<category><![CDATA[solaris utilities]]></category>
		<category><![CDATA[solaris volume manager]]></category>
		<category><![CDATA[storage]]></category>

		<guid isPermaLink="false">http://www.unixpowered.com/blog/?p=372</guid>
		<description><![CDATA[This list focuses mostly on mirror operations. I use Solaris Volume Manager quite a bit when mirroring internal drives. There are tons of additional features and commands, if you use SVM for  things other than mirroring. In that case you might want to look at check out Solaris Volume Manager Administration Guide.
Create database replicas:
metadb -f [...]]]></description>
			<content:encoded><![CDATA[<p>This list focuses mostly on mirror operations. I use Solaris Volume Manager quite a bit when mirroring internal drives. There are tons of additional features and commands, if you use SVM for  things other than mirroring. In that case you might want to look at check out <a title="Solaris Volume Manager Administration Guide" href="http://docs.sun.com/app/docs/doc/816-4520?l=en" target="_self">Solaris Volume Manager Administration Guide</a>.</p>
<p>Create database replicas:<br />
<code>metadb -f -a -c [number_of_replicas] [device]<br />
<strong>metadb -f -a -c 3 c0t0d0s7</strong></code></p>
<p>Delete all database replicas from device:<br />
<code>metadb -d [device]<br />
<strong>metadb -d c0t0d0s7</strong></code></p>
<p>Display status of database replicas:<br />
<code>metadb -i<br />
<strong>metadb -i</strong></code></p>
<p>Display metadevice status:<br />
<code>metastat<br />
<strong>metastat</strong></code></p>
<p>Create simple concat/stripe metadevice:<br />
<code>metainit -f [concat_metadevice] 1 1 [device]<br />
<strong>metainit -f d21 1 1 c0t0d0s1</strong></code></p>
<p>Create a mirror with one submirror:<br />
<code>metainit [mirror_metadevice] -m [submirror_metadevice]<br />
<strong>metainit d20 -m d21</strong></code></p>
<p>Attach a submirror to one sided mirror:<br />
<code>metattach [mirror_metadevice] [submirror_metadevice]<br />
<strong>metattach d20 d22</strong></code></p>
<p>Detach a submirror from a mirror:<br />
<code>metadetach [mirror_metadevice] [submirror_metadevice]<br />
<strong>metadetach d20 d22</strong></code></p>
<p>Clear a metadevice:<br />
<code>metaclear [metadevice]<br />
<strong>metaclear d22</strong></code></p>
<p>Offline a submirror:<br />
<code>metaoffline [mirror_metadevice] [submirror_metadevice]<br />
<strong>metaoffline d20 d22</strong></code></p>
<p>Online a submirror:<br />
<code>metaonline [mirror_metadevice] [submirror_metadevice]<br />
<strong>metaonline d20 d22</strong></code></p>
<p>Enable a failed component:<br />
<code>metareplace -e [metadevice] [device]<br />
<strong>metareplace -e d21 c0t0d0s1</strong></code></p>
<p>Rename a metadevice:<br />
<code>metarename [old_metadevice] [new_metadevice]<br />
<strong>metarename d20 d30</strong></code></p>
<p>Switch metadevice names:<br />
<code>metarename [metadevice_1] [metadevice_2]<br />
<strong>metarename -x d20 d30</strong></code></p>
<p>Configure system for root metadevice:<br />
<code>metaroot [metadevice]<br />
<strong>metaroot d10</strong></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/blog/2009/12/03/quick-and-dirty-svm-cheatsheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux multipathing</title>
		<link>http://www.unixpowered.com/blog/2009/11/27/linux-multipathing/</link>
		<comments>http://www.unixpowered.com/blog/2009/11/27/linux-multipathing/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 22:40:46 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[fibre channel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux tips]]></category>
		<category><![CDATA[multipathing]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[san]]></category>
		<category><![CDATA[storage]]></category>

		<guid isPermaLink="false">http://www.unixpowered.com/blog/?p=381</guid>
		<description><![CDATA[I use MPxIO in Solaris quite often and it works very well for me. This time I needed to test out I/O multipathing in RedHat. What I really needed to do: have a server with two HBA&#8217;s manage a mirror which has submirrors on separate SAN&#8217;s; so that the server has multiple paths to each [...]]]></description>
			<content:encoded><![CDATA[<p>I use MPxIO in Solaris quite often and it works very well for me. This time I needed to test out I/O multipathing in RedHat. What I really needed to do: have a server with two HBA&#8217;s manage a mirror which has submirrors on separate SAN&#8217;s; so that the server has multiple paths to each submirror. That way, if an HBA goes the server has still connection to both submirrors through the remaining HBA. </p>
<p>Gear used in this &#8220;experiment&#8221;:</p>
<ul>
<li>Dell Poweredge server.</li>
<li>Two Qlogic QLA2310 HBA&#8217;s.</li>
<li>RHEL Server 5.3 x86.</li>
<li>Two SAN&#8217;s presenting one LUN each.</li>
</ul>
<p>Rough steps I took to get this working:</p>
<ol>
<li>Make sure device mapper package is installed.</li>
<li>Present two LUN&#8217;s from two SAN&#8217;s.</li>
<li>Probe HBA&#8217;s for presented LUN&#8217;s.</li>
<li>Configure multipathing.</li>
</ol>
<p>First and foremost, make sure <em>qla2xxx</em> driver is loaded. You also have to make sure you have <em>device-mapper-multipath-0.4.7-23.el5</em> installed. Next, configure multipathing daemon so that it starts on boot:</p>
<p><code>[root@carbon ~]# <strong>chkconfig multipathd on</strong></code></p>
<p>When that&#8217;s done you need to make the system aware of the presented LUN&#8217;s. One way to do so is to reboot the server. Another option is to force HBA scan:</p>
<p><code>[root@carbon ~]# <strong>echo "- - -" &gt; /sys/class/scsi_host/host1/scan</strong></code></p>
<p>During this you should watch <em>/var/log/messages</em> to see if your LUN&#8217;s are detected. When done, make <em>multipathd</em> aware of the LUN&#8217;s:</p>
<p><code>[root@</code><code>carbon</code><code> ~]# <strong>multipath -v2 -d</strong></code></p>
<p>The above command is a &#8220;dry run&#8221;. There will be no device map changes committed. You will only be shown device mapper changes that will be made. To commit device map changes run:</p>
<p><code>[root@carbon ~]# <strong>multipath -v2</strong></code></p>
<p>Once this is done you can see what <em>multipathd</em> is seeing:</p>
<p><code>[root@carbon ~]# <strong>multipath -ll</strong><br />
mpath2 (3600508d311100a300000f00001a90000) dm-3 COMPAQ,HSV111 (C)COMPAQ<br />
[size=15G][features=1 queue_if_no_path][hwhandler=0][rw]<br />
\_ round-robin 0 [prio=100][enabled]<br />
&nbsp;\_ 1:0:3:1 sde 8:64  [active][ready]<br />
&nbsp;\_ 2:0:3:1 sdh 8:112 [active][ready]<br />
\_ round-robin 0 [prio=20][enabled]<br />
&nbsp;\_ 1:0:2:1 sdd 8:48  [active][ready]<br />
&nbsp;\_ 2:0:2:1 sdg 8:96  [active][ready]<br />
mpath1 (3600508c362d0a1250000900001490000) dm-2 COMPAQ,HSV111 (C)COMPAQ<br />
[size=15G][features=1 queue_if_no_path][hwhandler=0][rw]<br />
\_ round-robin 0 [prio=100][enabled]<br />
&nbsp;\_ 1:0:0:1 sdb 8:16  [active][ready]<br />
&nbsp;\_ 2:0:4:1 sdi 8:128 [active][ready]<br />
\_ round-robin 0 [prio=20][enabled]<br />
&nbsp;\_ 1:0:1:1 sdc 8:32  [active][ready]<br />
&nbsp;\_ 2:0:1:1 sdf 8:80  [active][ready]</code></p>
<p>If everything looks good, you can create configuration file for <em>multipathd</em>. You will need to edit <em>/etc/multipath.conf</em> and depending on your environment, add or modify some parameters. The configuration file contains enough comments and examples to figure out what different parameters mean. When in doubt, consult the man pages.</p>
<p>First, add a <em>blacklist</em> section, which will make certain device exempt from multipathing. I have my internal drives listed in blacklist section:</p>
<p><code>blacklist&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;devnode&nbsp;"^sd[a-b].*"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;devnode&nbsp;"^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;devnode&nbsp;"^hd[a-z]"<br />
}</code></p>
<p>Next, you are going to need <em>device</em> section. This is going to be specific to your SAN. The one below is for EVA5000. I got the parameters from HP&#8217;s device mapper package:</p>
<p><code>device&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vendor&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"HP|COMPAQ"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;product&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"HSV1[01]1&nbsp;\(C\)COMPAQ|HSV[2][01]0|HSV300"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;path_grouping_policy&nbsp;&nbsp;&nbsp;&nbsp;group_by_prio<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getuid_callout&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"/sbin/scsi_id&nbsp;-g&nbsp;-u&nbsp;-s&nbsp;/block/%n"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;path_checker&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tur<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;path_selector&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"round-robin&nbsp;0"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;prio_callout&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"/sbin/mpath_prio_alua&nbsp;/dev/%n"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rr_weight&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;uniform<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;failback&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;immediate<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hardware_handler&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"0"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;no_path_retry&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;12<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rr_min_io&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;100<br />
}</code></p>
<p>You should also look at <em>defaults</em> section to make sure it is configured for your setup. Again, the parameters in mine are specific to EVA5000:</p>
<p><code>defaults&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;udev_dir&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/dev<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;polling_interval&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;10<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;selector&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"round-robin&nbsp;0"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;path_grouping_policy&nbsp;&nbsp;&nbsp;&nbsp;failover<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getuid_callout&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"/sbin/scsi_id&nbsp;-g&nbsp;-u&nbsp;-s&nbsp;/block/%n"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;prio_callout&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"/bin/true"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;path_checker&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tur<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rr_min_io&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;100<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rr_weight&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;uniform<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;failback&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;immediate<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;no_path_retry&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;12<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;user_friendly_names&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;yes<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bindings_file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"/var/lib/multipath/bindings"<br />
}</code></p>
<p>Finally, you will need to specify configuration for the presented LUN&#8217;s. This applies to the <em>multipaths</em> section of <em>multipath.conf</em> file:</p>
<p><code>multipath&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;wwid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3600508b4001031250000900001490000<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alias&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;san1data<br />
}<br />
multipath&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;wwid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3600508b400011c300000f00001a90000<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alias&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;san2data<br />
}</code></p>
<p>After you are done, restart multipathd and check output of <em>multipath -ll</em> command:</p>
<p><code>[root@carbon ~]# <strong>multipath -ll</strong><br />
san2data (3600508d311100a300000f00001a90000) dm-3 COMPAQ,HSV111 (C)COMPAQ<br />
[size=15G][features=1 queue_if_no_path][hwhandler=0][rw]<br />
\_ round-robin 0 [prio=100][active]<br />
&nbsp;\_ 1:0:3:1 sde 8:64  [active][ready]<br />
&nbsp;\_ 2:0:3:1 sdh 8:112 [active][ready]<br />
\_ round-robin 0 [prio=20][enabled]<br />
&nbsp;\_ 1:0:2:1 sdd 8:48  [active][ready]<br />
&nbsp;\_ 2:0:2:1 sdg 8:96  [active][ready]<br />
san1data (3600508c362d0a1250000900001490000) dm-2 COMPAQ,HSV111 (C)COMPAQ<br />
[size=15G][features=1 queue_if_no_path][hwhandler=0][rw]<br />
\_ round-robin 0 [prio=50][enabled]<br />
&nbsp;\_ 1:0:0:1 sdb 8:16  [active][ready]<br />
&nbsp;\_ 2:0:4:1 sdi 8:128 [active][ready]<br />
\_ round-robin 0 [prio=20][enabled]<br />
&nbsp;\_ 1:0:1:1 sdc 8:32  [active][ready]<br />
&nbsp;\_ 2:0:1:1 sdf 8:80  [active][ready]</code></p>
<p>That should be it. You should test the setup by disabling paths to see if your LUN&#8217;s stay up.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/blog/2009/11/27/linux-multipathing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving Solaris Container to a different host</title>
		<link>http://www.unixpowered.com/blog/2009/11/05/moving-solaris-container-to-a-different-host/</link>
		<comments>http://www.unixpowered.com/blog/2009/11/05/moving-solaris-container-to-a-different-host/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 16:56:45 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[containers]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[solaris tips]]></category>
		<category><![CDATA[zones]]></category>

		<guid isPermaLink="false">http://wayciak.wordpress.com/?p=337</guid>
		<description><![CDATA[Cloning Solaris Container is pretty straight forward. But what if you want to have an identical container on another host? In a nutshell:

Make a clone of an existing container on host A
Detach the clone
Compress it and move it to host B
Create configuration for the moved container
Decompress the container on host B
Attach the decompressed container

I have [...]]]></description>
			<content:encoded><![CDATA[<p>Cloning Solaris Container is pretty straight forward. But what if you want to have an identical container on another host? In a nutshell:</p>
<ol>
<li>Make a <a title="Cloning Solaris Container" href="/index.php/archives/2009/08/10/cloning-solaris-container/" target="_blank">clone</a> of an existing container on host A</li>
<li>Detach the clone</li>
<li>Compress it and move it to host B</li>
<li>Create configuration for the moved container</li>
<li>Decompress the container on host B</li>
<li>Attach the decompressed container</li>
</ol>
<p>I have done this on Solaris 10 8/07. Before going any further, it is important that both host <em>A</em> and host <em>B</em> are running the same release of Solaris and they are both at the same patch level. Otherwise, you will almost certainly run into a situation where the container will refuse to attach to the new host.</p>
<p>I have created a cloned container called <em>mx2</em>. First, I have detached the container:</p>
<p><code>bash-3.00# <strong>zoneadm -z mx2 detach</strong></code></p>
<p>Then I compressed the container directory so I could move it to host <em>B</em>. It does not really matter which tool you use to compress the directory. Just make sure you preserve permissions, ownership or ACL&#8217;s . For me, for some reason <em>tar</em> had a little of an ordeal compressing the container directory:</p>
<p><code>bash-3.00# <strong>cd /export/home/zones</strong><br />
bash-3.00# <strong>tar cf mx2.tar mx2</strong><br />
tar: mx2/root/usr/jdk/instances/jdk1.5.0/jre/lib/sparc/cpu/sparcv9+vis/sparcv9/libclib_jiio.so: symbolic link too long<br />
tar: mx2/root/usr/jdk/instances/jdk1.5.0/jre/lib/sparc/cpu/sparcv9+vis2/sparcv9/libclib_jiio.so: symbolic link too long</code></p>
<p>Once I had the directory compressed I <em>scp</em>-ied it to host <em>B</em>. Then I decompressed it in the zones directory:</p>
<p><code><strong>bash-3.00# <strong>cd /export/home/zones</strong><br />
bash-3.00# <strong>tar xf mx2.tar</strong></strong></code></p>
<p>I have recreated the problematic symlinks mentioned above manually. If you are having trouble attaching the container check that container configurations are the same on both systems.</p>
<p>Before you can attach a container, you need to have container configuration in place. Without it you will not be able to attach the container.</p>
<p>Make sure your configuration is correct. I was attaching full root container and the system was complaining that the container being attached is missing some packages. In reality, my container configuration was for sparse root container. It turned out that when I was importing container configuration, some <em>inherit-package-dir</em> statements were added which has caused attach operation to fail. I had to remove those manually.</p>
<p>So, again, before attaching the container make sure your container configuration is good, you are inheriting correct package directories, etc. Once you have that right, you can attach the new container:</p>
<p><code>bash-3.00# <strong>zoneadm -z mx2 attach</strong></code></p>
<p>That&#8217;s it. Depending on your needs you might want to change hostname, ip address and so on.</p>
<p>Some interesting linkage:</p>
<p><a title="Solaris Containers replication" href="http://opensolaris.org/jive/thread.jspa?messageID=182046" target="_self">Solaris Containers replication</a><strong><strong><br />
</strong></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/blog/2009/11/05/moving-solaris-container-to-a-different-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mounting Linux NFS share: Not owner</title>
		<link>http://www.unixpowered.com/blog/2009/10/11/mounting-linux-nfs-share-not-owner/</link>
		<comments>http://www.unixpowered.com/blog/2009/10/11/mounting-linux-nfs-share-not-owner/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 12:03:22 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux tips]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[solaris tips]]></category>

		<guid isPermaLink="false">http://www.unixpowered.com/blog/?p=365</guid>
		<description><![CDATA[I was trying to mount a RHEL 4 NFS share in Solaris 10. But for whatever reason I just could not seem to get it mounted. It would always come back with &#8220;Not owner&#8221; error:
bash-3.00# mount -F nfs carbon:/media/cdrecorder /mnt/carbon
nfs mount: mount: /mnt/carbon: Not owner
So, I checked and rechecked my settings with no success. Then, [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to mount a <acronym title="Red Hat Enterprise Linux 4">RHEL 4</acronym> NFS share in Solaris 10. But for whatever reason I just could not seem to get it mounted. It would always come back with <em>&#8220;Not owner&#8221;</em> error:</p>
<p><code>bash-3.00# <strong>mount -F nfs carbon:/media/cdrecorder /mnt/carbon</strong><br />
nfs mount: mount: /mnt/carbon: Not owner</code></p>
<p>So, I checked and rechecked my settings with no success. Then, I remembered reading something somewhere about NFS v4 in Linux being not so great at one time. Since the Linux box was running RHEL 4 I tought  this might be my problem. So, I decided to force mount using NFS v3, since Solaris 10 will try to mount the Linux share using NFS v4 first.</p>
<p><code>bash-3.00# <strong>mount -F nfs -o vers=3 carbon:/media/cdrecorder /mnt/carbon</strong><br />
bash-3.00# <strong>cd /mnt/carbon</strong><br />
bash-3.00# </code></p>
<p>That worked well. Since this was one time mounting job, I did not bother any further. If I would be doing this on regular basis I would probably edit <em>/etc/default/nfs</em> on the Solaris box and force maximum NFS client version to be v3.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/blog/2009/10/11/mounting-linux-nfs-share-not-owner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Weird disk label after using ZFS on a LUN</title>
		<link>http://www.unixpowered.com/blog/2009/10/04/weird-disk-label-after-using-zfs-on-a-lun/</link>
		<comments>http://www.unixpowered.com/blog/2009/10/04/weird-disk-label-after-using-zfs-on-a-lun/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 15:42:49 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[solaris]]></category>
		<category><![CDATA[solaris tips]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://www.unixpowered.com/blog/?p=352</guid>
		<description><![CDATA[If you ever used ZFS on a LUN and then tried to reuse that LUN for UFS you might have noticed a &#8220;weird&#8221; disk label on it. This is known as EFI label.
Here is how it looks in format command:
partition&#62; p
Current partition table (original):
Total disk sectors available: 73383902 + 16384 (reserved sectors)
Part    [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever used ZFS on a LUN and then tried to reuse that LUN for UFS you might have noticed a &#8220;weird&#8221; disk label on it. This is known as EFI label.</p>
<p>Here is how it looks in <em>format</em> command:</p>
<p><code>partition&gt; <strong>p</strong><br />
Current partition table (original):<br />
Total disk sectors available: 73383902 + 16384 (reserved sectors)</code></p>
<p><code>Part      Tag    Flag     First Sector        Size        Last Sector<br />
0        usr    wm                34      34.99GB         73383902<br />
1 unassigned    wm                 0          0              0<br />
2 unassigned    wm                 0          0              0<br />
3 unassigned    wm                 0          0              0<br />
4 unassigned    wm                 0          0              0<br />
5 unassigned    wm                 0          0              0<br />
6 unassigned    wm                 0          0              0<br />
8   reserved    wm          73383903       8.00MB         73400286</code></p>
<p>If you use straight <em>format</em> command there is no way to get rid of EFI label. Instead, you have to use <em>-e</em> option with <em>format</em> to get to expert features:</p>
<p><code>bash-3.00# <strong>format -e</strong></code></p>
<p>With <em>-e</em> options when you label the LUN you will be asked about the type of label you want to put on the disk:</p>
<p><code>format&gt; <strong>label</strong><br />
[0] SMI Label<br />
[1] EFI Label<br />
Specify Label type[1]: <strong>0</strong><br />
Warning: This disk has an EFI label. Changing to SMI label will erase all<br />
current partitions.<br />
Continue? y<br />
Auto configuration via format.dat[no]? <strong>yes</strong></code></p>
<p>I suppose you could alternatively use <em>dd</em> command and blank out the whole disk.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/blog/2009/10/04/weird-disk-label-after-using-zfs-on-a-lun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Corrupt superblock, now what?</title>
		<link>http://www.unixpowered.com/blog/2009/09/17/corrupt-superblock-now-what/</link>
		<comments>http://www.unixpowered.com/blog/2009/09/17/corrupt-superblock-now-what/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 19:41:54 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[solaris]]></category>
		<category><![CDATA[solaris tips]]></category>
		<category><![CDATA[solaris utilities]]></category>

		<guid isPermaLink="false">http://wayciak.wordpress.com/?p=283</guid>
		<description><![CDATA[This is an oldie, but a goodie. For some reason I was asked about it 3 times in a span of a week. Suppose your system was not shut down cleanly and it refuses to come up. During bootup fsck refuses to run, complaining about corrupt superblock. So, what do you do? First, get the [...]]]></description>
			<content:encoded><![CDATA[<p>This is an oldie, but a goodie. For some reason I was asked about it 3 times in a span of a week. Suppose your system was not shut down cleanly and it refuses to come up. During bootup <em>fsck</em> refuses to run, complaining about corrupt superblock. So, what do you do? First, get the alternate superblock locations and then run fsck using one of the alternate superblocks.</p>
<p>To get alternate superblock locations do:</p>
<p><strong><code>newfs -Nv /dev/rdsk/c0t0d0s3</code></strong></p>
<p>This will not actually format the slice. It will only print what it would do, if it was actually formating the slice. Basically, it is <em>newfs</em> dry run. It will also give you locations of alternate superblocks on the slice. I guess it should be mentioned that if you used non-default values while formating the slice originally, and you did not make a note of those values, this might not give you valid superblock numbers.</p>
<p>After you have your alternate superblock numbers you can use them to help out fsck (in this case superblock I am using is in block 8192):</p>
<p><strong><code>fsck -y -F ufs -o b=8192 /dev/rdsk/c0t0d0s3</code></strong></p>
<p>It might not hurt to run the above with <em>-n</em> option instead of <em>-y</em> to make sure it produces the results you are looking for.</p>
<p>Hopefully, the filesystem is not hosed so badly that it can not be repaired. This was more of an issue when Solaris did not have ufs logging. Nevertheless, it does not hurt to know this for one of those emergencies.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/blog/2009/09/17/corrupt-superblock-now-what/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cloning Solaris Container</title>
		<link>http://www.unixpowered.com/blog/2009/08/10/cloning-solaris-container/</link>
		<comments>http://www.unixpowered.com/blog/2009/08/10/cloning-solaris-container/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 19:23:33 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[containers]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[solaris tips]]></category>
		<category><![CDATA[zones]]></category>

		<guid isPermaLink="false">http://wayciak.wordpress.com/?p=323</guid>
		<description><![CDATA[There are two way to create a new container: create one from scratch, which takes a little while or you can clone an existing container. Cloning is quite faster than the actual creation so it is handy to have a &#8220;gold&#8221; master container which is used for cloning. Another reason for having a &#8220;gold&#8221; master [...]]]></description>
			<content:encoded><![CDATA[<p>There are two way to create a new container: create one from scratch, which takes a little while or you can clone an existing container. Cloning is quite faster than the actual creation so it is handy to have a &#8220;gold&#8221; master container which is used for cloning. Another reason for having a &#8220;gold&#8221; master container is the fact that the container from which you are making a clone has to be halted during cloning. I did this on Solaris 10 8/07 release. Cloning consists of the following:</p>
<ol>
<li>Export configuration of an existing container or create a new configuration from scratch</li>
<li>Customize the exported configuration for the new container</li>
<li>Import the new container configuration</li>
<li>Clone the &#8220;gold&#8221; master container</li>
<li>Configure the new container</li>
</ol>
<p>First you need configuration for the new container. You can either make one from scratch or export one from existing container and customize it.<br />
The following command will export the configuration from  &#8220;gold&#8221; master container and save it into <em>/tmp/mx1.cfg</em> file:<br />
<code><br />
bash-3.00# <strong>zonecfg -z gold export -f /tmp/mx1.cfg</strong></code></p>
<p>Now you can edit the configuration. Word of caution, importing seems to be a little flaky. For example, if an existing container has <em>bootargs</em> variable set, you will need to put quotes around them in the config file. So, if my <em>bootargs</em> are set to <em>-m verbose</em>, the string will have to be enclosed in <em>&#8220;&#8221;</em>. Otherwise the new container configuration will not be imported properly.</p>
<p>Once you have the configuration ready you can import it:<br />
<code>bash-3.00# <strong>zonecfg -z mx1 -f /tmp/mx1.cfg</strong></code></p>
<p>Now you can perform actual clone operation:</p>
<p><code>bash-3.00# <strong>zoneadm -z mx1 clone -m copy gold</strong><br />
Cloning zonepath /export/home/zones/gold...</code></p>
<p>This should not take very long. Once the operation is done you can see that the new container has been installed:</p>
<p><code>bash-3.00# <strong>zoneadm list -cv</strong><br />
ID NAME             STATUS     PATH                           BRAND    IP<br />
0 global           running    /                              native   shared<br />
- mx1              installed   /export/home/zones/mx1         native   shared<br />
- gold             installed  /export/home/zones/gold        native   shared</code></p>
<p>At this point you can boot the new container. You will be taken through <a title="Performing the Initial Internal Zone Configuration" href="http://docs.sun.com/app/docs/doc/817-1592/z.login.task-31?a=view" target="_self">initial configuration</a> of the container. This initial container configuration can be pain if you are rolling out a lot of containers. You can simplify the process by creating a <a title="sysidcfg man page" href="http://docs.sun.com/app/docs/doc/816-5174/sysidcfg-4?a=view" target="_self"><em>sysidcfg</em></a> file and putting it into <em>/etc</em> directory of the container before performing the first boot.</p>
<p>In my case I would put the following <em>sysidcfg</em> into <em>/export/home/zones/mx1/root/etc</em>:</p>
<p><code>system_locale=C<br />
terminal=vt100<br />
network_interface=primary {<br />
hostname=mx1<br />
}<br />
security_policy=NONE<br />
name_service=DNS {<br />
domain_name=example.com<br />
name_server=192.168.1.1<br />
search=example.com<br />
}<br />
nfs4_domain=dynamic<br />
timezone=US/Central<br />
root_password=n2GSHfh</code></p>
<p>The nice thing about cloning is the fact that it&#8217;s fairly quick. So if you hose up a container, you can simply run</p>
<p><code>bash-3.00# <strong>zoneadm -z mx1 uninstall</strong><br />
Are you sure you want to uninstall zone mx1 (y/[n])? y</code></p>
<p>followed by</p>
<p><code>bash-3.00# <strong>zonecfg -z  mx1 delete</strong><br />
Are you sure you want to delete zone mx1 (y/[n])? y</code></p>
<p>and start all over again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/blog/2009/08/10/cloning-solaris-container/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to get HP JetDirect working inside Solaris Container</title>
		<link>http://www.unixpowered.com/blog/2009/07/07/how-to-get-hp-jetdirect-working-inside-solaris-container/</link>
		<comments>http://www.unixpowered.com/blog/2009/07/07/how-to-get-hp-jetdirect-working-inside-solaris-container/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 18:57:42 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[containers]]></category>
		<category><![CDATA[jetdirect]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[solaris tips]]></category>
		<category><![CDATA[zones]]></category>

		<guid isPermaLink="false">http://wayciak.wordpress.com/?p=304</guid>
		<description><![CDATA[I needed to build a print server and I had to use HP JetDirect. I also wanted to use the Containers technology for the job. Here are few things I found out in the process. This was done on Solaris 10 08/07 and JetDirect version E.10.34.
I did a little bit of searching, and all I [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to build a print server and I had to use HP JetDirect. I also wanted to use the <a title="Solaris Containers" href="http://www.sun.com/software/solaris/virtualization.jsp" target="_self">Containers</a> technology for the job. Here are few things I found out in the process. This was done on Solaris 10 08/07 and JetDirect version E.10.34.</p>
<p>I did a little bit of searching, and all I found were conflicting reports: it should work, it does not work, it works, but not really&#8230;</p>
<p>First of all the container that will host JetDirect has to be full-root, as JetDirect install will put some files into <em>/usr/spool</em>. I suppose it would be possible to work around it and use sparse-root, even though it might be a little messy.</p>
<p>The problem I ran into was while creating print queues using <em>hppi</em> tool. During the process <em>mknod</em> command is called to create printer device file in <em>/dev</em> directory of the container. You can not use mknod inside a container and creation of the device file will fail. Sure enough, greping for <em>mknod</em> in JetDirect&#8217;s <em>admin</em> directory yields the following:</p>
<p><code>bash-3.00$ <strong>grep mknod *</strong><br />
addptrtoq:         mknod $DFILE c 13 2</code></p>
<p>Closer look at <em>addptrtoq</em> reveals the following:</p>
<p><code>HPNPMODEL=$HPNP/sh/hpnp.model<br />
#DFILE=$HPNP/etc/$SPOOLNAME<br />
DFILE=/dev/$SPOOLNAME<br />
if [ ! -c $DFILE ]<br />
then<br />
mknod $DFILE c 13 2<br />
fi<br />
chmod 666 $DFILE</code></p>
<p>So to get around the problem, first you manually have to create the special file in the global zone inside <em>/dev</em> directory of the print server container. Then you can proceed with installing the printqueue using <em>hppi</em> tool.</p>
<p><code>bash-3.00# <strong>cd /export/home/zones/prtsvr/dev/</strong><br />
bash-3.00# <strong>mknod laser c 13 2</strong><br />
bash-3.00# <strong>chmod 666 laser</strong></code></p>
<p>Now you should be able to add a printer queue without any problems. So JetDirect works just fine inside Solaris 10 Container. For me anyways&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/blog/2009/07/07/how-to-get-hp-jetdirect-working-inside-solaris-container/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Code -->
