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

<channel>
	<title>Solutions Log &#187; Solaris</title>
	<atom:link href="http://solutions.unixsherpa.com/category/os/solaris/feed/" rel="self" type="application/rss+xml" />
	<link>http://solutions.unixsherpa.com</link>
	<description>by Dan Reiland</description>
	<lastBuildDate>Fri, 16 Apr 2010 20:28:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Replace Pipes with Tabs in a Delimited File</title>
		<link>http://solutions.unixsherpa.com/2009/12/04/replace-pipes-with-tabs-in-a-delimited-file/</link>
		<comments>http://solutions.unixsherpa.com/2009/12/04/replace-pipes-with-tabs-in-a-delimited-file/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 20:44:37 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Apple OSX]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Regular Expression]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[sysadmin]]></category>

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

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

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

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=205</guid>
		<description><![CDATA[Most UNIX environments include the pidof command which is put to use whenever one needs to quickly determine, by name, the pid of a running program. Apple's Mac OS X lacks the pidof command, however, one may approximate its function with the following shell script: #!/bin/sh ps axc&#124;awk &#34;{if (\$5==\&#34;$1\&#34;) print \$1}&#34;; Save the script [...]]]></description>
			<content:encoded><![CDATA[<p><em>Most</em> UNIX environments include the pidof command which is put to use whenever one needs to quickly determine, by name, the pid of a running program. Apple's Mac OS X lacks the pidof command, however, one may approximate its function with the following shell script:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/sh</span><br />
<span style="color: #c20cb9; font-weight: bold;">ps</span> axc<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">&quot;{if (<span style="color: #000099; font-weight: bold;">\$</span>5==<span style="color: #000099; font-weight: bold;">\&quot;</span>$1<span style="color: #000099; font-weight: bold;">\&quot;</span>) print <span style="color: #000099; font-weight: bold;">\$</span>1}&quot;</span>;</div></div>
<p>Save the script as /bin/pidof and be sure to set its executable bit:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">chmod</span> a+x <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">pidof</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/10/07/create-a-pidof-command-to-find-pid-numbers-easily/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Strip empty (null) lines from a file</title>
		<link>http://solutions.unixsherpa.com/2009/10/06/strip-empty-null-lines-from-a-file/</link>
		<comments>http://solutions.unixsherpa.com/2009/10/06/strip-empty-null-lines-from-a-file/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 18:12:06 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Apple OSX]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[text processing]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=203</guid>
		<description><![CDATA[sed meets the need; the recipe follows: sed '/^$/d' filename]]></description>
			<content:encoded><![CDATA[<p>sed meets the need; the recipe follows:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'/^$/d'</span> filename</div></div>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/10/06/strip-empty-null-lines-from-a-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a Large File For Testing</title>
		<link>http://solutions.unixsherpa.com/2009/08/13/create-a-large-file-for-testing/</link>
		<comments>http://solutions.unixsherpa.com/2009/08/13/create-a-large-file-for-testing/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 15:23:33 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Apple OSX]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=162</guid>
		<description><![CDATA[Issue: Often you need a set of variable sized files for testing a particular scenario. Generating test data is a painless endeavor. Resolution: The Unix dd command is perfectly suited to dispatch this need. dd if=/dev/zero of=~/testfile.txt bs=1m count=5 The above command will create a 5 megabyte file full of zeroes. Lovely. You may adjust [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Issue:</strong><br />
Often you need a set of variable sized files for testing a particular scenario. Generating test data is a painless endeavor.</p>
<p><strong>Resolution:</strong><br />
The Unix dd command is perfectly suited to dispatch this need.</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=~<span style="color: #000000; font-weight: bold;">/</span>testfile.txt <span style="color: #007800;">bs</span>=1m <span style="color: #007800;">count</span>=<span style="color: #000000;">5</span></div></div>
<p>The above command will create a 5 megabyte file full of zeroes. Lovely. You may adjust the count (or blocksize) to achieve the results you desire. This data also achieves stellar compression ratios based on its content.</p>
<p>One could also create a test file full of pseudo random data by pointing <em>if</em> to /dev/urandom.</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom <span style="color: #007800;">of</span>=~<span style="color: #000000; font-weight: bold;">/</span>testfile.txt <span style="color: #007800;">bs</span>=1m <span style="color: #007800;">count</span>=<span style="color: #000000;">5</span></div></div>
<p><a href="http://en.wikipedia.org/wiki//dev/random">Explanation of /dev/urandom</a></p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/08/13/create-a-large-file-for-testing/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Remote Mirroring Using nc and dd</title>
		<link>http://solutions.unixsherpa.com/2009/08/10/remote-mirroring-using-nc-and-dd/</link>
		<comments>http://solutions.unixsherpa.com/2009/08/10/remote-mirroring-using-nc-and-dd/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 16:58:06 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Apple OSX]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[netcat]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=160</guid>
		<description><![CDATA[You can use the dd and nc commands for exact disk mirroring from one server to another. The following commands send data from Server1 to Server2: 12Server2# nc -l 12345 &#124; dd of=/dev/sdb Server1# dd if=/dev/sda &#124; nc server2 12345 Make sure that you issue Server2's command first so that it's listening on port 12345 [...]]]></description>
			<content:encoded><![CDATA[<p>You can use the dd and nc commands for exact disk mirroring from one server to another. The following commands send data from Server1 to Server2:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Server2# nc -l 12345 | dd of=/dev/sdb<br />
Server1# dd if=/dev/sda | nc server2 12345</div></td></tr></tbody></table></div>
<p>Make sure that you issue Server2's command first so that it's listening on port 12345 when Server1 starts sending its data.</p>
<p>Unless you're sure that the disk is not being modified, it's better to boot Server1 from a RescueCD or LiveCD to do the copy. </p>
<p>Reference: <a href="http://www.linuxjournal.com/content/tech-tip-remote-mirroring-using-nc-and-dd">http://www.linuxjournal.com/content/tech-tip-remote-mirroring-using-nc-and-dd</a></p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/08/10/remote-mirroring-using-nc-and-dd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerDNS continually dies after creating a slave zone</title>
		<link>http://solutions.unixsherpa.com/2009/07/29/powerdns-continually-dies-after-creating-a-slave-zone/</link>
		<comments>http://solutions.unixsherpa.com/2009/07/29/powerdns-continually-dies-after-creating-a-slave-zone/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 17:19:20 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[powerdns]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=156</guid>
		<description><![CDATA[Issue: When PowerDNS is configured for a sqlite or sqlite3 backend and a slave zone is added, the PowerDNS daemon continually dies and respawns. This loop persists until the daemon is forcibly terminated. My logs showed the following: Jul 29 12:12:38 localhost pdns[14465]: PowerDNS 2.9.22 (C) 2001-2009 PowerDNS.COM BV (Jul 29 2009, 04:47:43, gcc 4.3.3) [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Issue:</strong><br />
When PowerDNS is configured for a sqlite or sqlite3 backend and a slave zone is added, the PowerDNS daemon continually dies and respawns. This loop persists until the daemon is forcibly terminated.</p>
<p>My logs showed the following:</p>
<pre>
Jul 29 12:12:38 localhost pdns[14465]: PowerDNS 2.9.22 (C) 2001-2009 PowerDNS.COM BV (Jul 29 2009, 04:47:43, gcc 4.3.3) starting up
Jul 29 12:12:38 localhost pdns[14465]: PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
Jul 29 12:12:38 localhost pdns[14465]: DNS Proxy launched, local port 22293, remote 192.168.8.1:53
Jul 29 12:12:38 localhost pdns[14465]: Launched webserver on 0.0.0.0:8081
Jul 29 12:12:38 localhost pdns[14465]: Master/slave communicator launching
Jul 29 12:12:38 localhost pdns[14465]: Creating backend connection for TCP
Jul 29 12:12:38 localhost pdns[14465]: gsqlite3: connection to '/var/lib/powerdns/pdns.db' succesful
Jul 29 12:12:38 localhost pdns[14465]: gsqlite3: connection to '/var/lib/powerdns/pdns.db' succesful
Jul 29 12:12:38 localhost pdns[14465]: About to create 3 backend threads for UDP
Jul 29 12:12:38 localhost pdns[14465]: gsqlite3: connection to '/var/lib/powerdns/pdns.db' succesful
Jul 29 12:12:38 localhost pdns[14465]: 1 slave domain needs checking
Jul 29 12:12:38 localhost pdns[14465]: Domain domain.local is stale, master serial 349, our serial 0
Jul 29 12:12:38 localhost pdns[14465]: Initiating transfer of 'domain.local' from remote '192.168.8.40'
Jul 29 12:12:38 localhost pdns[14465]: gsqlite3: connection to '/var/lib/powerdns/pdns.db' succesful
Jul 29 12:12:38 localhost pdns[14465]: AXFR started for 'domain.local', transaction started
Jul 29 12:12:38 localhost pdns[14465]: Communicator thread died because of error: Database failed to start transaction: Error while retrieving SQLite query results
</pre>
<p><strong>Cause:</strong><br />
The PowerDNS sqlite and sqlite3 backends do not support slave zones as of v.2.9.22</p>
<p><strong>Resolution:</strong><br />
Configure PowerDNS to use a different database backend: MySQL, PostgreSQL, Oracle, etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/07/29/powerdns-continually-dies-after-creating-a-slave-zone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rsync failed to set times on [filename]</title>
		<link>http://solutions.unixsherpa.com/2009/07/09/rsync-failed-to-set-times-on-filename/</link>
		<comments>http://solutions.unixsherpa.com/2009/07/09/rsync-failed-to-set-times-on-filename/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 02:34:52 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Apple OSX]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=71</guid>
		<description><![CDATA[This error occurs because the version of rsync on the system cannot preserve modified times for directories. Run rsync with the following arguments to suppress this warning: rsync -avrPO ./source/* ./destination Explanation of switches: 12345a -&#62; Archive mode (do not preserve hard links, ACLs, or extended attributes) v -&#62; Verbose (I like to know what [...]]]></description>
			<content:encoded><![CDATA[<p>This error occurs because the version of rsync on the system cannot preserve modified times for directories. </p>
<p>Run rsync with the following arguments to suppress this warning:</p>
<pre>
 rsync -avrPO ./source/* ./destination
</pre>
<p>Explanation of switches:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">a -&gt; Archive mode (do not preserve hard links, ACLs, or extended attributes)<br />
v -&gt; Verbose (I like to know what is happening)<br />
r -&gt; Copy directories recursively<br />
P -&gt; Equivalent to --partial --progress (for long transfers that may be interrupted)<br />
O -&gt; Omit directories from times</div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/07/09/rsync-failed-to-set-times-on-filename/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Enable opportunistic locking with Sun SMB service on Solaris Nevada</title>
		<link>http://solutions.unixsherpa.com/2009/07/08/enable-opportunistic-locking-with-sun-smb-service-on-solaris-nevada/</link>
		<comments>http://solutions.unixsherpa.com/2009/07/08/enable-opportunistic-locking-with-sun-smb-service-on-solaris-nevada/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 23:13:01 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[cifs]]></category>
		<category><![CDATA[nevada]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[snv]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=80</guid>
		<description><![CDATA[The primary reason for implementing this is performance. From Microsoft: Opportunistic locking (oplock) is a mechanism that allows a server to tell a client process that a requested file is only being used by that process. The client can safely do read-ahead and write-behind as well as local caching, knowing that the file will not [...]]]></description>
			<content:encoded><![CDATA[<p>The primary reason for implementing this is performance.</p>
<p>From Microsoft:</p>
<blockquote><p>
Opportunistic locking (oplock) is a mechanism that allows a server to tell a client process that a requested file is only being used by that process. The client can safely do read-ahead and write-behind as well as local caching, knowing that the file will not be accessed or changed in any way by another process while the opportunistic lock is in effect. The server notifies the client when a second process attempts to open or modify the locked file.<br />
Reference: <a href="http://msdn.microsoft.com/en-us/library/dd327670.aspx">http://msdn.microsoft.com/en-us/library/dd327670.aspx</a>
</p></blockquote>
<p>The snippet:</p>
<pre>
svccfg -s smb/server setprop smbd/oplock_enable=boolean: true
</pre>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/07/08/enable-opportunistic-locking-with-sun-smb-service-on-solaris-nevada/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
