Wednesday, September 2, 2009

Building your own EON ZFS NAS binary kit

If you wish to build your own binary kit discussed here, a working SXCE opensolaris system and the matching EON snv_xxx DVD/iso are needed. So for eon-0.592-119-xxx-xxx.iso one would need the snv_119 dvd/iso. The current binary kit is built using the following package list bin-pkg.list
SUNWopenssl-commands
SUNWwgetu
SUNWless
SUNWzip
SUNWunzip
SUNWtop
SUNWpowertop
# rmformat + dep
SUNWsmedia
SUNWrmvolmgr
# 7z + dep
SUNWlibC
SUNWbzip
SUNWp7zip
# scanpci
SUNWpciaccess
Then using the script binpkg.sh, custom binaries can be added.
PATH=/usr/bin:/usr/sbin
LOC=`pwd`
CDROM=/cdrom/cdrom0
PROD=$CDROM/Solaris_11/Product
BINKIT=/tmp/binkit
LIST=$LOC/bin-pkg.list

[ "X$1" != "X" ] && LIST=$1
for pkg in `grep -v "^#" $LIST`
do
cd $PROD ; pkgadd -d . -R $BINKIT $pkg
#sleep 5
done
Finally tar-ing and gzip-ing the (bin, sbin, lib, etc, share) directories in /tmp/binkit/usr and uploading them to /pool you have a working recipe for adding binaries from SXCE packages. Of course, this same method and package list will work using the IPS method but it would also add all the dependencies making it much larger. My main issue with IPS is not being able to override installing dependencies when using IPS to install packages.

There are limitations with packages that rely on isaexec to fork the respective matching 32 or 64-bit versions of the binary because you cannot hard link across different partitions. The workaround for now is to symlink the binary to the matching i86(32-bit).
cd /usr/local/bin
ln -s ./i86/top top
ln -s ./i86/powertop powertop
or amd64(64-bit) version
ln -s ./amd64/top top
ln -s ./amd64/powertop powertop

6 comments:

Joe said...

What are you plans for EON once SXCE is EOL'd?

Andre Lue said...

Joe,

I am really disappointed with this decision to EOL SXCE. I have many short comings with IPS. Yes, SXCE has its problems but honestly they are more workable vs the shortfalls with IPS.

I have a todo to look an IPS version until then we have road to at least snv_123. We can also hope for a reverse on this EOL decision even though the chances look slim.

We will see where the IPS journey takes us ...

Andre Lue said...

Here's a thread where you can read more on this.

Henrik said...

I guess the EOL of SXCE is really close now? What is going to happen with EON?

Andre Lue said...

Henrik,

The plan is the continue on the road with opensolaris beyond SXCE and see how stability and IPS packaging develops.

David said...

I'm trying to compile the latest version of gluster on eon. It seems very difficul to work with Solaris.. The URL http://www.sunfreepacks.com/# is providing a broken link for http://cdc.sunfreepacks.com/mirror/os/sol-nv-b130-x86-dvd.iso so I just could even start. If anyone has a more recent glusterfs version, please let me know :-(