<?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>Random Tech Articles &#187; Uncategorized</title>
	<atom:link href="http://www.analogrithems.com/rant/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.analogrithems.com/rant</link>
	<description>If I have seen a little further it is by standing on the shoulders of Giants. - Newton</description>
	<lastBuildDate>Tue, 10 Aug 2010 20:51:40 +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>Sings and Designs in Phoneix</title>
		<link>http://www.analogrithems.com/rant/2010/08/10/sings-and-designs-in-phoneix/</link>
		<comments>http://www.analogrithems.com/rant/2010/08/10/sings-and-designs-in-phoneix/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 20:51:40 +0000</pubDate>
		<dc:creator>analogrithems</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.analogrithems.com/rant/?p=169</guid>
		<description><![CDATA[I have a long history working with the Phoenix FastSigns as the largest FastSigns on the West Coast, they&#8217;ve given me an amazing test bed to develop and master several new technologies.  Security has always been a high priority to me and this Phoenix Sign company was the first place I deployed a transparent firewall [...]]]></description>
			<content:encoded><![CDATA[<p>I have a long history working with the <a href="http://www.fastsigns.com/60" target="_blank">Phoenix FastSigns</a> as the largest FastSigns on the West Coast, they&#8217;ve given me an amazing test bed to develop and master several new technologies.  Security has always been a high priority to me and this Phoenix Sign company was the first place I deployed a transparent firewall over ten years ago.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.analogrithems.com/rant/2010/08/10/sings-and-designs-in-phoneix/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.analogrithems.com/rant/2010/08/10/sings-and-designs-in-phoneix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The shuttle working on the hubble telescope</title>
		<link>http://www.analogrithems.com/rant/2009/12/23/the-shuttle-working-on-the-hubble-telescope/</link>
		<comments>http://www.analogrithems.com/rant/2009/12/23/the-shuttle-working-on-the-hubble-telescope/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 13:01:46 +0000</pubDate>
		<dc:creator>analogrithems</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.analogrithems.com/rant/?p=116</guid>
		<description><![CDATA[Here are a few small videos of the shuttle and the hubble from May of 2009 when the shuttle was doing repairs on the Hubble.   These are unclassified for public release. STS125_2009142_VIS_RL STS125_2009142_GEM 20580_200137_AO_RLBD 20580_2008137_AO_PCID STS125_2009142_SSTB_Resize 20580_2008137_AO_MFBD_RL STS125_2009142_SSTB 20580_2008137_RLBD_Knox Share on Facebook]]></description>
			<content:encoded><![CDATA[<p>Here are a few small videos of the shuttle and the hubble from May of 2009 when the shuttle was doing repairs on the Hubble.   These are unclassified for public release.</p>
<p><a href="http://www.analogrithems.com/rant/wp-content/uploads/2009/12/STS125_2009142_VIS_RL.mp4">STS125_2009142_VIS_RL</a></p>
<p><a href="http://www.analogrithems.com/rant/wp-content/uploads/2009/12/STS125_2009142_GEM.mp4">STS125_2009142_GEM</a><a href="http://www.analogrithems.com/rant/wp-content/uploads/2009/12/20580_200137_AO_RLBD.mp4"></a></p>
<p><a href="http://www.analogrithems.com/rant/wp-content/uploads/2009/12/20580_200137_AO_RLBD.mp4">20580_200137_AO_RLBD</a><a href="http://www.analogrithems.com/rant/wp-content/uploads/2009/12/20580_2008137_AO_PCID.mp4"></a></p>
<p><a href="http://www.analogrithems.com/rant/wp-content/uploads/2009/12/20580_2008137_AO_PCID.mp4">20580_2008137_AO_PCID</a><a href="http://www.analogrithems.com/rant/wp-content/uploads/2009/12/20580_2008137_AO_MFBD_RL.mp4"></a></p>
<p><a href="http://www.analogrithems.com/rant/wp-content/uploads/2009/12/20580_2008137_AO_MFBD_RL.mp4"></a><a href="http://www.analogrithems.com/rant/wp-content/uploads/2009/12/STS125_2009142_SSTB_Resize.mp4">STS125_2009142_SSTB_Resize</a></p>
<p><a href="http://www.analogrithems.com/rant/wp-content/uploads/2009/12/20580_2008137_AO_MFBD_RL.mp4">20580_2008137_AO_MFBD_RL</a></p>
<p><a href="http://www.analogrithems.com/rant/wp-content/uploads/2009/12/STS125_2009142_SSTB.mp4">STS125_2009142_SSTB</a></p>
<p><a href="http://www.analogrithems.com/rant/wp-content/uploads/2009/12/20580_2008137_RLBD_Knox.mp4">20580_2008137_RLBD_Knox</a></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.analogrithems.com/rant/2009/12/23/the-shuttle-working-on-the-hubble-telescope/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.analogrithems.com/rant/2009/12/23/the-shuttle-working-on-the-hubble-telescope/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.analogrithems.com/rant/wp-content/uploads/2009/12/STS125_2009142_VIS_RL.mp4" length="927812" type="video/mp4" />
<enclosure url="http://www.analogrithems.com/rant/wp-content/uploads/2009/12/STS125_2009142_GEM.mp4" length="127971" type="video/mp4" />
<enclosure url="http://www.analogrithems.com/rant/wp-content/uploads/2009/12/20580_200137_AO_RLBD.mp4" length="263583" type="video/mp4" />
<enclosure url="http://www.analogrithems.com/rant/wp-content/uploads/2009/12/20580_2008137_AO_PCID.mp4" length="120145" type="video/mp4" />
<enclosure url="http://www.analogrithems.com/rant/wp-content/uploads/2009/12/20580_2008137_AO_MFBD_RL.mp4" length="1700162" type="video/mp4" />
<enclosure url="http://www.analogrithems.com/rant/wp-content/uploads/2009/12/STS125_2009142_SSTB_Resize.mp4" length="91237" type="video/mp4" />
<enclosure url="http://www.analogrithems.com/rant/wp-content/uploads/2009/12/STS125_2009142_SSTB.mp4" length="194381" type="video/mp4" />
<enclosure url="http://www.analogrithems.com/rant/wp-content/uploads/2009/12/20580_2008137_RLBD_Knox.mp4" length="104036" type="video/mp4" />
		</item>
		<item>
		<title>ipsec over ipsec</title>
		<link>http://www.analogrithems.com/rant/2009/12/23/ipsec-over-ipsec/</link>
		<comments>http://www.analogrithems.com/rant/2009/12/23/ipsec-over-ipsec/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 11:41:34 +0000</pubDate>
		<dc:creator>analogrithems</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.analogrithems.com/rant/?p=99</guid>
		<description><![CDATA[So it turns out that you can&#8217;t pass one vpn using ipsec through another vpn using ipsec.  Why, well i&#8217;ve spent some time trying to figure this out the last few days and have discovered that they are taking each others packets apart. VPN that use ipsec for a site to site connection encapsulate packets [...]]]></description>
			<content:encoded><![CDATA[<p>So it turns out that you can&#8217;t pass one vpn using ipsec through another vpn using ipsec.  Why, well i&#8217;ve spent some time trying to figure this out the last few days and have discovered that they are taking each others packets apart.</p>
<p>VPN that use ipsec for a site to site connection encapsulate packets into udp packets.  These udp packets are then sent across the network to the other side where the receiving device unpacks the udp packet and then decrypts it.  Typically the carrier media that connects your two vpn devices is the internet.  But if your media connecting your two devices is a network that also uses a VPN you run into a major problem.  The carrier network will start to unpack your packets meant for the other side and start throwing icmp type 3 (Host Unreachable) errors back to the vpn device.</p>
<p>Now if you are using cisco routers for the carrier network fiber you can actually tell it that traffic from your vpn devices should be excluded from the vpn tunnel and instead be sent in clear.  This way those packets to the other side of the vpn and never get double encrypted, fragmented or any other bad ness.  A great article explaining crypto acls for Cisco routers is http://www.thebryantadvantage.com/CCNPCertificationBCRANExamVPNCryptoAccessLists.htm</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.analogrithems.com/rant/2009/12/23/ipsec-over-ipsec/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.analogrithems.com/rant/2009/12/23/ipsec-over-ipsec/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CAC cards and Mac OSX</title>
		<link>http://www.analogrithems.com/rant/2009/09/04/cac-cards-and-mac-osx/</link>
		<comments>http://www.analogrithems.com/rant/2009/09/04/cac-cards-and-mac-osx/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 00:50:54 +0000</pubDate>
		<dc:creator>analogrithems</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.analogrithems.com/rant/?p=97</guid>
		<description><![CDATA[I love using Mac, as a so called IT professional it&#8217;s the most professional improvement to come UNIX in over a decade.  I especially like to use it for work,  The problem isall of the systems they use at my company rely on CAC authentication.  More specificaly it&#8217;s all been geared towards Windows &#38; CAC.  [...]]]></description>
			<content:encoded><![CDATA[<p>I love using Mac, as a so called IT professional it&#8217;s the most professional improvement to come UNIX in over a decade.  I especially like to use it for work,  The problem isall of the systems they use at my company rely on CAC authentication.  More specificaly it&#8217;s all been geared towards Windows &amp; CAC.  Don&#8217;t get me wrong Common Access Cards are a great way to handle security.  They work off of industry standard concepts like X.509 Certificates and Public Key Encryption.  I don&#8217;t have a problem with that.  It&#8217;s the horseshit support I find for documentation on how to use cac with my Mac.</p>
<p>This is a list of links and tips I discovered to make it easier to do.  By default it shouldn&#8217;t be that card in OS X 10.5.6 or higher to get your CAC to work.  In factApple already has support for CAC readers built into the OS.  I have found though that often times you need to flash your CAC reader with the most current firmware version to make it work right.  The worst part about this is that you have to use a windows XP computer to do this.  I found the firmware for my cCAC reader and the flash tool at this site http://www.txsystems.com/cac.html  Once I installed it on a Windows XP machine and flashed it to the most current version I got my cac to start seeing it.</p>
<p>To test if your mac can see you CAC reader plug it into your computer and place you CAC in the reader. Then open terminal and type &#8216;sudo pcsctool&#8217;.  After you input your admin password if will tell you sucess or failure.  THis is the immeditae indicator of weather or not your computer can use your CAC reader.</p>
<p>Once you know your computer will see it you can start configuring certain programs to use it/.  So far I&#8217;ve gotten Safari and Firefox working with the CAC reader.  The best instructions you can find for getting Safari to use your CAC is from http://militarycac.com/apple.htm  I&#8217;ve included it here for archive puproses.</p>
<p>Step 1: Update your system.  (10.5.6 is the minimum required for Leopard, though 10.5.8 is currently available and recommended)</p>
<p>Step 2: Plug in your CAC Reader to the USB Port</p>
<p>Step 3: Click the Apple Icon in the upper left corner of your desktop and select &#8220;About This Mac&#8221;</p>
<p>Step 4: Click the &#8220;More Info&#8221; Button within the window that pops up. (This open System Profiler)</p>
<p>Step 5: Within the &#8220;Hardware&#8221; Category select the &#8220;USB&#8221; Section.  On the right hand side of the screen the window will display all hardware plugged into the USB ports on your Mac.  Within this should be a Smart Card Reader.  If the Smart Card reader is present here it is installed on your system, and no further hardware changes are required, i.e. additional drivers / Firmware upgrades.  Unplug the CAC Reader from your system.</p>
<p>Step 6: Open Keychains Access from the Utilities Folder within the Applications folder; Open the &#8220;Edit&#8221; Menu, and select &#8220;Keychain List&#8221;, click the &#8220;+&#8221; button in the lower left of the window opened, navigate to the location: System / Library / Keychains (Select the local hard drive i.e “Macintosh HD” on the left, followed by the System folder, within that the Library folder, and within that the Keychains folder), and select X509Anchors.  Check the Box to the left of the name under &#8220;Shared&#8221; as well as the System Box.  Click &#8220;Ok&#8221;.</p>
<p>Step 7: Plug in your CAC Reader and insert your CAC into the CAC Reader.  If in the upper left of the Keychain Access window, under &#8220;Keychains&#8221; your CAC should show up (CAC XXXX-XXXX-XXXX-XXXX-XXXX), select it. In the right hand side you will see the certificates that are on your CAC. (If your CAC does not appear remove it from the reader, unplug the CAC Reader, close and re-open keychains, plug in the Card Reader, and insert your CAC)</p>
<p>Step 8: Click the &#8220;Padlock&#8221; icon in the upper left corner of the program window, which will prompt you for your CAC PIN.  Enter your PIN to unlock your CAC.</p>
<p>Step 9: Select the desired certificate, which will show DOD CA-XX or DOD EMAIL CA-XX in the upper window.  Right Click (Control Click) and select &#8220;New Identity Preference&#8221;</p>
<p>Step 10: Enter the URL for the appropriate website you wish to access, select the appropriate certificate and click “Add”:</p>
<p>Step 11: Close Keychains, remove your CAC, and re-insert it.  Open Safari and begin navigating to your CAC enabled site.  (Air Force Users: remove your CAC card and re-insert it prior to opening Safari.)</p>
<p>If you want to use your CAC with firefox it&#8217;s a little more complicated.  This is because the plugin that used to be hosted on the mozilla addons page is nolonger active.  Now the project is hosted under the Department of Defensess forge.mil site.  This site requires a department of defense CAC to get in and download it.  It also has great documentation on how to setup firefox.  It&#8217;s all focused on the DOD Certs though.</p>
<p>If you are looking to get your mac to play nicely in a AD envronment then you should look at <a href="http://www.centrify.com/blogs/tomkemp/integrating_common_access_cards_with_apple_macintosh.asp" target="_blank">centrify</a>&#8216;s solution.  I have to be honest, I haven&#8217;t tried it but I have read a lot about it and it appears to be the perfect way to authenitcate to an active directory domain via CAC.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.analogrithems.com/rant/2009/09/04/cac-cards-and-mac-osx/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.analogrithems.com/rant/2009/09/04/cac-cards-and-mac-osx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Unix Drive Cloning</title>
		<link>http://www.analogrithems.com/rant/2009/06/15/66/</link>
		<comments>http://www.analogrithems.com/rant/2009/06/15/66/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 18:51:32 +0000</pubDate>
		<dc:creator>analogrithems</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.analogrithems.com/rant/?p=66</guid>
		<description><![CDATA[There are two schools of thought for how to clone drives under unix. The quick and dirty method is via the unix command dd. This is a bit for bit copy tool So it can even copy master boot records and partition tables. But it also copys empty space and kinda requires the drives be [...]]]></description>
			<content:encoded><![CDATA[<p>There are two schools of thought for how to clone drives under unix. The quick and dirty method is via the unix command dd. This is a bit for bit copy tool So it can even copy master boot records and partition tables. But it also copys empty space and kinda requires the drives be identical. Since it&#8217;s rare to actually have identical drives I&#8217;m going to show you how to use other system tools available under IRIX and Solaris to accomplish this task ask well as even make the new cloned drives better.</p>
<p><strong>We start with Solaris.</strong> Not much has changed in this OS over the years. Most of the following was stolen from http://timesync.gmu.edu/wordpress/?p=30 It was customized to account for increasing the partition sizes.</p>
<p>Note that in order to garuntee the best results use the</p>
<p>Say the original drive is c1t0d0 and the new drive is c1t4d0</p>
<p>Note that in order to guarantee the best results use the prtvtoc &#038; df commands to look at what the old partition table is. This Will let you know what partitions you need to create and the minimum sizes for each one. When formatting the partitions can be bigger but must be at least the same size.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">   prtvtoc <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>rdsk<span style="color: #000000; font-weight: bold;">/</span>c1t0d0s2 <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>OldPartitionTable
   <span style="color: #c20cb9; font-weight: bold;">df</span> <span style="color: #660033;">-k</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>OldPartitionTable</pre></div></div>

<p>Once you know the current partition sizes use the format command to setup your new drive.</p>
<p>Now, this script will build new file systems on the partitions of the new disk…matching those on the original. Then it will run ufsdump, copying data from the original to the new drive…then unmount the new “clone” drive. Finally it makes the new clone bootable. Note that this jazzy blog format wraps lines on the installboot line of the script…a “man installboot” will give you a clean copy of the syntax.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">   <span style="color: #666666; font-style: italic;">#! /bin/ksh</span>
   <span style="color: #666666; font-style: italic;"># script assumes:</span>
   <span style="color: #666666; font-style: italic;"># c1t0d0 is original</span>
   <span style="color: #666666; font-style: italic;"># c1t4d0 is drive we’ll turn into a clone</span>
&nbsp;
   <span style="color: #007800;">partlist</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span>prtvtoc <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>rdsk<span style="color: #000000; font-weight: bold;">/</span>c1t4d0s2 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> ‘<span style="color: #000000; font-weight: bold;">!/</span>\<span style="color: #000000; font-weight: bold;">*/</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>print $<span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>’<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
   <span style="color: #000000; font-weight: bold;">for</span> p <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$partlist</span>
   <span style="color: #000000; font-weight: bold;">do</span>
   <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$p</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #660033;">-a</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$p</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;2&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
   <span style="color: #000000; font-weight: bold;">then</span>
   newfs <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>rdsk<span style="color: #000000; font-weight: bold;">/</span>c1t4d0s<span style="color: #007800;">$p</span> <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
   <span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>dsk<span style="color: #000000; font-weight: bold;">/</span>c1t4d0s<span style="color: #007800;">$p</span> <span style="color: #000000; font-weight: bold;">/</span>mnt
   <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>mnt
   ufsdump 0uf - <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>dsk<span style="color: #000000; font-weight: bold;">/</span>c1t0d0s<span style="color: #007800;">$p</span> <span style="color: #000000; font-weight: bold;">|</span> ufsrestore rf -
   <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>
   <span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt
   <span style="color: #000000; font-weight: bold;">fi</span>
   <span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
   <span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>dsk<span style="color: #000000; font-weight: bold;">/</span>c1t4d0s0 <span style="color: #000000; font-weight: bold;">/</span>mnt
   installboot <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>platform<span style="color: #000000; font-weight: bold;">/`</span><span style="color: #c20cb9; font-weight: bold;">uname</span> -i<span style="color: #000000; font-weight: bold;">`/</span>lib<span style="color: #000000; font-weight: bold;">/</span>fs<span style="color: #000000; font-weight: bold;">/</span>ufs<span style="color: #000000; font-weight: bold;">/</span>bootblk \
   <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>rdsk<span style="color: #000000; font-weight: bold;">/</span>c1t4d0s0
   <span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt
&nbsp;
   <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></div></div>

<p><strong>How to CLONE AN IRIX SYSTEM DISK. </strong>I use IRIX-disk cloning as a backup strategy. It is a bit expensive perhaps because I have to keep 2 SCSI disks (cloned copies of my combined user/root disk) in the closet as backups. In the list below I assume you are running your IRIX system on (i.e. booted from) disk #1 and you want to clone it to spare disk #3. The first time (with an uninitialised disk) cloning takes about 10 steps. A second time (when the disk is already prepared), one may start at step 7 to make a backup-clone.</p>
<p> 1) BECOME SUPERUSER:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">   <span style="color: #c20cb9; font-weight: bold;">su</span></pre></div></div>

<p>2) FIRST THOROUGHLY TEST THE DRIVE THAT HAS TO BECOME THE CLONE:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">   fx <span style="color: #660033;">-x</span>
    fx: <span style="color: #ff0000;">&quot;device-name&quot;</span> = <span style="color: #7a0874; font-weight: bold;">&#40;</span>dksc<span style="color: #7a0874; font-weight: bold;">&#41;</span>                       <span style="color: #000000; font-weight: bold;">&lt;</span>enter<span style="color: #000000; font-weight: bold;">&gt;</span>
    fx: ctlr<span style="color: #666666; font-style: italic;"># = (0)                                  &lt;enter&gt;</span>
    fx: drive<span style="color: #666666; font-style: italic;"># = (1)                                 3</span>
    fx: lun<span style="color: #666666; font-style: italic;"># = (0)                                   &lt;enter&gt;</span>
     fx<span style="color: #000000; font-weight: bold;">&gt;</span>                                             exercise
     fx<span style="color: #000000; font-weight: bold;">/</span>exercise<span style="color: #000000; font-weight: bold;">&gt;</span>                                    butterfly
  	modifier = <span style="color: #7a0874; font-weight: bold;">&#40;</span>rd-only<span style="color: #7a0874; font-weight: bold;">&#41;</span>                           wr-cmp
  	starting block<span style="color: #666666; font-style: italic;"># = (0)                          &lt;enter&gt;</span>
  	nblocks = <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">143374744</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>                          <span style="color: #000000; font-weight: bold;">&lt;</span>enter<span style="color: #000000; font-weight: bold;">&gt;</span>
  	nscans = <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>                                   <span style="color: #000000; font-weight: bold;">&lt;</span>enter<span style="color: #000000; font-weight: bold;">&gt;</span>
  	about to destroy data on disk dksc<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">!</span> ok? <span style="color: #c20cb9; font-weight: bold;">yes</span>
     ..
    ..
    label info has changed <span style="color: #000000; font-weight: bold;">for</span> disk dksc<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>.
    <span style="color: #c20cb9; font-weight: bold;">write</span> out changes?                               <span style="color: #c20cb9; font-weight: bold;">yes</span>
   <span style="color: #7a0874; font-weight: bold;">exit</span></pre></div></div>

<p>3) ADD SGI LABEL:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">   fx <span style="color: #660033;">-x</span>
   fx: <span style="color: #ff0000;">&quot;device-name&quot;</span> = <span style="color: #7a0874; font-weight: bold;">&#40;</span>dksc<span style="color: #7a0874; font-weight: bold;">&#41;</span> 
    fx: ctlr<span style="color: #666666; font-style: italic;"># = (0) </span>
    fx: drive<span style="color: #666666; font-style: italic;"># = (1) 3</span>
    fx: lun<span style="color: #666666; font-style: italic;"># = (0)</span>
     auto
     about to destroy data on disk dksc<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">!</span> ok? <span style="color: #c20cb9; font-weight: bold;">yes</span>
     <span style="color: #7a0874; font-weight: bold;">&#40;</span>Several tests... may take a long long <span style="color: #000000; font-weight: bold;">time</span>, you can
      abort them.<span style="color: #7a0874; font-weight: bold;">&#41;</span>
   <span style="color: #7a0874; font-weight: bold;">exit</span></pre></div></div>

<p>It is perhaps easier to do this via the Disk Manager desktop-interface: just initialise the disk. This only takes a few seconds and also puts a SGI label on the disk. </p>
<p>4) MAKE ROOTDRIVE PARTITIONING: List the disk partitioning of the system (root) disk:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">   prtvtoc</pre></div></div>

<p>List the disk partitioning of the option disk that is to be the clone:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">   prtvtoc <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>rdsk<span style="color: #000000; font-weight: bold;">/</span>dks0d3vh</pre></div></div>

<p>Compare the disk partitioning of the two disks. They must have the same layout for the root and (if used) the usr partition. If they are not the same, repartition the option disk to match the system disk. In the easiest case:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">   fx <span style="color: #ff0000;">&quot;dksc(0,3)&quot;</span>
    repartition
    rootdrive
    <span style="color: #7a0874; font-weight: bold;">type</span> of data partition = <span style="color: #7a0874; font-weight: bold;">&#40;</span>xfs<span style="color: #7a0874; font-weight: bold;">&#41;</span>
    ..
    <span style="color: #7a0874; font-weight: bold;">exit</span></pre></div></div>

<p>Then compare the prtvtoc outputs again. 5) ADD STAND-ALONE SHELL (AND OTHER PROGRAMS) TO VOLUME HEADER: If necessary, first copy the appropriate sash (on your systemdisk, SCSI ID=1) to the /stand directory:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">   dvhtool <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>rdsk<span style="color: #000000; font-weight: bold;">/</span>dks0d1vh                          <span style="color: #7a0874; font-weight: bold;">&#40;</span>CAREFUL<span style="color: #000000; font-weight: bold;">!</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
   vd                                                  <span style="color: #7a0874; font-weight: bold;">&#40;</span>volume directory<span style="color: #7a0874; font-weight: bold;">&#41;</span>
   l                                                   <span style="color: #7a0874; font-weight: bold;">&#40;</span>list<span style="color: #7a0874; font-weight: bold;">&#41;</span>
   g <span style="color: #c20cb9; font-weight: bold;">sash</span> <span style="color: #000000; font-weight: bold;">/</span>stand<span style="color: #000000; font-weight: bold;">/</span>sash_Octane
   g ide <span style="color: #000000; font-weight: bold;">/</span>stand<span style="color: #000000; font-weight: bold;">/</span>ide_Octane
   g IP30prom <span style="color: #000000; font-weight: bold;">/</span>stand<span style="color: #000000; font-weight: bold;">/</span>IP30prom_Octane
   quit</pre></div></div>

<p>Then add the required programs to a volume header:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">   dvhtool <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>rdsk<span style="color: #000000; font-weight: bold;">/</span>dks0d3vh                      <span style="color: #7a0874; font-weight: bold;">&#40;</span>SCSI <span style="color: #007800;">ID</span>=<span style="color: #000000;">3</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
   vd                                              <span style="color: #7a0874; font-weight: bold;">&#40;</span>volume directory<span style="color: #7a0874; font-weight: bold;">&#41;</span>
   l                                               <span style="color: #7a0874; font-weight: bold;">&#40;</span>list<span style="color: #7a0874; font-weight: bold;">&#41;</span>
   a <span style="color: #000000; font-weight: bold;">/</span>stand<span style="color: #000000; font-weight: bold;">/</span>sash_Octane <span style="color: #c20cb9; font-weight: bold;">sash</span>                       <span style="color: #7a0874; font-weight: bold;">&#40;</span>add to volume header<span style="color: #7a0874; font-weight: bold;">&#41;</span>
   a <span style="color: #000000; font-weight: bold;">/</span>stand<span style="color: #000000; font-weight: bold;">/</span>ide_Octane ide
   a <span style="color: #000000; font-weight: bold;">/</span>stand<span style="color: #000000; font-weight: bold;">/</span>IP30prom_Octane IP30prom
   l
   quit
   <span style="color: #c20cb9; font-weight: bold;">write</span>
   quit</pre></div></div>

<p>6) MAKE FILESYSTEM: To make an XFS root filesystem with a 4 KB block size and a 1000 block internal log (the default values), give this command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">   mkfs <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>dsk<span style="color: #000000; font-weight: bold;">/</span>dks0d3s0</pre></div></div>

<p>7) SWITCH TO SINGLE USER MODE AND MOUNT:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">   single
&nbsp;
   <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>clone
   <span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>dsk<span style="color: #000000; font-weight: bold;">/</span>dks0d3s0 <span style="color: #000000; font-weight: bold;">/</span>clone
   <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>clone</pre></div></div>

<p> <img src='http://www.analogrithems.com/rant/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> XFSDUMP:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">   xfsdump <span style="color: #660033;">-l</span> <span style="color: #000000;">0</span> - <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">|</span> xfsrestore - .</pre></div></div>

<p>Notice the 0, it is a NULL character, not an O! </p>
<p>9) UNMOUNT AND SHUTDOWN:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">   <span style="color: #7a0874; font-weight: bold;">cd</span> ..
   <span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>clone 
   <span style="color: #c20cb9; font-weight: bold;">rmdir</span> <span style="color: #000000; font-weight: bold;">/</span>clone 
   shutdown</pre></div></div>

<p>10) TEST Swap drives (in an Octane) and try if your clone is really bootable. </p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.analogrithems.com/rant/2009/06/15/66/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.analogrithems.com/rant/2009/06/15/66/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why nscd sucks&#8230;.</title>
		<link>http://www.analogrithems.com/rant/2008/09/16/why-nscd-sucks/</link>
		<comments>http://www.analogrithems.com/rant/2008/09/16/why-nscd-sucks/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 01:27:53 +0000</pubDate>
		<dc:creator>analogrithems</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nscd]]></category>

		<guid isPermaLink="false">http://www.analogrithems.com/rant/?p=5</guid>
		<description><![CDATA[The name service cache daemon has some serious flaws. One that I notice pretty often in Linux arises when you are using LDAP. It seems that nscd will crash and burn when/if ldap is unavailable. Unfortunately when nscd bombs, it usually takes the entire system with it. Actually what will happen is nscd sockets will [...]]]></description>
			<content:encoded><![CDATA[<p>The name service cache daemon has some serious flaws.  One that I notice pretty often in Linux arises when you are using LDAP.  It seems that nscd will crash and burn when/if ldap is unavailable.  Unfortunately when nscd bombs, it usually takes the entire system with it.  Actually what will happen is nscd sockets will start getting broken pipe&#8217;s and becoming stale until you have several nscd.  Eventually your system will slow to a halt.  Mind you the box hasn&#8217;t crashed, but the box is in a dos state.  If you do an &#8216;<em>$# netstat -an</em>&#8216; you&#8217;ll notice several entries in reference to &#8216;/var/run/nscd/socket&#8217;.  This bug has been listed by several distros, I&#8217;ve yet to see any of them address it properly.</p>
<p>From what I&#8217;ve discovered about nscd this issue is a design flaw in nscd.  Several people have just recommended disabling nscd.  While this is a solution, it isn&#8217;t an acceptable solution in an enterprise environment. Especially if you are using oracle.  Several oracle tools and apps will freeze or crash if they can&#8217;t talk to the nscd socket.  Lame I know, but I&#8217;ve observed this in at least Oracle 10i.</p>
<p><strong>Solutions</strong></p>
<p>Now there are tow ways to get around this.  One is to make your LDAP service load balanced and highly available.  You can do replication in OpenLDAP with slurpd and then use something like balance to make the service highly available.  Another option though is to fix nscd so it doesn&#8217;t bomb your machine when it dies.</p>
<p>In this article we are going to go over the fix nscd solution.  nscd comes with a config file located in &#8216;<em>/etc/nscd.conf&#8217;</em> This file tells the nscd daemon how long to cache which name service.  See the man page to understand what each option means. The quick way to fix nscd is to tell the service here not to cache passwd and group info.  This will make nscd not go to LDAP and freak out if LDAP is not available.  Randomly I also came across a drop in replacement for nscd that dosen&#8217;t suffer from this issue. <a href="http://www.analogrithems.com/rant/wp-content/uploads/2008/09/nscd-033.c">unscd-033.c</a> The compile instructions are in the file. I can&#8217;t guarantee this safe, but I&#8217;ve used it for a while in an enterprise environment and seem haven&#8217;t had any nscd issues since<a href="http://www.analogrithems.com/rant/wp-content/uploads/2008/09/nscd-033.c"><br />
</a></p>
<p><strong>Refferences:</strong></p>
<ul>
<li>http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=248271</li>
</ul>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.analogrithems.com/rant/2008/09/16/why-nscd-sucks/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.analogrithems.com/rant/2008/09/16/why-nscd-sucks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ldap with linux a basic primmer</title>
		<link>http://www.analogrithems.com/rant/2008/09/16/ldap-with-linux-a-basic-primmer/</link>
		<comments>http://www.analogrithems.com/rant/2008/09/16/ldap-with-linux-a-basic-primmer/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 22:59:37 +0000</pubDate>
		<dc:creator>analogrithems</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[centralized authentication]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pam]]></category>

		<guid isPermaLink="false">http://www.analogrithems.com/rant/?p=3</guid>
		<description><![CDATA[LDAP has been around for over a decade, and yet it is still considered a newer technology.  Many modern vendors have added LDAP authentication.  This document is a brief generic howto for configuring linux to use LDAP.  This will be a fairly detailed recipe as most of my docs are. Linux Name Services Name Server [...]]]></description>
			<content:encoded><![CDATA[<p>LDAP has been around for over a decade, and yet it is still considered a newer technology.  Many modern vendors have added LDAP authentication.  This document is a brief generic howto for configuring linux to use LDAP.  This will be a fairly detailed recipe as most of my docs are.</p>
<p><strong>Linux Name Services</strong><br />
Name Server Switch is the engine that really enables Linux to harness LDAP. In linux you have two different ldap.conf files that the modules and services use to configure their ldap communications &#8216;/etc/ldap.conf&#8217; and &#8216;/etc/openldap/ldap.com&#8217;. The first gives the dn&#8217;s for passwd, group and sudoers. You can also specify the server and communication protocol. One really cool bonus is that you get to enable the host_acl based of users with this config file</p>
<p>host    ldap.analogrithems.com<br />
base    dc=analogrithems,dc=com,dc=us<br />
ldap_version    3<br />
#Validate cert<br />
tls_checkpeer no<br />
ssl     start_tls<br />
#ssl on<br />
nss_map_attribute       uniqueMember member<br />
pam_password_prohibit_message Please visit http://enterprise.company.com/password_policy.html.<br />
pam_groupdn cn=ldap.analogrithems.com,ou=Computers,dc=analogrithems,dc=com,dc=us<br />
pam_member_attribute uniquemember<br />
pam_filter accountStatus=active<br />
nss_base_passwd         ou=People,dc=analogrithems,dc=com,dc=us?one<br />
nss_base_shadow         ou=People,dc=analogrithems,dc=com,dc=us?one<br />
nss_base_group          ou=Groups,dc=analogrithems,dc=com,dc=us?one<br />
sudoers_base    ou=SUDOers,dc=analogrithems,dc=com,dc=us<br />
#This options is VERY helpful for debugging sudo ldap extension<br />
#sudoers_debug 2</p>
<p><strong>PAM</strong><br />
PAM is an authentication and accounting module that allows Linux services to use different methods for authenticating users (MySQL, LDAP, NIS, etc..). Their are two different pam config versions. You should look up the version your gnu/linux vedor uses for exact details on ldap setup, for SuSE you modify &#8220;/etc/security/pam_unix2.conf&#8221; to include the following. This system makes it so you don&#8217;t have to modify every pam service to use ldap, you just let them all use the standard unix2 module which then handles the ldap lookup.</p>
<p>auth:   use_ldap<br />
account:        use_ldap<br />
password:       use_ldap<br />
session:        none</p>
<p><strong>NSS</strong><br />
Edit your &#8216;/etc/nsswitch.conf&#8217; place the word ldap before files for the passwd and group name service. You can also add it to sudoers if you want to store your sudo configs in ldap also</p>
<p>passwd: compat<br />
shadow: compat<br />
group: compat<br />
sudoers: files ldap</p>
<p>passwd_compat: files ldap<br />
shadow_compat: files ldap<br />
group_compat: files ldap</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.analogrithems.com/rant/2008/09/16/ldap-with-linux-a-basic-primmer/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.analogrithems.com/rant/2008/09/16/ldap-with-linux-a-basic-primmer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
