h3x.no

Tor Henning Ueland`s thoughts about technology and other stuff

Archive for March, 2009

One possible solution for Glassfish cluster node-agent startup problems

without comments

Just a quick hint for those of you who are experiencing problem with getting node-agents up and running in a Glassfish cluster.

If the problem is that the asadmin start-agent command simply times out/uses a long time to start, and even possibly returning a filenotfoundexception. The problem could be as simple as a firewall blocking traffic to/from the master-node. A quick way to check it is to simply disable the FW.

Note that if the master-node does not see the node-agent status, it is also caused by FW-issues, fix the FW and then restart the node-agent(s), then it all should work like a charm!

Written by Tor Henning Ueland

March 21st, 2009 at 4:19 am

SysRq-reboot macro for Blackbox KVM software

without comments

A nice way of rebooting a frozen Linux-based server when you do not have a power switch available is to use the SysRq-abilities. (Ubuntu Example.) Blackbox does not have a default macro installed for just that, but you can create a new macro and insert the following:

“<Alt-PRESS><Print Screen><Alt-RELEASE>RSEIUB”

This will create a working macro for writing any data in cache to disk, kill all processes (Sigkill), remount mounted disks and perform a reboot.

Written by Tor Henning Ueland

March 15th, 2009 at 7:50 pm

Posted in Linux

Tagged with , ,

How to fix that stupid backspace in Vim on SLES

with one comment

Sometimes the backspace button can be a real pain on SLES-systems, but the fix is simple!

Add this to ~/.vimrc:
set backspace=indent,eol,start

Written by Tor Henning Ueland

March 11th, 2009 at 11:36 pm

Posted in Uncategorized,Vim

Tagged with ,

Installation of GPFS on SLES10

without comments

I have been playing around with GPFS on SLES for some days now and have compiled a quick HOWO for installation of the system.

Important notes:

  1. You must have root-access for the servers you are installing on
  2. You must compile GPFS kernel modules
  3. You must have access to the GPFS-packages from IBM

Install guide:

  1. Install all 4 rpm files
  2. Install needed packages for compilation: zypper in gcc xorg-x11-devel gcc-c++ kernel-source
  3. Download the latest patch from IBM*
  4. Compile it: cd /usr/lpp/mmfs/;make Autoconfig;make World;make InstallImages

Now you should have GPFS up and running without too much hazzle.
(* Patches are not always needed to make it work, but in case you encounter compilation errors, the latest patch should fix them)

Written by Tor Henning Ueland

March 10th, 2009 at 9:57 pm

Posted in Linux,SLES

Tagged with ,