<?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>Felipe Alfaro Solana &#187; Solaris</title>
	<atom:link href="http://www.felipe-alfaro.org/blog/category/unix/solaris/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.felipe-alfaro.org/blog</link>
	<description>A little bit of technology, security and networking with Linux, FreeBSD and Mac OS X, plus some personal opinions.</description>
	<lastBuildDate>Sun, 23 Oct 2011 16:46:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>OpenSolaris b134 text-based installation</title>
		<link>http://www.felipe-alfaro.org/blog/2010/07/08/opensolaris-b134-text-based-installation/</link>
		<comments>http://www.felipe-alfaro.org/blog/2010/07/08/opensolaris-b134-text-based-installation/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 16:26:40 +0000</pubDate>
		<dc:creator>Felipe Alfaro Solana</dc:creator>
				<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://www.felipe-alfaro.org/blog/?p=543</guid>
		<description><![CDATA[Beginning with OpenSolaris b134 it is now possible to do a text-based installation. Some of the main differences between the new text-based installation and the LiveCD-based installation are: The text-based installation supports serial console. The text-based installation performs a minimal installation. X11, GNOME and many other packages will not be installed by default, but can [...]]]></description>
			<content:encoded><![CDATA[<p>Beginning with OpenSolaris b134 it is now possible to do a text-based installation. Some of the main differences between the new text-based installation and the LiveCD-based installation are:</p>
<ul>
<li>The text-based installation supports serial console.</li>
<li>The text-based installation performs a minimal installation. X11, GNOME and many other packages will not be installed by default, but can be installed later on by following instructions from <a href="http://hub.opensolaris.org/bin/view/Project+caiman/Text+Install+b134+Notes">Text Installer b134-based project gate images</a>.</li>
<li>The text-based installation offers more installation options, like installing into a whole disk, a partition or a slice within a Solaris2 partition. Again, this can be achieved by following instructions from <a href="http://hub.opensolaris.org/bin/view/Project+caiman/Text+Install+b134+Notes">Text Installer b134-based project gate images</a>.</li>
</ul>
<p>Being able to install OpenSolaris into a slice within a partition can be useful. For example, my OpenSolaris box has 1x2TB disk and 3&#215;1.5TB disks. I want one ZFS pool to span 4&#215;1.5TB slices (across the 4 drives) and the ZFS root pool on the remaining space in the 2TB disk. With the LiveCD it requires a lot of hacking as described in <a href="http://www.felipe-alfaro.org/blog/2009/07/27/hp-proliant-dl180-g6-and-zfs-part-v/">HP Proliant DL180 G6 and ZFS (part V)</a>. With the text-based installation it is straightforward and it does not require booting a Linux distribution to modify the partition table, or from an OpenSolaris LiveCD to adjust the slices.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.felipe-alfaro.org/blog/2010/07/08/opensolaris-b134-text-based-installation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Solaris, HP SmartArray and data corruption on shutdown</title>
		<link>http://www.felipe-alfaro.org/blog/2010/07/07/solaris-hp-smartarray-and-data-corruption-on-shutdown/</link>
		<comments>http://www.felipe-alfaro.org/blog/2010/07/07/solaris-hp-smartarray-and-data-corruption-on-shutdown/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 12:09:05 +0000</pubDate>
		<dc:creator>Felipe Alfaro Solana</dc:creator>
				<category><![CDATA[HP]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://www.felipe-alfaro.org/blog/?p=530</guid>
		<description><![CDATA[For quite some time I had been experiencing power-off problems on a HP Proliant server running Solaris (or OpenSolaris). Most of the time, the poweroff or init 5 commands will not cut the power and the machine will hang and stay up with fans spinning at full speed. The only solution was to manually power [...]]]></description>
			<content:encoded><![CDATA[<p>For quite some time I had been experiencing power-off problems on a HP Proliant server running Solaris (or OpenSolaris). Most of the time, the <code>poweroff</code> or init 5 commands will not cut the power and the machine will hang and stay up with fans spinning at full speed. The only solution was to manually power cycle or use LOM to shut the machine down. This has caused data corruption problems for me several times, specially when the HP SmartArray batteries get discharged.</p>
<p>Turns out there is a HP support document, <a href="http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&#038;cc=us&#038;taskId=110&#038;prodSeriesId=1137825&#038;prodTypeId=15351&#038;objectID=c01519161%20">SHUTDOWN PROCEDURE REQUIRED for ProLiant Server Running Sun Solaris 10 to Properly Flush Cache on Smart Array Controller Prior to Shutdown</a> that precisely describes my situation. It seems it&#8217;s an interaction problem between Solaris and the <code>cpqary3</code> drivers (2.1.0 or older) that causes buffers in the HP SmartArray controller to not be flushed on shut down. If the batteries drain, eventually data loss might occur. And precisely, since I was using <code>cpqary3</code> driver version 2.1.0, I have just upgraded to <a href="http://www.felipe-alfaro.org/blog/wp-content/solaris/CPQary3-2.2.0-solaris10-i386.tar.gz"><code>cpqary3-2.2.0</code></a> to see if this solves my problems for once and all. We&#8217;ll see <img src='http://www.felipe-alfaro.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.felipe-alfaro.org/blog/2010/07/07/solaris-hp-smartarray-and-data-corruption-on-shutdown/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Creating an OpenSolaris LiveUSB</title>
		<link>http://www.felipe-alfaro.org/blog/2009/09/14/creating-an-opensolaris-liveusb/</link>
		<comments>http://www.felipe-alfaro.org/blog/2009/09/14/creating-an-opensolaris-liveusb/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 20:54:56 +0000</pubDate>
		<dc:creator>Felipe Alfaro Solana</dc:creator>
				<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://www.felipe-alfaro.org/blog/?p=429</guid>
		<description><![CDATA[Creating a bootable OpenSolaris LiveUSB might prove useful in some situations, for example when installing OpenSolaris on machines without a CD/DVD drive. First, download the OpenSolaris LiveCD image. Next, install SUNWdistro-const: $ pfexec pkg install SUNWdistro-const Generate a USB image from the contents of the LiveCD image: $ pfexec usbgen osol-0906-x86.iso osol-0906-x86-usb.img /var/tmp/solaris Dump the [...]]]></description>
			<content:encoded><![CDATA[<p>Creating a bootable OpenSolaris LiveUSB might prove useful in some situations, for example when installing OpenSolaris on machines without a CD/DVD drive. First, download the <a href="http://www.opensolaris.org/os/downloads/">OpenSolaris LiveCD</a> image.</p>
<p>Next, install <code>SUNWdistro-const</code>:</p>
<pre>
<div>
$ pfexec pkg install SUNWdistro-const
</div>
</pre>
<p>Generate a USB image from the contents of the LiveCD image:</p>
<pre>
<div>
$ pfexec usbgen osol-0906-x86.iso osol-0906-x86-usb.img /var/tmp/solaris
</div>
</pre>
<p>Dump the USB image into the USB device, but first make sure the USB device is not already mounted (for example, automatically mounted by GNOME):</p>
<pre>
<div>
$ pfexec usbcopy osol-0906-x86-usb.img
</div>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.felipe-alfaro.org/blog/2009/09/14/creating-an-opensolaris-liveusb/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ZFS, GRUB boot problems and &#8220;inconsistent file system structure&#8221;</title>
		<link>http://www.felipe-alfaro.org/blog/2009/08/29/zfs-grub-boot-problems-and-inconsistent-file-system-structure/</link>
		<comments>http://www.felipe-alfaro.org/blog/2009/08/29/zfs-grub-boot-problems-and-inconsistent-file-system-structure/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 11:09:45 +0000</pubDate>
		<dc:creator>Felipe Alfaro Solana</dc:creator>
				<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://www.felipe-alfaro.org/blog/?p=413</guid>
		<description><![CDATA[Today one of my OpenSolaris boxes could not get to the GRUB menu. Instead, I was dropped at the GRUB prompt. I tried running: bootfs rpool/ROOT/opensolaris kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS But this was failing with a &#8220;inconsistent file system structure&#8221; error. I searched the Internet and found ZFS rpool Upgrade and GRUB. What I did [...]]]></description>
			<content:encoded><![CDATA[<p>Today one of my OpenSolaris boxes could not get to the GRUB menu. Instead, I was dropped at the GRUB prompt. I tried running:</p>
<div>
<pre>
bootfs rpool/ROOT/opensolaris
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS
</pre>
</div>
<p>But this was failing with a &#8220;<code>inconsistent file system structure</code>&#8221; error. I searched the Internet and found <a href="http://wiki.genunix.org/wiki/index.php/ZFS_rpool_Upgrade_and_GRUB">ZFS rpool Upgrade and GRUB</a>. What I did is booting from an OpenSolaris CD, then tried to import the <code>rpool</code> ZFS pool:</p>
<div>
<pre>
mkdir /tmp/rpool
zpool import -R /tmp/rpool rpool
</pre>
</div>
<p>But this was failed with an error message that indicated someone else might be using that ZFS pool. To force the import I used the following command instead:</p>
<div>
<pre>
zpool import -f -R /tmp/rpool rpool
</pre>
</div>
<p>This time it worked flawlessly and I could check the GRUB <code>menu.lst</code> file was in place and looked okay. So, before trying to rebuilt the boot archives or reinstalling GRUB, I rebooted the box. This time, the GRUB menu came up and I could boot the system. I&#8217;m not entirely sure what happened yet.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.felipe-alfaro.org/blog/2009/08/29/zfs-grub-boot-problems-and-inconsistent-file-system-structure/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>OpenSolaris and power-off problems</title>
		<link>http://www.felipe-alfaro.org/blog/2009/08/17/opensolaris-and-power-off-problems/</link>
		<comments>http://www.felipe-alfaro.org/blog/2009/08/17/opensolaris-and-power-off-problems/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 19:02:49 +0000</pubDate>
		<dc:creator>Felipe Alfaro Solana</dc:creator>
				<category><![CDATA[Power management]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://www.felipe-alfaro.org/blog/?p=408</guid>
		<description><![CDATA[Since I installed OpenSolaris on the HP Proliant DL180 G5, I&#8217;m constantly having problems with init 5 not being able to switch power off on shut down. Today, while searching a bit to see if anyone else had this problem, I came up with the following thread: Shutting down PC. The comment by perksta is [...]]]></description>
			<content:encoded><![CDATA[<p>Since I installed OpenSolaris on the HP Proliant DL180 G5, I&#8217;m constantly having problems with <code>init 5</code> not being able to switch power off on shut down. Today, while searching a bit to see if anyone else had this problem, I came up with the following thread: <a href="https://opensolaris.org/jive/thread.jspa?threadID=55253">Shutting down PC</a>. The comment by <a href="http://www.opensolaris.org//viewProfile.jspa?id=110029">perksta</a> is the most useful one:</p>
<blockquote><p>
Hi there,<br />
I too was having this issue, hanging on shutdown. My setup is a ASUS P5E3-WS-Pro with QUAD core Q6600 2.4Ghz with AOC-SAT2-MV8. I found this blog :-</p>
<p><a href="http://masafumi-ohta.blogspot.com/2008/10/workaroundeee-901-has-shutdown-problem_08.html<br />
">http://masafumi-ohta.blogspot.com/2008/10/workaroundeee-901-has-shutdown-problem_08.html</a></p>
<p>about an ASUS eee 901 which was worked around by offlining the extra cores before shutdown.</p>
<p>add &#8220;/usr/sbin/psradm -f 1 2 3&#8243; before &#8220;init 5&#8243; line in the file &#8220;/usr/lib/hal/sunos/hal-system-power-shutdown-sunos&#8221; </p>
<p>This has worked for me consistently now (about 20 shutdowns) I am using Solaris Express CE build 103.</p>
<p>I still get lots of &#8216;svc-syseventd stop&#8217; errors during shutdown but at least it turns off reliably
</p></blockquote>
<p>To keep it short, running:</p>
<div>
<pre>
pfexec /usr/sbin/psradm -f 1 2 3
pfexec /sbin/init 5
</pre>
</div>
<p>Seems to do the trick, although I confess I&#8217;ve only used it a couple of times. Time will tell if this workaround works reliably or not.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.felipe-alfaro.org/blog/2009/08/17/opensolaris-and-power-off-problems/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>HP Proliant DL180 G6 and ZFS (part V)</title>
		<link>http://www.felipe-alfaro.org/blog/2009/07/27/hp-proliant-dl180-g6-and-zfs-part-v/</link>
		<comments>http://www.felipe-alfaro.org/blog/2009/07/27/hp-proliant-dl180-g6-and-zfs-part-v/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 22:32:06 +0000</pubDate>
		<dc:creator>Felipe Alfaro Solana</dc:creator>
				<category><![CDATA[HP]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[ZFS]]></category>

		<guid isPermaLink="false">http://www.felipe-alfaro.org/blog/?p=403</guid>
		<description><![CDATA[Once I got the OpenSolaris installation kicked I faced another problem. The computer has 3 x 1.5TB and 1 x 2TB disks installed. This is suboptimal when configuring a RAID volume but I thought that I could cheat here. The cheat consists of slicing the 2TB disk in a 1.5TB slice and using the remaining [...]]]></description>
			<content:encoded><![CDATA[<p>Once I got the OpenSolaris installation kicked I faced another problem. The computer has 3 x 1.5TB and 1 x 2TB disks installed. This is suboptimal when configuring a RAID volume but I thought that I could cheat here. The cheat consists of slicing the 2TB disk in a 1.5TB slice and using the remaining 0.5TB to store the ZFS rpool.</p>
<p>As nice as it sounds this turned out tobe a little bit tricky. More than I expected. The challenge was convincing the OpenSolaris installer to create one 0.5TB slice and another 1.5TB slice. But I could not: OpenSolaris creates a partition and creates a slice that fills it up entirely. So, I either got a 2.0TB partition and a 2.0TB slice or a 0.5TB partition and a 0.5TB slice. In the end, what I did is to create a 0.5TB partition leaving the rest of the disk unused. The OpenSolaris installer created a <code>SOLARIS2</code> partition and, inside it, a 0.5TB slice for the ZFS rpool. Once the installation was finished, I booted from a Ubuntu 9.04 LiveCD. As usual, Ubuntu did not require any driver disk or updates: it recognized the HP Smart Array controller automatically. Then I used <code>fdisk</code> to destroy and recreate the <code>SOLARIS2</code> partition but this time I recreated it to cover the whole disk. I had to make sure the partition was makred active or GRUB would not boot. Since OpenSolaris doesn&#8217;t like multiple partitions of <code>SOLARIS2</code> (hexadecimal <code>bf</code>) type, this is the only way I can think of to do what I want.</p>
<p>Next step was to boot from the OpenSolaris x86 LiveCD, apply the driver update and check that <code>fdisk</code> reported a single Solaris partition that fills the entire 2TB disk. Then I summoned <code>format</code> to create a new <code>s3</code> slice that covered the remaining 1.5TB. This is how the slices look like now:</p>
<div>
<pre>
Current partition table (original):
Total disk cylinders available: 60796 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       1 - 15198      465.69GB    (15198/0/0)  976623480
  1 unassigned    wm       0                0         (0/0/0)              0
  2     backup    wu       0 - 60795        1.82TB    (60796/0/0) 3906750960
  3 unassigned    wm   15199 - 60795        1.36TB    (45597/0/0) 2930063220
  4 unassigned    wm       0                0         (0/0/0)              0
  5 unassigned    wm       0                0         (0/0/0)              0
  6 unassigned    wm       0                0         (0/0/0)              0
  7 unassigned    wm       0                0         (0/0/0)              0
  8       boot    wu       0 -     0       31.38MB    (1/0/0)          64260
  9 unassigned    wm       0                0         (0/0/0)              0
</pre>
</div>
<p>Then, I only had to apply a label to the remaining 3 x 1.5TB disks and create the corresponding <code>s3</code> slices on each of them. All <code>s3</code> slices are about the same size:</p>
<div>
<pre>
Current partition table (original):
Total disk cylinders available: 60796 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0 unassigned    wm       0                0         (0/0/0)              0
  1 unassigned    wm       0                0         (0/0/0)              0
  2     backup    wu       0 - 60795        1.36TB    (60796/0/0) 2930063220
  3 unassigned    wm       0 - 60795        1.36TB    (60796/0/0) 2930063220
  4 unassigned    wm       0                0         (0/0/0)              0
  5 unassigned    wm       0                0         (0/0/0)              0
  6 unassigned    wm       0                0         (0/0/0)              0
  7 unassigned    wm       0                0         (0/0/0)              0
  8       boot    wu       0 -     0       23.53MB    (1/0/0)          48195
  9 unassigned    wm       0                0         (0/0/0)              0
</pre>
</div>
<p>And finally,</p>
<div>
<pre>
# zpool create -f zfs raidz1 c9t0d0s3 c9t1d0s3 c9t2d0s3 c9t3d0s3
# zpool list
NAME    SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT
rpool   464G  5.50G   458G     1%  ONLINE  -
zfs    5.44T   152K  5.44T     0%  ONLINE  -
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.felipe-alfaro.org/blog/2009/07/27/hp-proliant-dl180-g6-and-zfs-part-v/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>HP Proliant DL180 G6 and OpenSolaris (part IV)</title>
		<link>http://www.felipe-alfaro.org/blog/2009/07/27/hp-proliant-dl180-g6-and-opensolaris-part-iv/</link>
		<comments>http://www.felipe-alfaro.org/blog/2009/07/27/hp-proliant-dl180-g6-and-opensolaris-part-iv/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 22:01:50 +0000</pubDate>
		<dc:creator>Felipe Alfaro Solana</dc:creator>
				<category><![CDATA[HP]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://www.felipe-alfaro.org/blog/?p=395</guid>
		<description><![CDATA[After all my failures trying to get this HP computer to work, I decided that perhaps OpenSolaris was the solution. And it turned out I was right. OpenSolaris x86 LiveCD uses a 64-bit kernel by default. The tricky part was to get the driver loaded before starting the OpenSolaris installation. And to my fortune, I [...]]]></description>
			<content:encoded><![CDATA[<p>After all my failures trying to get this HP computer to work, I decided that perhaps OpenSolaris was the solution. And it turned out I was right. OpenSolaris x86 LiveCD uses a 64-bit kernel by default. The <i>tricky</i> part was to get the driver loaded before starting the OpenSolaris installation. And to my fortune, I read <a href="http://lanestechblog.blogspot.com/2009/02/installing-opensolaris-200811-on-server.html">Installing OpenSolaris 2008.11 on a server with a HP Smart Array Controller</a>. The post was extremely useful.</p>
<p>To keep it short, download the <code>cpqary3</code> driver from the HP Web site. Or, if you trust in me (you should always download drivers from the manufacturer&#8217;s Web site), I also keep a copy of the 2.2.0 driver that can be downloaded from <a href="http://www.felipe-alfaro.org/blog/wp-content/solaris/CPQary3-2.2.0-solaris10-i386.tar.gz">here</a>.</p>
<p>Next,</p>
<div>
<pre>
$ cd /tmp
$ tar zxvf CPQary3-2.2.0-solaris10-i386.tar
$ cd CPQary3-2.2.0-solaris10-i386
$ pfexec touch /ADD_DRV_IGNORE_ROOT_BASEDIR
$ pfexec pkgadd -d ././CPQary3.pkg
The following packages are available:
1 CPQary3 HP Smart Array Controller Driver
(i386) 2.2.0, ...

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

Processing package instance from

HP Smart Array Controller Driver(i386) 2.2.0,...
Copyright 2009 Hewlett-Packard Development Company, L.P.
## Executing checkinstall script.
Using as the package base directory.
## Processing package information.
## Processing system information.
11 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
WARNING:
The /usr filesystem has 0 free blocks. The current installation
requires 158 blocks, which includes a required 150 block
buffer for open deleted files. 158 more blocks are needed.

WARNING:
The /usr filesystem has 0 free file nodes. The current
installation requires 26 file nodes, which includes a required 25
file node buffer for temporary files. 26 more file nodes are needed.

Do you want to continue with the installation of [y,n,?] y
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with
super-user permission during the process of installing this
package.

Do you want to continue with the installation of [y,n,?] y

Installing HP Smart Array Controller Driver as

## Installing part 1 of 1.
/kernel/drv/amd64/cpqary3
/kernel/drv/cpqary3
/kernel/drv/cpqary3.conf
/usr/share/man/man7d/cpqary3.7d
ERROR: attribute verification of failed
pathname does not exist
[ verifying class ]
ERROR: attribute verification of failed
pathname does not exist
[ verifying class ]
[ verifying class ]
## Executing postinstall script.

Installation of partially failed.
</pre>
</div>
<p>Even if the installation seems to fail the key consists of checking if the driver itself has been loaded:</p>
<div>
<pre>
$ modinfo
modinfo | grep cpq
 53 fffffffff79a6000  129f8 265   1  cpqary3 (HP Smart Array Driver Ver 2.2.0)
</pre>
</div>
<p>If <code>modinfo</code> shows a line like that it means the driver has been loaded and the OpenSolaris installer should see all the logical volumes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.felipe-alfaro.org/blog/2009/07/27/hp-proliant-dl180-g6-and-opensolaris-part-iv/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HP Proliant DL180 G6 and Solaris 10 (part III)</title>
		<link>http://www.felipe-alfaro.org/blog/2009/07/26/hp-proliant-dl180-g6-and-solaris-10-part-iii/</link>
		<comments>http://www.felipe-alfaro.org/blog/2009/07/26/hp-proliant-dl180-g6-and-solaris-10-part-iii/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 21:49:29 +0000</pubDate>
		<dc:creator>Felipe Alfaro Solana</dc:creator>
				<category><![CDATA[HP]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://www.felipe-alfaro.org/blog/?p=391</guid>
		<description><![CDATA[And now it is the time to try Solaris 10 on this HP machine. The first thing to take into account is that the HP SmartArray P212 controller requires a closed-source binary from HP that is not distributed in the Solaris media. The cpqary3 driver can be downloaded from the HP Web site, although it [...]]]></description>
			<content:encoded><![CDATA[<p>And now it is the time to try Solaris 10 on this HP machine. The first thing to take into account is that the HP SmartArray P212 controller requires a closed-source binary from HP that is not distributed in the Solaris media. The <code>cpqary3</code> driver can be downloaded from the HP Web site, although it is not very easy to find it out.</p>
<p>I downloaded the archived file for the <code>cpqary3</code> driver, extracted its contents and burnt the ISO file to a CD-RW. Then I booted from the Solaris 10 DVD and applied the driver update. However, this didn&#8217;t work very well. The Solaris 10 DVD uses a 32-bit kernel which, apparently, does not like my >1.5TB disks. When the <code>cpqary3</code> driver gets it prints a message to the console complaining that the detected disks have too many blocks for a 32-bit kernel. Very weird. I&#8217;m not entirely sure what a 32-bit kernel has to do with 64-bit LBA addressing but, so far, I haven&#8217;t been able to get Solaris 10 to recognize and get to like my disks.</p>
<p>So far, so good. VMware ESXi 4.0 didn&#8217;t work. Solaris 10 didn&#8217;t work either. Perhaps some of you, that are more experienced with Solaris than me, know how to fix this problem. In the mean time, I decided to take OpenSolaris for a spin. Fortunately, the final outcome with OpenSolaris has been a success. More on that later.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.felipe-alfaro.org/blog/2009/07/26/hp-proliant-dl180-g6-and-solaris-10-part-iii/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Anonymous FTP server under Solaris</title>
		<link>http://www.felipe-alfaro.org/blog/2008/08/11/anonymous-ftp-server-under-solaris/</link>
		<comments>http://www.felipe-alfaro.org/blog/2008/08/11/anonymous-ftp-server-under-solaris/#comments</comments>
		<pubDate>Sun, 10 Aug 2008 21:58:29 +0000</pubDate>
		<dc:creator>Felipe Alfaro Solana</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://www.felipe-alfaro.org/blog/?p=241</guid>
		<description><![CDATA[Setting up an anonymous FTP server under Solaris, when using the built-in in.ftpd daemon, is a little bit different than setting it up under GNU/Linux using WUftpd. First, let&#8217;s create the ftp user and ftp group. Then, let&#8217;s create the home directory for the ftp user: mkdir -p /export/home/ftp groupadd -g 99 ftp useradd -u [...]]]></description>
			<content:encoded><![CDATA[<p>Setting up an anonymous FTP server under Solaris, when using the built-in <code>in.ftpd</code> daemon, is a little bit different than setting it up under GNU/Linux using WUftpd.</p>
<p>First, let&#8217;s create the <code>ftp</code> user and <code>ftp</code> group. Then, let&#8217;s create the home directory for the <code>ftp</code> user:</p>
<div>
<pre>
mkdir -p /export/home/ftp
groupadd -g 99 ftp
useradd -u 99 -g 99 -s /bin/false -d /export/home/ftp
chgrp ftp:ftp /export/home/ftp
</pre>
</div>
<p>If you want anonymous users to upload files under <code>/pub</code>, add the following line to <code>/etc/ftpd/ftpaccess</code>:</p>
<div>
<pre>
upload          class=anonusers /export/home/ftp /pub yes ftp ftp 0600 nodirs
</pre>
</div>
<p>Next, copy the minimal set of dynamic libraries and binaries to make possible browse and list files for anonymous users:</p>
<div>
<pre>
mkdir -p ~ftp/bin
mkdir -p ~ftp/usr/bin
ln -s ../bin ~ftp/usr/bin
cp /usr/lib/{ld,libc,libdl,libgen}.so.1 ~ftp/usr/lib
cp /bin/ls ~ftp/bin
</pre>
</div>
<p>To enable the FTP server, uncomment the following line in <code>/etc/inetd.conf</code>:</p>
<div>
<pre>
ftp     stream  tcp6    nowait  root    /usr/sbin/in.ftpd       in.ftpd -a
</pre>
</div>
<p>and notify the <code>inetd</code> daemon of the change by sending the <code>HUP</code> signal to it:</p>
<div>
<pre>
pkill -1 inetd
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.felipe-alfaro.org/blog/2008/08/11/anonymous-ftp-server-under-solaris/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PCA &#8211; Patch Check Advanced</title>
		<link>http://www.felipe-alfaro.org/blog/2008/08/10/pca-patch-check-advanced/</link>
		<comments>http://www.felipe-alfaro.org/blog/2008/08/10/pca-patch-check-advanced/#comments</comments>
		<pubDate>Sun, 10 Aug 2008 02:38:32 +0000</pubDate>
		<dc:creator>Felipe Alfaro Solana</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Solaris Perl patches]]></category>

		<guid isPermaLink="false">http://www.felipe-alfaro.org/blog/?p=233</guid>
		<description><![CDATA[If you are in charge of administering Solaris machines, you might want to take a look at PCA &#8211; Patch Check Advanced. From its Web page: pca is a perl script which generates lists of installed and missing patches for Sun Solaris systems and optionally downloads and installs patches. By default, if run without any [...]]]></description>
			<content:encoded><![CDATA[<p>If you are in charge of administering Solaris machines, you might want to take a look at <a href="http://www.par.univie.ac.at/solaris/pca/usage.html">PCA &#8211; Patch Check Advanced</a>.</p>
<p>From its Web page:</p>
<blockquote><p>pca is a perl script which generates lists of installed and missing patches for Sun Solaris systems and optionally downloads and installs patches. By default, if run without any option or operand, pca shows a list of all patches which are not installed in their most recent revision.</p>
<p>The output of the pkginfo, showrev and uname commands is used to gather information about the system. Sun offers a patch cross-reference file called patchdiag.xref which contains information about all available patches. This file is downloaded by pca automatically to /var/tmp/ and kept up-to-date. If the file exists and is not writable, pca uses it and won&#8217;t try to update it.
</p></blockquote>
<p>The beauty of <code>pca</code> lies in its simplicity and effectiveness. I&#8217;ve always found Solaris patching procedures to be complicated, hard to automate and well beyond patching of GNU/Linux systems. Even Windows and Mac OS X systems are easier to patch than Solaris, in my opinion. I think that <code>pca</code> pretty much closes the gap. Kudos to Martin Paul for creating and maintaining <code>pca</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.felipe-alfaro.org/blog/2008/08/10/pca-patch-check-advanced/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

