Sep 23, 2008

Updated OpenSolaris - Laptop to SNV_98

Now I upgraded to SNV_98 on my OpenSolaris-Laptop.

During the upgrade I got an error because the ROOT-ZFS was not the last one,
I booted. Seem's as if there was a problem during the last update.
So I booted the system witht the last boot-environment which was the source
( used the most space on the filesystem ) and deleted the later created
environments with
beadm destroy


After this a refresh was executed and the SUNWipkg package was updated.

pfexec pkg refresh
pfexec pkg install SUNWipkg@0.5.11-0.97
pfexec pkg image-update

and the system worked again:

ewer@solewer:~/Desktop$ beadm list
BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
opensolaris - - 73.32M static 2008-08-05 21:14
opensolaris-1 - - 74.15M static 2008-08-05 23:03
opensolaris-2 - - 76.98M static 2008-08-23 19:28
opensolaris-3 - - 184.72M static 2008-09-05 19:36
opensolaris-4 - - 118.5K static 2008-09-07 18:36
opensolaris-5 - - 22.34M static 2008-09-12 18:58
opensolaris-6 - - 1.10M static 2008-09-22 09:40
opensolaris-7 NR / 13.60G static 2008-09-22 12:17
This is a greate advantage compared to the live upgrade system available
in former solaris releases. The live upgrade worked also like a charme, but it
really needed another installation of the system with the whole disk space.
Here you can see that 8 different systems are installed.

Sep 12, 2008

Audio on OpenSolaris SNV_97 and VirtualBox is working !!!

Suprisingly found out, that the audio is working on my OpenSuSE installation in Virtualbox 2.0
under OpenSolaris SNV_97 with
SolarisAudio
ICH AC97 as AudioController.


Didn't work until now.

Upgraded to OpenSolaris SNV_97

Today I upgraded the OpenSolaris Installation to SNV_97.

Here is the log:

pfexec pkg image-updateewer@solewer:~/Desktop$ pfexec pkg image-update
Checking that SUNWipkg (in '/') is up to date...
WARNING: pkg(5) appears to be out of date, and should be updated before
running image-update.

Please update pkg(5) using 'pfexec pkg install SUNWipkg' and then retry
the image-update.
ewer@solewer:~/Desktop$ pfexec pkg install SUNWipkg@0.5.11-0.96
DOWNLOAD PKGS FILES XFER (MB)
Completed 1/1 88/88 0.31/0.31

PHASE ACTIONS
Removal Phase 4/4
Install Phase 5/5
Update Phase 150/150
PHASE ITEMS
Reading Existing Index 8/8
Indexing Packages 1/1
ewer@solewer:~/Desktop$ pfexec pkg image-update
Checking that SUNWipkg (in '/') is up to date...
DOWNLOAD PKGS FILES XFER (MB)
Completed 612/612 9458/9458 225.05/225.05

PHASE ACTIONS
Removal Phase 2942/2942
Install Phase 3558/3558
Update Phase 16797/16797
PHASE ITEMS
Reading Existing Index 8/8
Indexing Packages 1225/1225
A clone of opensolaris-3 exists and has been updated and activated. On next boot the Boot Environment opensolaris-5 will be mounted on '/'. Reboot when ready to switch to this updated BE.

---------------------------------------------------------------------------
NOTE: Please review release notes posted at:
http://opensolaris.org/os/project/indiana/resources/rn3/
---------------------------------------------------------------------------

ewer@solewer:~/Desktop$
And here is the screenshot of the running system:


Here you can see the running skype on a CentOS 5 installation in a branded zone.
Also the OpenSuSE 11 running in VirtualBox 2.0 is available.

Sep 11, 2008

moving laptop with OpenSolaris and NFS mounts

On my laptop I have some directories, e.g sdk mount via NFS from a central NFS server
still based on Linux ( will be replaced with a Solaris 10 x86 installation sometime later, when I find time).

I have defined a direct map ( see the man page for automount ).

For the server you mount from, you can supply a weight which server will win for the
mount request. They weigth is supplied in parenthesis, where 0 is highest priority.
When no weight is supplied, 0 is default.

Here's an example from the man page for an indirect map:
man -ro alpha:/usr/man bravo,charlie(1):/usr/share/man
delta(3):/export/man



The mount order is from alpha, bravo, charlie or delta.

For my situation I have a local copy of the parts in sdk I need for compiling,
which are mounted, when the local NFS server is not available.
So there is not need to change directorys for compiling regardless if I have the
NFS drives available or not.

Sep 10, 2008

binding RPC communication socket to a specific interface

I faced the problem, that a background daemon process needed to communication with an
external tool via RPC-calls.

The problem at the customer site is, that the daemon executes on a server which runs
in a cluster and gets a dynamic interface. So the outgoing traffic must be from the dynamic interface. This is necessary for the firewall, to have all packets on the network the
same origin adress.

The clnttcp_create() allows to supply a filedescriptor.
Now it is possible to create a socket and bind it to a specific interface.

After starting and tracing with truss, it shows, that the portmap-Call to port 111
is done via the default interface and not the binding interface.

After searching for the librcpsoc-Source on opensolaris for clnttcp_create, it is
known that without a target port the lib creates an own connection to the portmapper
to request the port number on the remote system.

The open point is now, that the RPC-server should be bound to a fixed port, which I have to
verify now.

Sep 7, 2008

Sanyo Xacti Digital Camera recognized by OpenSolaris

Today I took photos of the rabbits of our children with our digital camera Sanyo Xacti VPC-J1EX.

Now to upload the images I started OpenSolaris SNV_96.
Plugged in the USB cable of the camera and it worked.

Sep 7 18:15:06 solewer usba: [ID 912658 kern.info] USB 1.10 device (usb474,213) operating at full speed (USB 1.x) on USB 1.10 root hub: storage@1, scsa2usb2 at bus address 2
Sep 7 18:15:06 solewer usba: [ID 349649 kern.info] SANYO Digital Camera 000066952653
Sep 7 18:15:06 solewer genunix: [ID 936769 kern.info] scsa2usb2 is /pci@0,0/pci10cf,11ab@1d/storage@1
Sep 7 18:15:06 solewer genunix: [ID 408114 kern.info] /pci@0,0/pci10cf,11ab@1d/storage@1 (scsa2usb2) online
Sep 7 18:15:06 solewer scsi: [ID 193665 kern.info] sd3 at scsa2usb2: target 0 lun 0
Sep 7 18:15:06 solewer genunix: [ID 936769 kern.info] sd3 is /pci@0,0/pci10cf,11ab@1d/storage@1/disk@0,0
Sep 7 18:15:06 solewer genunix: [ID 408114 kern.info] /pci@0,0/pci10cf,11ab@1d/storage@1/disk@0,0 (sd3) online
Sep 7 18:15:06 solewer genunix: [ID 314293 kern.info] device pciclass,030000@2(display#0) keeps up device sd@0,0(disk#3), but the latter is not power managed
The file browser put a icon on the desktop and the images could be
copied from the digital camera

Today the rabbits for our children arrived.

Today my children got their rabbits.

Sep 6, 2008

installed new VirtualBox 2.0 on OpenSolaris SNV_96

After upgrading the OpenSolaris installation to SNV_96 yesterday, I read about the new versio 2.0
of VirtualBox.

I downloaded the new Version from here,
Removed the old version

pkgrm SUNWvboxkern
pkgrm SUNWvbox

and installed the new one after uncompressing und untaring
with

pkgadd -d ./


After installation, I configured to use nearly 1 GB main memory instead of the 600MB I used before.

Now the VirtualMachine with OpenSuse 11.0 boots smoothly.

During booting I checked with prstat the usage of my single core CPU laptop and it was around 50 to 60%

It is also no problem to use it, because this blog entry was writting with firefox in the virtualbox.

Sep 5, 2008

Upgraded notebook to OpenSolaris Build SNV_96 via ips-package system

This evening I upgraded my notebook to the next development release
SNV_96 of OpenSolaris.

ewer@solewer:/var/adm$ BUILD=`uname -v | sed s/snv_//`
ewer@solewer:/var/adm$ pfexec pkg refresh
ewer@solewer:/var/adm$ pfexec pkg install SUNWipkg@0.5.11-0.${BUILD}

pfexec pkg install entire@0.5.11-0.${BUILD}

DOWNLOAD PKGS FILES XFER (MB)
Completed 2/2 122/122 1.32/1.32

PHASE ACTIONS
Removal Phase 3/3
Update Phase 165/165
Install Phase 31/31
PHASE ITEMS
Reading Existing Index 8/8
Indexing Packages 2/2
ewer@solewer:/var/adm$
ewer@solewer:/var/adm$ pfexec pkg install entire@0.5.11-0.${BUILD}
echo ${BUILD}
Nothing to install in this image (is this package already installed?)
ewer@solewer:/var/adm$
ewer@solewer:/var/adm$ echo ${BUILD}
95
"update.log" 55 lines, 2621 characters
ewer@solewer:/var/adm$ pfexec pkg image-update
Checking that SUNWipkg (in '/') is up to date...
DOWNLOAD PKGS FILES XFER (MB)
Completed 597/597 5154/5154 158.70/158.70

PHASE ACTIONS
Removal Phase 3007/3007
Install Phase 2954/2954
Update Phase 90085/90085
PHASE ITEMS
Reading Existing Index 8/8
Indexing Packages 597/597
A clone of opensolaris-2 exists and has been updated and activated. On next boot the Boot Environment opensolaris-3 will be mounted on '/'. Reboot when ready to switch to this updated BE.

---------------------------------------------------------------------------
NOTE: Please review release notes posted at:
http://opensolaris.org/os/project/indiana/resources/rn3/
---------------------------------------------------------------------------


ewer@solewer:/var/adm$ beadm list

BE Active Active on Mountpoint Space
Name reboot Used
---- ------ --------- ---------- -----
opensolaris no no - 73.32M
opensolaris-1 no no - 74.07M
opensolaris-2 yes no / 20.90M
opensolaris-3 no yes - 8.79G
And after the reboot you see:





The system has rebooted to the new version without any
problems.

editing files in jEdit from remote servers

Here we are working on a SunRay and a Laptop beside. So the screen on the SunRay is a
19" LCD monitor.

Because of the usage of WebSphere on the Laptop running on Windows XP, also the log
files were on the laptop.
One way would be to copy the logfile and edit, but when using jEdit, you have the FTP-Plugin
which supports editing via FTP/SFTP, also the file system browsing via the SFTP connection
is supported.

On the windows platform I'm using freesshd to get access via the FTP-Plugin.

We are using jEdit, because it has a simple model to extend syntax highlighting and with the
Outline/SideKick-Plugins you can also build a syntax tree to simplify navigation.

Sep 4, 2008

Tennis racket cake


Eine Geburtstagstorte,
A Birthday cake.

Sep 1, 2008

Solaris Application Programming

I have finished reading Solaris Application Programming.

The content goes very deeply into the area of performance optimization of C/C++ and
Fortran programs using the Solaris onboard tools and compiler. This book is definitely not for
beginners, because this will be disappointing for programming starters.
But it is a valuable book, which experienced programms should have beside their desk.