Nov 19, 2009

Mercurial 1.4 local Installation

I've upgraded to mercurial 1.4. Mercurial is a distributed version control
system implemented mostly in python and some C modules.

You just have to extract the package downloaded.

To run the whole thing from where you extracted it, there is a special target
in the Makefile.

@echo '  local        - build for inplace usage'

If you go to the directory and make
gmake local 
All is built into the directroy. Just add the directory to your path so that
hg is found here first and the new version works.
This was no problem in OpenSolaris Build 127.

Nov 16, 2009

Mounting NFS drives from a Linux server on a AIX ( 5.3) NFS Client

In my post about AIX-NFS-LINUX, I wrote about setting the automounter to
mount NFS shares from a linux server, but I forgot one important fact to mention.

Per Default AIX can not mount the share because AIX is using very high ports,
the only solution is to change the Linux side.

In the epxorts you have to add the option
insecure
This option has to be added to /etc/exports on the linux side.

A
exportsf -ar 
reexports the file systems after adding the insecure option.

OpenSolaris Build 127 brought Presto back online.

Some time ago, the presto-Framework for autodetecting printers in the
network was broken.

When a network device became online, the process hald-addon-network-discovery ate all CPU ressources.

The solution do this was to
svcadm disable svc:/network/device-discovery/printers:snmp
disable the printer discovery service.

With Build 127, the service can be set active again:
svcadm enable svc:/network/device-discovery/printers:snmp
The Notification windows for printers appear again on the screen.

Nov 15, 2009

Upgraded to OpenSolaris Build 126 from Build 127

Last day I upgraded to OpenSolaris Build 127.
The announcement is here.


The install log from
pkg image-update --be-name OSOL_127

root@solewer:~# pkg image-update --be-name OSOL_127
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                              1098/1098 22101/22101  641.6/641.6

PHASE                                        ACTIONS
Removal Phase                            13458/13458
Install Phase                            14207/14207
Update Phase                             28016/28016
PHASE                                          ITEMS
Reading Existing Index                           8/8
Indexing Packages                          1098/1098
Optimizing Index...
PHASE                                          ITEMS
Indexing Packages                          1314/1314
pkg: unable to unmount /tmp/tmp_d6GAc
Deleting content cache

---------------------------------------------------------------------------
NOTE: Please review release notes posted at:

http://opensolaris.org/os/project/indiana/resources/relnotes/200906/x86/
---------------------------------------------------------------------------
 


Boot today showed a message  from the fault management system.
Inspecting the messages seems to be repaired.


[ewer@solewer:~]$fmdump
TIME                 UUID                                 SUNW-MSG-I
Nov 15 10:28:01.6033 e84428f9-89ec-c927-f848-ff38a7f43e66 FMD-8000-4M Repaired
Nov 15 10:28:01.9011 e84428f9-89ec-c927-f848-ff38a7f43e66 FMD-8000-6U Resolved
 

[ewer@solewer:~]$fmdump -v -u e84428f9-89ec-c927-f848-ff38a7f43e66
TIME                 UUID                                 SUNW-MSG-ID
May 12 2009 07:54:33 e84428f9-89ec-c927-f848-ff38a7f43e66 ZFS-8000-GH
  100%  fault.fs.zfs.vdev.checksum

        Problem in: zfs://pool=rpool/vdev=c05f8c6068c14723
           Affects: zfs://pool=rpool/vdev=c05f8c6068c14723
               FRU: -
          Location: -

Nov 15 10:28:01.6033 e84428f9-89ec-c927-f848-ff38a7f43e66 FMD-8000-4M Repaired
  100%  fault.fs.zfs.vdev.checksum    Repair Attempted

        Problem in: zfs://pool=rpool/vdev=c05f8c6068c14723
           Affects: zfs://pool=rpool/vdev=c05f8c6068c14723
               FRU: -
          Location: -

Nov 15 10:28:01.9011 e84428f9-89ec-c927-f848-ff38a7f43e66 FMD-8000-6U Resolved
  100%  fault.fs.zfs.vdev.checksum    Repair Attempted

        Problem in: zfs://pool=rpool/vdev=c05f8c6068c14723
           Affects: zfs://pool=rpool/vdev=c05f8c6068c14723
               FRU: -
          Location: -

Seems as the problem is resolved automatically.

Also a zpool status doesn't show the problems about missing files, which I
had a long time now.

Nov 13, 2009

Using nautilus in OpenSolaris to navigate on remote filesystems

Currently I'm working a lot on remote Solaris server.
So I have to copy files to them and so on.

Nautilus in OpenSolaris supports the navigation on remote systems with a lot of

protocols:
  • ssh
  • ftp ( with login )
  • ftp with login
  • windows share
  • web dav ( http )
  • secure web dav ( https )
Form my communication between OpenSolaris and Solaris systems, I use ssh
( which than uses the sftp extension to ssh ).

First you have to connect to the system via File->Connect to Server.


Just insert the data to connect and you have the remote file system in view:



In the address bar you can see the sftp- line.

The standard functions work. You can copy files between the systems like on a
local filesystem, or remove them and so on.

Nov 12, 2009

Creating SQL Data script from a table within SquirrelSQL.

To access a database, I'm using the SQuirreL-SQL-Tool. It's available on
sourceforge and supports all necessary functions I need.

The IDE supports a function to create Insert-Statements from the whole table.

To do this,
  • open the Object-Tree 
  • select the table you like
  • press the right mouse button to get the context menu
  • go to scripts
  • and select Create Data Script

So for my purpose, this is to much data, I will get, because I like to transfere
just one row of data.

This is also possible, but not as easy to find:

Go into the SQL Editor and write down your select statement.

Put the cursor on your statement and press -t.
This opens a correction window, where you use sql2ins. This
creates your insert-statement with the data from the rows returned by
your previously entered select statement.


This screenshot shows an already inserted insert-Statement from before and
the popup narrowed down to sql2ins which you get by pressing -t.

It is described in the HELP of SQuirreL in the section "SQL Scripts Plugin".

Nov 9, 2009

Deployment of Axis2 1.5.1 fails on a JBoss 5.1.0 GA on Solaris 10 with JDK 1.6.0

When trying to deploy the axis2.war archive of version 1.5.1 if fails with
errors. The admin-console shows NullPointerExceptions.

The log files shows an error that a SAX parser could not be created:

"Failed to create a new SAX parser".


Found the solution at:

https://jira.jboss.org/jira/browse/JBAPACHE-10.

You have to extract the war archive and remove from WEB-INF/lib:
xml-apis* and xercesImpl*
After this repackage with
jar -cf ../axis2.war .

This new archive is deployable via the /admin-console access of 
JBoss 5.1.0 GA.

I had troubles because of previous attempts. Restarting JBoss solved this.

Nov 6, 2009

Chime DTrace-GUI Tool has error for Zone CPU Usage

Chime is a java program which leverages DTrace  and presents the data
in a GUI.
I downloaded the OSOLChime-Package in Version 1.4.44

On my OpenSolaris Build 126-System. the "Zone CPU Usage" in the Categroy
"Zones" shows just an error:



Running the same version on a Solaris 10 system doesn't issue this error.

Nov 5, 2009

JBoss 5.1.0 GA failed to start on Solaris 10 with JDK 1.6.0_14

Today I installed a zone on a Solaris 10 system.
In this zone I have JDK 1.6.0_14 and JBoss 5.1.0 GA installed.
The first start of the jboss failed with the following message:

java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[java.net.URI] actual=[java.io.File]

The solution can be found here
After processing the profile.xml  in server/[minimal|default]/conf/bootstrap
JBoss starts.

soapUI can also run on [Open]Solaris, despite there are only linux/Windows/Mac packages

soapUI is a nice Tool for WebServices in a free and Pro version and also as
WebStart Package available.

The WebStart Package installs on my OpenSolaris-Box, and runs. The Problem
I experience is with the change of the network environment, so it takes in same cases a long time to start.

Today I installed the linux-Package on my brandz-Zone and transfered the
installation back to the OpenSolaris  global Zone. Because of the
soapui.sh Script it is necessary to use a bash because of the coding.

The copied installation runs without problems, also there are some lib's which
are only for linux .

The same thing is also copied on a Sun Fire T1000 and also there the tool
runs.

Nov 3, 2009

OpenSolaris Visual-Panels and firewall-Panel in Build 126

In my current installation ( a lot of upgrades from previous dev-Builds ),
I couldn't start with
vp mysql
This  led to a screen which requested a login.

I found that I didn't have the service

svc:/application/management/common-agent-container-1:default
on my system.

I deleted the packages from the Visual Panels and the
SUNWcacaodtrace
SUNWcacaort
SUNWcacaowsvr

and reinstalled them. After a reboot, the common-agent-container-1 was back
again and I can start the mysql, apache, sysid panels, but the
firewall-Panel give's an error: