Sep 30, 2009

AIX as NFS/NIS client against an linux server

This days I'm a deported Solaris User. :-(

We got a p520 with AIX 5.3.
The Installation with an IBM technician took a lot of time.
The Virtual IO Server was attempted to first install. This would be the base to
allow partitioning and using multiple systems.
The problem here was, that the Virtual IO Server could have a telnet connection
over the LAN interface, but ssh and https connections just stall.

  • NIS
The NIS integration was easy. Just use
smitty ypconfigure
  •  autonount
 The automounter is configured like on other systems with auto_master.
Therefore see the man page for
man automount

Here I've the mount maps distributed over NIS. But the names in NIS are
auto.master.

Therefore in the local files you need e.g  +auto.master in the /etc/auto_master.
My mistake was to  use an /etc/auto.master.

# cat auto_master
+auto.master
/-      /etc/auto.direct
root@aix:/etc
# cat auto_direct
+auto.direct
root@aix:/etc
#



But /etc/rc.nfs only starts the automounter if an /etc/auto_master exists.




  • remote login.
This took some time. I tested with my user account. Tried a lot of settings
in /etc/security but I could not login on.
Till I found a message that AIX does not support MD5 passwords.
A whole lot of users had "standard" passwords, but my user had a MD5 hash password.
After converting my password back, I even could login into the AIX box with
ssh/telnet.

Sep 23, 2009

Installingg Solaris 10 Update 7 x86 in a VMWare Machine with 64 bit.

Today I tried to install a Solaris 10 Update 7 x86 version in a VMWare environment.
The Host was a Windows 2003 Server running in 64Bit Mode on a QuadCore
Xeon System.
After installing an rebooting the Solaris-System, it still booted into 32-Bit mode.

The solution was found in the BIOS of the Hostsystem. There was the
virtualization support disabled.
After enabling the virtualization support in the BIOS, and booting the installed
Solaris 10 VMWare image, the installation booted into a 64bit mode without any
intervention. 

Printer Discovery in OpenSolaris 123 failes - hald-addon-network-discovery has high CPU usage

During the update from Build 118 the process hald-addon-network-discovery
produces a high CPU load when the network is activated.

The service
svc:/network/device-discovery/printers:snmp
fails into maintenance.

This services is for the Discovery of printers on the network via SNMP, but
it calls a function not available.

The log of printers:snmp-Service contains the following entry:

usr/bin/dbus-send --system --print-reply --dest=org.freedesktop.Hal --type=method_call /org/freedesktop/Hal/devices/network_attached org.freedesktop.Hal.Device.NetworkDiscovery.EnablePrinterScanningViaSNMP int32:60 string:public string:0.0.0.0
Error org.freedesktop.DBus.Error.UnknownMethod: Method "EnablePrinterScanningViaSNMP" with signature "iss" on interface "org.freedesktop.Hal.Device.NetworkDiscovery" doesn't exist


When disabling the service with
svcadm disable printers:snmp

the high load of the CPU does not occur.

A message thread on OpenSolaris is here and the Bug.

Sep 22, 2009

Getting Things Done - Thinking Rock

Some months ago, I read the book "Getting Things Done" from David Allen.
There is also a Software application build on the Netbeans Platform.
The Application is called "Thinking Rock"

A short description can be found on Wikipedia.

I'm using this application to collect my things, but I was missing to see
actions, which should happen some days in the future. I saw only
the actions for the current day.

When you view the Actions, there is a toolbar with a filter.
You can edit the filter.
Select the "Action date <= " and set the value to e.g "One week".
so you see all actions one week before the occur.


Sep 19, 2009

Upgraded to OpenSolaris Build 123 from Build 122

Today I upgraded to Build 123 on my Laptop.

Here's the screenshot of the upgrade:

















The upgrade was without any problems. Since th setting of PKG_CLIENT_TIMEOUT to 900, the update runs without interruption.
Before I knew about this environment variable it happened, that and upgrade
must be started several times.

The boot issued some error message in Build 123

Sep 19 14:13:52 solewer pseudo: [ID 233968 kern.notice] pseudo0: invalid op (6) from tpm0
Sep 19 14:13:52 solewer tpm: [ID 647609 kern.warning] WARNING: tpm_attach: tpm failed to attach
Sep 19 14:14:12 solewer pseudo: [ID 233968 kern.notice] pseudo0: invalid op (6) from tpm0
Sep 19 14:14:12 solewer tpm: [ID 647609 kern.warning] WARNING: tpm_attach: tpm failed to attach
Sep 19 14:14:24 solewer pseudo: [ID 233968 kern.notice] pseudo0: invalid op (6) from tpm0
Sep 19 14:14:24 solewer tpm: [ID 647609 kern.warning] WARNING: tpm_attach: tpm failed to attach

As stated in this message from Build 123, they can be ignored.

 hald-addon-network-discovery still uses a lot of CPU when the network is
activated with inetmenu.

Sep 17, 2009

screen to simulate multiple shells in one terminal

Screen is a multi terminal emulator.
The Package from the dev-Repository for OpenSolaris is here:
http://pkg.opensolaris.org/dev/p5i/0/SUNWscreen.p5i.

You start in a terminal the executeable "screen".


After starting, a welcome-screen is visible.


  • As you can see, every session can be named by the Sequence ---
  • An active screen-session can be detached with --

  • Listening screen sessions is done with screen -ls
  • and resumed with screen -r


As long as the server is not rebooted, the sessions are running. You can even
log out and login later on and the sessions are still active.

Kardinalschnitte

Coffee Cream Cake

Sep 11, 2009

beadm destroy worked for me in Build 122

After cleanup of the IPS Cache as described here, I still had the 11G used in a snapshot for
a previous build, so I had to destroy the previous boot environment.

beadm destroy Build_118

worked for me without a problem. There were no error messages about not
being able to delete a ZFS snapshot as described in the update to Build 121.

Now the 11G are back for usage.

Sep 10, 2009

IPS cache uses a lot of disk space in OpenSolaris

During the last time a struggled around to get disk space. There are about 6 GB free and
the automatic-snapshot ( TimeSlider ) feature complains about short disk space and
removes snapshots.

Today I read an interesting blog entry at The Observatory about an IPS cache.
IPS is the Image Packaging System of OpenSolaris.
The system downloads the packages and updates from the Repository and stores them locally
to apply them to the system.

As stated in the articel I looked today into the download -Section.

After hours of running:

bash-3.2$ du -hs .
11G .
bash-3.2$ pwd
/var/pkg/download
So I will try to disable the local caching as described with

bash-3.2$ pfexec pkg set-property flush-content-cache-on-success true
bash-3.2$ pkg property
PROPERTY VALUE
send-uuid False
preferred-publisher opensolaris.org
require-optional False
flush-content-cache-on-success true
display-copyrights True
pursue-latest True
During the next repository action, storage should come back. -- Attention for snapshots in
other bootenvironments.

see
beadm list -a

Sep 8, 2009

How to get the date, when an account expires, when you just know the days from the expire field?

"usermod -e" can set an expire date according to the format defined in /etc/datemsk.

In /etc/shadow this is expressed in the expire field:
see the extract from the man page:

expire An absolute date expressed as the number of days
since the Unix Epoch (January 1, 1970). When
this number is reached the login can no longer
be used. For example, an expire value of 13514


To know when this is you can use python:
>>> import datetime
>>> d0=datetime.datetime(1970,1,1)
>>> delta=datetime.timedelta( days=14481 )
>>> d0+delta
datetime.datetime(2009, 8, 25, 0, 0)
or to calculate the days:

>>> d=datetime.datetime.now()
>>> (d-d0).days
14495
Python is a wonderful thing for calculation with dates.

Sep 5, 2009

MPlayer from Multimedia Repository for OpenSolaris

Today I installed some apcakgess from the new Multimedia repository ips.homeunix.com:
The older one was LifeWithSolaris, they had to close the respository because of
license reasons.


ips.homeunix.com origin online http://ips.homeunix.com:10906/

Many thanks to the people behind that site. I installed some apps from there, to get more
multimedia apps on my desktop.

mplayer works fine.

Upgraded Laptop to OpenSolaris Build 122

During the last night, I upgraded to Dev-Build 122 of OpenSolaris. See the Announcement for more
information.

root@solewer:~# pkg image-update --be-name OpenSolaris_Build122
DOWNLOAD PKGS FILES XFER (MB)
Completed 1058/1058 15967/15967 587.0/587.0
After rebooting everything is works so far.

The Problem with the TK-Package is solved now. I can start secpanel without any
problems.

hg view ( by using hgk ) works now again.

Sound works in the global zone. In the brandz-Zone using CentOS 5 and skype 2.x, skype reports no available sound devices.

hald-addon-network-discovery still runs in a very high cpu usage, after network connection is established with inetmenu.

Sep 2, 2009

editing XML files in netbeans, which use XML Schema description

During the development I have to edit XML files, which are based on an xml schema description

There is a code like :


To get Code-Completion in Netbeans you have to add the reference to the
correct schema.

In the IDE-Menu go to Tools->DTDs and XML Schemas.
In the window go to "User Catalog" and press "Add Local DTD or Schema"





Now in the System-ID enter "http://xxx.xxx/a/b/" and for the
URI field select the xsd-Schema file.

After this you can hit the Code-Completion-Shortcut and
you get help.


Sep 1, 2009

Tk is still broken in OpenSolaris Build 121

The Tk-Package in the Build 121-Dev-Repository is still broken:

bash-3.2$ /usr/local/bin/secpanel
Application initialization failed: Can't find a usable tk.tcl in the following directories:
/usr/lib/tcl8.4/tk8.4 /usr/lib/tk8.4 /lib/tk8.4 /usr/library /library /tk8.4.18/library

/usr/lib/tk8.4/tk.tcl: no event type or button # or keysym
no event type or button # or keysym
while executing
"bind Listbox {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox {
%W yview scroll [expr {- (%D)}] uni..."
(file "/usr/lib/tk8.4/listbox.tcl" line 181)
invoked from within
"source /usr/lib/tk8.4/listbox.tcl"
(in namespace eval "::" script line 1)
invoked from within
"namespace eval :: [list source [file join $::tk_library $file.tcl]]"
(procedure "SourceLibFile" line 2)
invoked from within
"SourceLibFile listbox"
(in namespace eval "::tk" script line 4)
invoked from within
"namespace eval ::tk {
SourceLibFile button
SourceLibFile entry
SourceLibFile listbox
SourceLibFile menu
SourceLibFile panedwindow
SourceLibFile ..."
invoked from within
"if {$::tk_library ne ""} {
if {$tcl_platform(platform) eq "macintosh"} {
proc ::tk::SourceLibFile {file} {
if {[catch {
namespace eval :: ..."
(file "/usr/lib/tk8.4/tk.tcl" line 407)
invoked from within
"source /usr/lib/tk8.4/tk.tcl"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list source $file]"


This probably means that tk wasn't installed properly.

Upgraded to OpenSolaris Build 121 from Build 118

During this night, I upgraded to Build 121 of OpenSolaris from the dev repository.


I got only one message ( executed pfexec pkg refresh --full before)

I also set the Timeout with the environment variable
PKG_CLIENT_TIMEOUT=900

to 15 minutes, therefore the image-update didn't break, ( which was the case during
the updates of previous builds ).
bash-3.2$ pfexec pkg image-update --be-name OpenSolaris_Build_121
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.
bash-3.2$ pfexec pkg install SUNWipkg
DOWNLOAD PKGS FILES XFER (MB)
Completed 2/2 166/166 0.8/0.8

PHASE ACTIONS
Removal Phase 25/25
Install Phase 29/29
Update Phase 193/193
PHASE ITEMS
Reading Existing Index 8/8
Indexing Packages 2/2
bash-3.2$ pfexec pkg image-update --be-name OpenSolaris_Build_121
DOWNLOAD PKGS FILES XFER (MB)
Completed 1075/1075 28022/28022 1031.3/1031.3

PHASE ACTIONS
Removal Phase 6483/15286
Warning - directory usr/share/virt-manager/vncViewer not empty - contents preserved in /tmp/tmpHzrC-M/var/pkg/lost+found/usr/share/virt-manager/vncViewer-20090901T000029Z
Removal Phase 8858/15286
Warning - directory etc/sma/snmp/mibs not empty - contents preserved in /tmp/tmpHzrC-M/var/pkg/lost+found/etc/sma/snmp/mibs-20090901T000033Z
Removal Phase 15286/15286
Install Phase 15517/15587 The 'pcieb' driver shares the alias 'pciexclass,060400' with the 'pcie_pci'
driver, but the system cannot determine how the latter was delivered.
Its entry on line 2 in /etc/driver_aliases has been commented
out. If this driver is no longer needed, it may be removed by booting
into the 'OpenSolaris_Build_121' boot environment and invoking 'rem_drv pcie_pci'
as well as removing line 2 from /etc/driver_aliases or, before
rebooting, mounting the 'OpenSolaris_Build_121' boot environment and running
'rem_drv -b pcie_pci' and removing line 2 from
/etc/driver_aliases.
The 'pcieb' driver shares the alias 'pciexclass,060401' with the 'pcie_pci'
driver, but the system cannot determine how the latter was delivered.
Its entry on line 3 in /etc/driver_aliases has been commented
out. If this driver is no longer needed, it may be removed by booting
into the 'OpenSolaris_Build_121' boot environment and invoking 'rem_drv pcie_pci'
as well as removing line 3 from /etc/driver_aliases or, before
rebooting, mounting the 'OpenSolaris_Build_121' boot environment and running
'rem_drv -b pcie_pci' and removing line 3 from
/etc/driver_aliases.
Install Phase 15587/15587
Update Phase 31776/31776
PHASE ITEMS
Reading Existing Index 8/8
Indexing Packages 1075/1075
Optimizing Index...
PHASE ITEMS
Indexing Packages 1265/1265

A clone of Build_118 exists and has been updated and activated.
On the next boot the Boot Environment OpenSolaris_Build_121 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/relnotes/200906/x86/
---------------------------------------------------------------------------

The message I got can be ignored as described in the announcement.


During the running I got a very busy CPU. prstat showed:


524 root 6260K 4300K run 41 0 0:05:02 95% hald-addon-netw/1

After killing everything is fine now. I configure the network with inetmenu.
It doesn't matter if I use the rtls or ipw interface.

591: I n v a l i d a r g u m e n t
591: write(2, "\n", 1) = 1
591: write(2, 0x080562B0, 13) = 13
591: s e l e c t f a i l e d
591: write(2, " : ", 2) = 2
591: write(2, 0xCEB265D5, 16) = 16
591: I n v a l i d a r g u m e n t
591: write(2, "\n", 1) = 1
591: write(2, 0x080562B0, 13) = 13
591: s e l e c t f a i l e d
591: write(2, " : ", 2) = 2
591: write(2, 0xCEB265D5, 16) = 16
591: I n v a l i d a r g u m e n t
591: write(2, "\n", 1) = 1
This repeats permanently on my system.

Sound on the host system works, even when skype runs in a branded Zone, which didn't
work on Build 118. But skype doesn't have an audio device, so there is no sound from skype.