<?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>The System Mangler</title>
	<atom:link href="http://systemmangler.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://systemmangler.com</link>
	<description>Mashing a keyboard for too many years...</description>
	<lastBuildDate>Thu, 16 Feb 2012 21:01:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Wasn’t expecting an update this soon.</title>
		<link>http://systemmangler.com/2012/wasnt-expecting-an-update-this-soon/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wasnt-expecting-an-update-this-soon</link>
		<comments>http://systemmangler.com/2012/wasnt-expecting-an-update-this-soon/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 21:01:01 +0000</pubDate>
		<dc:creator>systemmangler</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mountain Lion]]></category>
		<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://systemmangler.com/?p=220</guid>
		<description><![CDATA[Apple — OS X Mountain Lion. Even more innovation comes to the Mac.. Fixing the inconsistencies between iOS and OSX is a good idea. Look forward to trying it out. That said, I haven’t found Lion to be as stable as Snow Leopard so far.]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignnone" style="width: 650px"><a href="http://www.apple.com/macosx/mountain-lion/"><img title="Mac OSX Mountain Lion" src="http://systemmangler.com/wp-content/uploads/overview_mountainlion.png" alt="Mac OSX Mountain Lion" width="640" /></a><p class="wp-caption-text">Mac OSX Mountain Lion</p></div>
<p><a href="http://www.apple.com/macosx/mountain-lion/">Apple — OS X Mountain Lion. Even more innovation comes to the Mac.</a>.</p>
<p>Fixing the inconsistencies between iOS and OSX is a good idea. Look forward to trying it out.</p>
<p>That said, I haven’t found Lion to be as stable as Snow Leopard so far.</p>
]]></content:encoded>
			<wfw:commentRss>http://systemmangler.com/2012/wasnt-expecting-an-update-this-soon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>From the “Have absolutely no use for this, but would absolutely love it” list: RAF Fighter Pilots Helmet+ Headphones and electrics.</title>
		<link>http://systemmangler.com/2012/from-the-have-absolutely-no-use-for-this-but-would-absolutely-love-it-list-raf-fighter-pilots-helmet-headphones-and-electrics/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=from-the-have-absolutely-no-use-for-this-but-would-absolutely-love-it-list-raf-fighter-pilots-helmet-headphones-and-electrics</link>
		<comments>http://systemmangler.com/2012/from-the-have-absolutely-no-use-for-this-but-would-absolutely-love-it-list-raf-fighter-pilots-helmet-headphones-and-electrics/#comments</comments>
		<pubDate>Wed, 15 Feb 2012 11:22:15 +0000</pubDate>
		<dc:creator>systemmangler</dc:creator>
				<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://systemmangler.com/?p=204</guid>
		<description><![CDATA[RAF Fighter Pilots Helmet+ Headphones and electrics. &#124; eBay Always wanted a fighter pilots helmet, ever since watching Top Gun as a young fella!]]></description>
			<content:encoded><![CDATA[<div id="attachment_214" class="wp-caption aligncenter" style="width: 385px"><a href="http://systemmangler.com/2012/from-the-have-absolutely-no-use-for-this-but-would-absolutely-love-it-list-raf-fighter-pilots-helmet-headphones-and-electrics/kgrhqzhjcoe8fzn66ibplu7bc9g60_12-3/" rel="attachment wp-att-214"><img class="size-full wp-image-214" title="RAF Fighter Pilot's Helmet" src="http://systemmangler.com/wp-content/uploads/KGrHqZHJCoE8fZN66iBPLu7bC9g60_122.jpg" alt="RAF Fighter Pilot's Helmet" width="375" height="500" /></a><p class="wp-caption-text">RAF Fighter Pilot’s Helmet</p></div>
<p><a href="http://www.ebay.com.au/itm/RAF-Fighter-Pilots-Helmet-Headphones-and-electrics-/110820848362?pt=UK_Collectables_Militaria_LE&amp;hash=item19cd6ff2ea#ht_500wt_1413">RAF Fighter Pilots Helmet+ Headphones and electrics. | eBay</a></p>
<p>Always wanted a fighter pilots helmet, ever since watching Top Gun as a young fella!</p>
]]></content:encoded>
			<wfw:commentRss>http://systemmangler.com/2012/from-the-have-absolutely-no-use-for-this-but-would-absolutely-love-it-list-raf-fighter-pilots-helmet-headphones-and-electrics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Just discovered TurnKey Linux. I know I could do all the config myself, but this is fantastic!</title>
		<link>http://systemmangler.com/2012/just-discovered-turnkey-linux-i-know-i-could-do-all-the-config-myself-but-this-is-fantastic/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=just-discovered-turnkey-linux-i-know-i-could-do-all-the-config-myself-but-this-is-fantastic</link>
		<comments>http://systemmangler.com/2012/just-discovered-turnkey-linux-i-know-i-could-do-all-the-config-myself-but-this-is-fantastic/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 21:55:45 +0000</pubDate>
		<dc:creator>systemmangler</dc:creator>
				<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://systemmangler.com/?p=198</guid>
		<description><![CDATA[TurnKey Linux Virtual Appliance Library: 45+ free ready-to-use applications for virtual machines, the cloud, and bare metal..]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.turnkeylinux.org/">TurnKey Linux Virtual Appliance Library: 45+ free ready-to-use applications for virtual machines, the cloud, and bare metal.</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://systemmangler.com/2012/just-discovered-turnkey-linux-i-know-i-could-do-all-the-config-myself-but-this-is-fantastic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OS or root disk mirroring in Solaris 8</title>
		<link>http://systemmangler.com/2012/os-or-root-disk-mirroring-in-solaris-8/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=os-or-root-disk-mirroring-in-solaris-8</link>
		<comments>http://systemmangler.com/2012/os-or-root-disk-mirroring-in-solaris-8/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 04:30:23 +0000</pubDate>
		<dc:creator>systemmangler</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[Disksuite]]></category>
		<category><![CDATA[Mirror]]></category>
		<category><![CDATA[SDS]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Solstice]]></category>

		<guid isPermaLink="false">http://systemmangler.com/?p=161</guid>
		<description><![CDATA[Yes, a blast from the past, but as I have to do this, and patch upgrades, for a client soon, I felt like refreshing my memory. In the following example, I will be truncating output to refer only to the disks that I am interested in. First, what are we working with: So we are [...]]]></description>
			<content:encoded><![CDATA[<p>Yes, a blast from the past, but as I have to do this, and patch upgrades, for a client soon, I felt like refreshing my memory. In the following example, I will be truncating output to refer only to the disks that I am interested in.</p>
<h4>First, what are we working with:</h4>
<p>So we are working with a Solaris 8 system, a <a title="SunFire on Wikipedia" href="http://en.wikipedia.org/wiki/Sun_Fire" target="_blank">Sun-Fire V440</a>, end of life was 2007!</p>
<pre class="brush: shell; gutter: true; first-line: 1"># uname -a
SunOS syd71 5.8 Generic_108528-27 sun4u sparc SUNW,Sun-Fire-V440</pre>
<h4>Any mirroring in place?</h4>
<p>Use the unix df command to list mounted filesystems; if the filesystem path contains either “md” or “vx” then some form of volume management is in use. In this case, there doesn’t appear to be any.</p>
<pre class="brush: shell; gutter: true; first-line: 1; highlight: [3]">syd71# df -k
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/dsk/c1t0d0s0 4034088 1695730 2298018 43% /
/proc                      0       0       0     0%    /proc
fd                         0       0       0     0%    /dev/fd
mnttab                     0       0       0     0%    /etc/mnttabc
/dev/dsk/c1t0d0s3    3008649 1498560 1449917    51%    /var
swap                 9056952      24 9056928     1%    /var/run
swap                 9057000      72 9056928     1%    /tmp
/dev/dsk/c6t600C0FF0000000000048CB0F02547800d0s0
                     70310728 53873312 15031204    79%    /data2
/dev/dsk/c6t600C0FF0000000000048CB4F7554FE00d0s0
                     70310728 2584548 66319968     4%    /data1</pre>
<p>Best also check the swap file configuration:</p>
<pre class="brush: shell; gutter: true; first-line: 1; highlight: [3]">syd71# swap -l
swapfile dev swaplo blocks free
/dev/dsk/c1t0d0s1 32,9 16 12289776 12289776</pre>
<p>As you can see from the highlighted line above, the swap partition is only on the root disk, slice 1.</p>
<h4>Is Solstice Disksuite installed?</h4>
<p>We are going to use Solaris Volume Manager (SVM; formerly known as Online: DiskSuite, and later Solstice DiskSuite). This is a software package for creating, modifying and controlling RAID-0 (concatenation and stripe) volumes, RAID-1 (mirror) volumes, RAID 0+1 volumes, RAID 1+0 volumes, RAID-5 volumes, and soft partitions. It has been superseded by ZFS in Solaris 10 onwards, and many users employ Veritas Volume Manager (VxVM) as an alternative. It’s free, and was always a good option for root disk mirroring. From this point onwards I will refer to it as SVM as everything else is just too long to type!</p>
<pre class="brush: shell; gutter: true; first-line: 1; highlight: [5,6,7,8,9,10,11,12,13]">syd71# pkginfo -i | grep SUNWmd
system      SUNWmdb        Modular Debugger
system      SUNWmdbdm      Modular Debugger Demo Source
system      SUNWmdbx       Modular Debugger (64-bit)
system      SUNWmdg        Solstice DiskSuite Tool
system      SUNWmdi        Sun Multipath I/O Drivers
system      SUNWmdiu       Sun Multipath I/O Drivers (usr)
system      SUNWmdix       Sun Multipath I/O Drivers (64-bit)
system      SUNWmdnr       Solstice DiskSuite Log Daemon Configuration Files
system      SUNWmdnu       Solstice DiskSuite Log Daemon
system      SUNWmdr        Solstice DiskSuite Drivers
system      SUNWmdu        Solstice DiskSuite Commands
system      SUNWmdx        Solstice DiskSuite Drivers(64-bit)</pre>
<p>What version of SVM is it?</p>
<pre class="brush: shell; gutter: true; first-line: 1; highlight: [8]">syd71# pkginfo SUNWmdr
system      SUNWmdr        Solstice DiskSuite Drivers
syd71# pkginfo -l SUNWmdr
   PKGINST:  SUNWmdr
      NAME:  Solstice DiskSuite Drivers
  CATEGORY:  system
      ARCH:  sparc
   VERSION:  4.2.1,REV=1999.12.03.10.00
   BASEDIR:  /
    VENDOR:  Sun Microsystems, Inc.
      DESC:  Solstice DiskSuite Drivers
    PSTAMP:  12/03/99-10:06:11
  INSTDATE:  Jun 27 2005 16:50
    VSTOCK:  258-6252-11
   HOTLINE:  Please contact your local service provider
    STATUS:  completely installed
     FILES:       28 installed pathnames
                   8 shared pathnames
                   8 directories
                  11 executables
                1027 blocks used (approx)</pre>
<p>Version 4.2.1, which is probably the latest available for Solaris 8.</p>
<h4>Do we have some free disks in order to set up mirroring?</h4>
<p>Use the format command to list disks configured on the system</p>
<pre class="brush: shell; gutter: true; first-line: 1; highlight: [3,5,7]"># format
AVAILABLE DISK SELECTIONS:
       0. c1t0d0 &lt;SUN36G cyl 24620 alt 2 hd 27 sec 107&gt;
          /pci@1f,700000/scsi@2/sd@0,0
       1. c1t2d0 &lt;SUN36G cyl 24620 alt 2 hd 27 sec 107&gt;
          /pci@1f,700000/scsi@2/sd@2,0
       2. c1t3d0 &lt;SUN36G cyl 24620 alt 2 hd 27 sec 107&gt;
          /pci@1f,700000/scsi@2/sd@3,0
       3. c6t600C0FF0000000000048CB0F02547800d0 &lt;SUN-StorEdge3510-327P cyl 34873 alt 2 hd 64 sec 64&gt;
          /scsi_vhci/ssd@g600c0ff0000000000048cb0f02547800
       4. c6t600C0FF0000000000048CB4F7554FE00d0 &lt;SUN-StorEdge3510-327P cyl 34873 alt 2 hd 64 sec 64&gt;
          /scsi_vhci/ssd@g600c0ff0000000000048cb4f7554fe00
       5. c6t600C0FF0000000000048CB594EB54200d0 &lt;SUN-StorEdge3510-327P cyl 35424 alt 2 hd 127 sec 127&gt;
          /scsi_vhci/ssd@g600c0ff0000000000048cb594eb54200
Specify disk (enter its number):</pre>
<p>The first disk, highlighted on line 3, is the existing root disk. The disks highlighted on lines 5 and 7 are possible mirror candidates as their size and geometry are identical to the existing root disk.</p>
<p>Verify that nothing is using the selected mirror disks by initially examining the partition tables. On the root disk we see a selection of specifically sized and labeled partitions (highlighted):</p>
<pre class="brush: shell; gutter: true; first-line: 1; highlight: [13,14,16,17,18]">format&gt; verify

Primary label contents:

Volume name = &lt;        &gt;
ascii name  = &lt;SUN36G cyl 24620 alt 2 hd 27 sec 107&gt;
pcyl        = 24622
ncyl        = 24620
acyl        =    2
nhead       =   27
nsect       =  107
Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -  2835        3.91GB    (2836/0/0)   8193204
  1       swap    wu    2836 -  7089        5.86GB    (4254/0/0)  12289806
  2     backup    wm       0 - 24619       33.92GB    (24620/0/0) 71127180
  3        var    wm    7090 -  9216        2.93GB    (2127/0/0)   6144903
  4 unassigned    wm    9217 - 12052        3.91GB    (2836/0/0)   8193204
  5       home    wm   12053 - 24104       16.60GB    (12052/0/0) 34818228
  6 unassigned    wm       0                0         (0/0/0)            0
  7 unassigned    wm       0                0         (0/0/0)            0</pre>
<p>Note the following about the root disk:</p>
<ol>
<li>Partition 2 (line 15) represents the entire disk and is rarely used, except for Oracle ASM</li>
<li>Partition 6 and 7 haven’t been used, and are available for SVM meta databases</li>
<li>The disk has 24619 usable cylinders, of which 24104 are used. The remainder will be used for partition 7 meta databases</li>
</ol>
<p>And on the selected mirror disk, we see what appears to be a standard “empty” partition:</p>
<pre class="brush: shell; gutter: true; first-line: 1">Specify disk (enter its number)[0]: 1
selecting c1t2d0
[disk formatted]
format&gt; verify

Primary label contents:

Volume name = &lt;&gt;
ascii name  =
pcyl        = 24622
ncyl        = 24620
acyl        =    2
nhead       =   27
nsect       =  107
Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -    90      128.37MB    (91/0/0)      262899
  1       swap    wu      91 -   181      128.37MB    (91/0/0)      262899
  2     backup    wu       0 - 24619       33.92GB    (24620/0/0) 71127180
  3 unassigned    wm       0                0         (0/0/0)            0
  4 unassigned    wm       0                0         (0/0/0)            0
  5 unassigned    wm       0                0         (0/0/0)            0
  6        usr    wm     182 - 24619       33.67GB    (24438/0/0) 70601382
  7 unassigned    wm       0                0         (0/0/0)            0</pre>
<p>And there is nothing unusual in the vfstab (i.e. no mentions of the selected mirror disk being used in any way):</p>
<pre class="brush: shell; gutter: true; first-line: 1">syd71# cat vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr          ufs     1       yes     -
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c1t0d0s1       -       -       swap    -       no      -
/dev/dsk/c1t0d0s0       /dev/rdsk/c1t0d0s0      /       ufs     1       no      logging
/dev/dsk/c1t0d0s3       /dev/rdsk/c1t0d0s3      /var    ufs     1       no      logging
/dev/dsk/c1t0d0s5       /dev/rdsk/c1t0d0s5      /apps   ufs     2       yes     logging
/dev/dsk/c1t0d0s4       /dev/rdsk/c1t0d0s4      /opt    ufs     2       yes     logging
/dev/dsk/c6t600C0FF0000000000048CB0F02547800d0s0        /dev/rdsk/c6t600C0FF0000000000048CB0F02547800d0s0       /data2  ufs     2       yes     logging,forcedir
ectio
/dev/dsk/c6t600C0FF0000000000048CB4F7554FE00d0s0        /dev/rdsk/c6t600C0FF0000000000048CB4F7554FE00d0s0       /data1  ufs     2       yes     logging,forcedir
ectio
/dev/dsk/c6t600C0FF0000000000048CB594EB54200d0s0        /dev/rdsk/c6t600C0FF0000000000048CB594EB54200d0s0       /data   ufs     2       yes     logging,forcedir
ectio
swap    -       /tmp    tmpfs   -       yes     -</pre>
<h4>Copy the partition setup to the chosen mirror disk:</h4>
<p>SVM is not a “whole disk” mirroring solution, rather it works on a partition by partition basis. The target partition needs to exist before you set it up as a mirror. When attempting to mirror a complete disk, the easy way to do this is to use the prtvtoc command to print out the “volume table of contents” and then write it to the target disk:</p>
<pre class="brush: shell; gutter: true; first-line: 1">prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t2d0s2</pre>
<p><strong>Note 1: Be sure you get the drive names absolutely correct, or you WILL destroy data! This will NOT ask you if you are sure, and there is NO WAY to undo this if you get it wrong!</strong></p>
<p><strong>Note 2: It’s a good idea to add the partition for your SVM state databases before opting the partition table to the second disk. You will need this partition in the next step.</strong></p>
<h4>Establish the state databases:</h4>
<p>These small databases contain all of the information SVM needs to operate, and the configuration information of the RAID volumes we create.</p>
<pre class="brush: shell; gutter: true; first-line: 1">metadb -af -c 3 /dev/dsk/c1t0d0s7
metadb -af -c 3 /dev/dsk/c1t2d0s7</pre>
<p>The parameters above are:</p>
<ul>
<li>–a: add databases</li>
<li>–f: force, basically create the initial databases</li>
<li>–c: the number of copies in case of database corruption. Additionally SVM requires a majority of databases to be available for correct operation; in an ideal world you would place additional copies on a third drive. In reality most people configure a parameter to override this requirement.</li>
</ul>
<h4>Create the RAID devices:</h4>
<p>Next we initialise the partitions which we want to mirror. From the root disk partition table listed above, they are:</p>
<ul>
<li>0 — root</li>
<li>1 — swap</li>
<li>3 — var</li>
<li>4 — opt</li>
<li>5 — apps</li>
</ul>
<div>When initialising the partitions we assign them new SVM names, normally in the format dXX where XX are integers. I have always used names like d11, d12 to represent the disk partitions and then d10 to represent the mirror itself. Firstly, the root disk side:</div>
<div>
<pre class="brush: shell; gutter: true; first-line: 1">metainit -f d01 1  1 c1t0d0s0
metainit -f d11 1  1 c1t0d0s1
metainit -f d31 1  1 c1t0d0s3
metainit -f d41 1  1 c1t0d0s4
metainit -f d51 1  1 c1t0d0s5</pre>
</div>
<div>Then the target disk:</div>
<div>
<pre class="brush: shell; gutter: true; first-line: 1">metainit -f d02 1  1 c1t2d0s0
metainit -f d12 1  1 c1t2d0s1
metainit -f d32 1  1 c1t2d0s3
metainit -f d42 1  1 c1t2d0s4
metainit -f d52 1  1 c1t2d0s5</pre>
</div>
<p>The “1 1″ parameter tells metainit to create 1 stripe with 1 partition.</p>
<h4>Create the Mirrors:</h4>
<p>Next we create the parent mirror devices, and attach the first side, the existing root disk:</p>
<pre class="brush: shell; gutter: true; first-line: 1">metainit d00 -m d01
metainit d10 -m d11
metainit d30 -m d31
metainit d40 -m d41
metainit d50 -m d51</pre>
<p>We won’t add the second side of the mirrors until we configure the system to boot from mirror device, and perform a reboot.</p>
<h4>Configure the root device:</h4>
<p>Now that we have SVM mirror devices created, we need to configure Solaris to access them correctly. SVM creates new device files under /dev/md/dsk and /dev/md/rdsk and unless the vfstab file is updated to point to these new device files, it will not be taking advantage of the RAID configuration. For the root partition, the metaroot command will perform this task for you. If it only did that, it would be a pretty useless command, as you need to edit the vfstab file to update the other partition entries as well. Luckily, it also updates the /etc/system kernel configuration file with the necessary entries for SVM.</p>
<pre class="brush: shell; gutter: true; first-line: 1">metaroot d00</pre>
<h4>Modify vfstab for any other root disk mounts:</h4>
<p>Now we need to update the vfstab entries for swap, var, opt, apps:</p>
<pre class="brush: shell; gutter: true; first-line: 1; highlight: [7,8,9,10,11]">#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr          ufs     1       yes     -
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/md/dsk/d10       -       -       swap    -       no      -
/dev/md/dsk/d00       /dev/md/rdsk/d10      /       ufs     1       no      logging
/dev/md/dsk/d30       /dev/md/rdsk/d30      /var    ufs     1       no      logging
/dev/md/dsk/d50       /dev/md/rdsk/d50      /apps   ufs     2       yes     logging
/dev/md/dsk/d40       /dev/md/rdsk/d40      /opt    ufs     2       yes     logging
/dev/dsk/c6t600C0FF0000000000048CB0F02547800d0s0        /dev/rdsk/c6t600C0FF0000000000048CB0F02547800d0s0       /data2  ufs     2       yes     logging,forcedir
ectio
/dev/dsk/c6t600C0FF0000000000048CB4F7554FE00d0s0        /dev/rdsk/c6t600C0FF0000000000048CB4F7554FE00d0s0       /data1  ufs     2       yes     logging,forcedir
ectio
/dev/dsk/c6t600C0FF0000000000048CB594EB54200d0s0        /dev/rdsk/c6t600C0FF0000000000048CB594EB54200d0s0       /data   ufs     2       yes     logging,forcedir
ectio
swap    -       /tmp    tmpfs   -       yes     -</pre>
<h4>Lock the filesystem and shutdown the server:</h4>
<p>To ensure that no further changes are made to the filesystems prior to booting onto the new volumes, run the locks command and reboot immediately.</p>
<pre class="brush: shell; gutter: true; first-line: 1"># lockfs -fa
# /usr/sbin/shutdown -y -g0 -i0</pre>
<p>While at the OBP prompt, configure device aliases and the boot-device parameter to automatically boot from either drive in the event of a failure:</p>
<pre class="brush: shell; gutter: true; first-line: 1">% show-disks</pre>
<p>Pick your mirrored disk from the list and then setup an alias:</p>
<pre class="brush: shell; gutter: true; first-line: 1">% nvalias mirror ^y (that is a &lt;control&gt;-y to paste the device path)</pre>
<p>Change your boot-device to first try the normal disk alias, then use your mirror disk:</p>
<pre class="brush: shell; gutter: true; first-line: 1">% setenv boot-device disk mirror
% reset-all</pre>
<p>When the system is booting, you will see errors relating to SVM drivers as follows:</p>
<pre class="brush: shell; gutter: true; first-line: 1">forceload of misc/md_trans failed
forceload of misc/md_raid failed
forceload of misc/md_hotspares failed</pre>
<p>You can safely ignore these messages, as they relate to SVM elements which we haven’t created. If you wish, you can create a volume for transaction logs, a RAID 5 volume, and define a disk as a hotspare in order to remove these errors <img src='http://systemmangler.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Alternatively, you could edit out those driver references in the /etc/system file.</p>
<h4>Attach the second mirrors:</h4>
<pre class="brush: shell; gutter: true; first-line: 1">metattach d00 d02
metattach d10 d12
metattach d30 d32
metattach d40 d42
metattach d50 d52</pre>
<p>After doing the met attach, there will be lots of disk I/O while the mirrors sync. You can use the metastat command to view status of operation:</p>
<pre class="brush: shell; gutter: true; first-line: 1">metastat | grep State | egrep -v Okay</pre>
<h4>Other things to fix, the Solaris boot block and the State Database Qurom:</h4>
<p>In the event of a primary disk failure, the system should keep running from the second drive. If you reboot though, the system may not start up as there is no “bootblock” on the second disk. Let’s fix that:</p>
<pre class="brush: shell; gutter: true; first-line: 1"># installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c1t2d0s0</pre>
<p>If you only have two mirrored root disks (DiskSuite 4.2.1, Solaris 8), put this setting in your /etc/system:</p>
<pre class="brush: shell; gutter: true; first-line: 1">set md:mirrored_root_flag=1</pre>
<p>And you’re done.</p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://systemmangler.com/2012/os-or-root-disk-mirroring-in-solaris-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OK Go — Needing/Getting — Official Video — YouTube</title>
		<link>http://systemmangler.com/2012/ok-go-needinggetting-official-video-youtube/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ok-go-needinggetting-official-video-youtube</link>
		<comments>http://systemmangler.com/2012/ok-go-needinggetting-official-video-youtube/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 02:18:36 +0000</pubDate>
		<dc:creator>systemmangler</dc:creator>
				<category><![CDATA[Videos]]></category>
		<category><![CDATA[Crazy]]></category>
		<category><![CDATA[OK GO]]></category>

		<guid isPermaLink="false">http://systemmangler.com/?p=153</guid>
		<description><![CDATA[This is nuts.]]></description>
			<content:encoded><![CDATA[<p><iframe width="500" height="281" src="http://www.youtube.com/embed/MejbOFk7H6c?fs=1&#038;feature=oembed" frameborder="0" allowfullscreen></iframe></p>
<p>This is nuts.</p>
]]></content:encoded>
			<wfw:commentRss>http://systemmangler.com/2012/ok-go-needinggetting-official-video-youtube/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>That vendor I whined about previously…</title>
		<link>http://systemmangler.com/2012/that-vendor-i-whined-about-previously/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=that-vendor-i-whined-about-previously</link>
		<comments>http://systemmangler.com/2012/that-vendor-i-whined-about-previously/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 00:53:04 +0000</pubDate>
		<dc:creator>systemmangler</dc:creator>
				<category><![CDATA[Posts]]></category>

		<guid isPermaLink="false">http://systemmangler.com/?p=143</guid>
		<description><![CDATA[I am now working for them. How things change.]]></description>
			<content:encoded><![CDATA[<p>I am now working for them.</p>
<p>How things change.</p>
]]></content:encoded>
			<wfw:commentRss>http://systemmangler.com/2012/that-vendor-i-whined-about-previously/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>If You Are New To Computers, Please…</title>
		<link>http://systemmangler.com/2011/if-you-are-new-to-computers-please/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=if-you-are-new-to-computers-please</link>
		<comments>http://systemmangler.com/2011/if-you-are-new-to-computers-please/#comments</comments>
		<pubDate>Fri, 18 Feb 2011 12:05:40 +0000</pubDate>
		<dc:creator>systemmangler</dc:creator>
				<category><![CDATA[Posts]]></category>

		<guid isPermaLink="false">http://systemmangler.com/?p=98</guid>
		<description><![CDATA[Another call from home, another family member / friend / neighbour with computer problems. You would think that being 17383 kilometers (roughly) away would insulate me from all of that. &#60;rant&#62; So for the last time, in descending order, If You Are New To Computers, Please: Buy an iPad. Seriously. Expensive compared to a netbook, [...]]]></description>
			<content:encoded><![CDATA[<p>Another call from home, another family member / friend / neighbour with computer problems.</p>
<p>You would think that being 17383 kilometers (roughly) away would insulate me from all of that.</p>
<p>&lt;rant&gt;</p>
<p>So for the last time, in descending order, If You Are New To Computers, Please:</p>
<ol>
<li><strong>Buy an iPad.</strong> Seriously. Expensive compared to a netbook, but you will use it! You will never edit your photo’s, and all you really want is email, Facebook, the web, and Skype. Get somebody who is not new to computers to add music / upgrade the software once every 3 months or so.</li>
<li><strong>Buy a Mac.</strong> Spare me the <em>“more expensive, can’t get Microsoft Word, I wouldn’t know how to use it”</em> crap. Is it more expensive when you believe you absolutely need to buy antivirus, and then PC World charge you well over 250euro to clean it up after you get one? Shut up about MS Word already. And the last thing… you are new to computers, right? Learn it.</li>
<li><strong>Don’t buy anything from PC World or Curries.</strong> They will sell you shit. Dell would still be my best bet.</li>
<li><strong>Read dialog boxes before clicking on them</strong>.</li>
</ol>
<div>&lt;/rant&gt;</div>
]]></content:encoded>
			<wfw:commentRss>http://systemmangler.com/2011/if-you-are-new-to-computers-please/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beware Vendors With Agendas</title>
		<link>http://systemmangler.com/2011/beware-vendors-with-agendas/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=beware-vendors-with-agendas</link>
		<comments>http://systemmangler.com/2011/beware-vendors-with-agendas/#comments</comments>
		<pubDate>Tue, 15 Feb 2011 06:53:17 +0000</pubDate>
		<dc:creator>systemmangler</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[Agenda]]></category>
		<category><![CDATA[Clueless Managers]]></category>
		<category><![CDATA[NetBackup]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[Vendor]]></category>

		<guid isPermaLink="false">http://systemmangler.com/2011/beware-vendors-with-agendas/</guid>
		<description><![CDATA[I just absolutely love this: Vendor with agenda whispers sweet “I will solve all your backup problems with these new storage arrays of ours” nothings to senior manager with no knowledge of, or inclination to ask those who know the backup environment… Senior manager instructs storage manager with no real knowledge of or inclination ever [...]]]></description>
			<content:encoded><![CDATA[<p>I just absolutely love this:
</p>
<ol>
<li>Vendor with agenda whispers sweet <i>“I will solve all your backup problems with these new storage arrays of ours</i>” nothings to senior manager with no knowledge of, or inclination to ask those who know the backup environment…</li>
<li>Senior manager instructs storage manager with no real knowledge of or inclination ever to use said vendors storage products, or indeed ever waste his beloved spindles on backup, to “<i>Engage this vendor to report on our backup problems</i>”</li>
<li>Manager to poor unsuspecting NetBackup engineer with 10+ years major enterprise experience, running a nearly 900 client, 8000 backup job a night environment with typically less than 0.5% failure rate: “<i>What’s with all these backup problems we have?</i>”</li>
</ol>
<p>I just absolutely fucking love it.</p>
<p>I see a couple of glasses of wine in my future tonight!</p>
]]></content:encoded>
			<wfw:commentRss>http://systemmangler.com/2011/beware-vendors-with-agendas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I am in Rubberbandit induced heaven!</title>
		<link>http://systemmangler.com/2010/i-am-in-rubberbandit-induced-heaven-steps/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=i-am-in-rubberbandit-induced-heaven-steps</link>
		<comments>http://systemmangler.com/2010/i-am-in-rubberbandit-induced-heaven-steps/#comments</comments>
		<pubDate>Thu, 16 Dec 2010 01:16:02 +0000</pubDate>
		<dc:creator>systemmangler</dc:creator>
				<category><![CDATA[Videos]]></category>
		<category><![CDATA[Blindboy]]></category>
		<category><![CDATA[Heaven]]></category>
		<category><![CDATA[Horse Outside]]></category>
		<category><![CDATA[Joe Duffy]]></category>
		<category><![CDATA[Limerick]]></category>
		<category><![CDATA[Liveline]]></category>
		<category><![CDATA[Nialler9]]></category>
		<category><![CDATA[Rubberbandits]]></category>
		<category><![CDATA[Willie O'Dea]]></category>

		<guid isPermaLink="false">http://systemmangler.com/2010/i-am-in-rubberbandit-induced-heaven-steps/</guid>
		<description><![CDATA[Steps: Watch video above Howl at the gobshite reactions on Liveline with Joe Duffy (from Nialler9) Marvel at the astute, insightful, devastating counter arguments from Blindboy of the Rubberbandits Rejoice in the new found new found infamy of the “Anthony” character Insider tip: the exterior church scenes are from Castletroy, Limerick (I should know my [...]]]></description>
			<content:encoded><![CDATA[<p><iframe width="500" height="281" src="http://www.youtube.com/embed/ljPFZrRD3J8?fs=1&#038;feature=oembed" frameborder="0" allowfullscreen></iframe></p>
<p>Steps:</p>
<ol>
<li>Watch video above</li>
<li>Howl at the gobshite reactions on <a href="http://tinyurl.com/2fr7xbt" target="_blank">Liveline with Joe Duffy</a> (from Nialler9)</li>
<li>Marvel at the astute, insightful, devastating counter arguments from Blindboy of the Rubberbandits</li>
<li>Rejoice in the new found <a href="http://bit.ly/gUetdJ" target="_blank">new found infamy</a> of the “Anthony” character</li>
</ol>
<p>Insider tip: the exterior church scenes are from Castletroy, Limerick (I should know my little boy was baptised there). No idea where the interior scenes are from.</p>
<p>Really, really impressed with the well reasoned answers from Blindboy. <em>Daycent!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://systemmangler.com/2010/i-am-in-rubberbandit-induced-heaven-steps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Considering my home town and current domicile…</title>
		<link>http://systemmangler.com/2010/considering-my-home-town-and-current-domicile-the/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=considering-my-home-town-and-current-domicile-the</link>
		<comments>http://systemmangler.com/2010/considering-my-home-town-and-current-domicile-the/#comments</comments>
		<pubDate>Wed, 17 Nov 2010 02:10:00 +0000</pubDate>
		<dc:creator>systemmangler</dc:creator>
				<category><![CDATA[Images]]></category>
		<category><![CDATA[Leinster]]></category>
		<category><![CDATA[Munster]]></category>

		<guid isPermaLink="false">http://systemmangler.com/2010/considering-my-home-town-and-current-domicile-the/</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div id="attachment_10" class="wp-caption aligncenter" style="width: 442px"><img src="http://systemmangler.com/wp-content/uploads/tumblr_lc0be7vOzr1qbqn1co1_1280.jpg" alt="Posted from Dublin's fair city!" width="432" height="322" /><p class="wp-caption-text">…the result of today’s match between Munster and Leinster pleases me <img src='http://systemmangler.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p></div>
]]></content:encoded>
			<wfw:commentRss>http://systemmangler.com/2010/considering-my-home-town-and-current-domicile-the/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

