Thursday, December 25, 2008

How to create WAS profiles with manageprofiles.sh

/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create -profileName Dmgr01 -profilePath /opt/IBM/WebSphere/AppServer/profiles/Dmgr01 -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/dmgr -nodeName linvm2CellManager01 -cellName linvm2Cell01 -hostName linvm2.lswsup.ukr

/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create -profileName AppSrv01 -profilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv01 -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/managed -nodeName linvm2Node01 -cellName linvm2Node01Cell01 -hostName linvm2.lswsup.ukr

when WAS PMT does not work

Profiles can be created with wasprofile.sh tool
More here
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/rxml_wasprofile.html

X11 forwarding with ssh

To enable X11 forwarding with ssh when connecting as
ssh -X server

xauth program needs to be installed on the server you connect to.
In RHEL5 xauth is in xorg-x11-xauth rpm

Wednesday, June 11, 2008

How to delete and recreate WebSphere 6.1 profiles

WAS >6.1.0.13
To delete profiles.

/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -unaugment -profileName Dmgr01
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -delete -profileName Dmgr01
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -unaugment -profileName AppSrv01
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -delete -profileName AppSrv01

delete directories;
/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/

Create new profile with profileManager
/opt/IBM/WebSphere/AppServer/bin/ProfileManagement/pmt.sh

On WAS versions < 6.1.0.13 use
To delete profiles with the same arguments:
/opt/IBM/WebSphere/AppServer/bin/wasprofile.sh

To create profile:
/opt/IBM/WebSphere/AppServer/bin/ProfileCreator/pctLinux.bin

Sunday, February 17, 2008

Russian input does not work in programs launched with Wine

I use en_US.UTF-8 locale on my laptop (openSuSe 10.3), but sometimes I need windows programs with russian input to be launched with wine.

I wrap each exe with sh file similar to the following:

export LC_ALL=ru_RU.UTF-8
wine BMCity.exe

One very important step is to create the following link to make ru_RU.UTF-8 locale available to wine.

sudo ln -s /usr/lib/locale/ru_RU.utf8 /usr/share/X11/locale/ru_RU.UTF-8

Friday, January 25, 2008

Why does VMware crash during startup from ntfs-3g?

VMware tries to use shared writable mmap for paging files from version 5.0 but it can't detect that it's not yet supported.

Workaround: Set "mainMem.useNamedFile=FALSE" in the .vmx file. It will disable paging files and VMware will work fine, often with much better performance.

Status: This has been worked one in the kernel and FUSE for three years. The solutions is complex and several experimental patches are available. VMware has also fixed their virtual machine recently.

Friday, January 11, 2008

"No space left on device" error from Xen

xenstored database may get corrupted sometimes and upon vm startup it would give a very misleading message like.

# xm create /etc/xen/win2k3
Using config file “/etc/xen/win2k3”.
Error: (28, ‘No space left on device, while writing /local/domain/0/backend/vbd/
18/768/online : 1′)

The workaround is documented here. In short, you have to do the following:
  1. Stop xend "/etc/init.d/xend stop"
  2. Kill xenstored as the above script does not shut it down (I also killed xenconsoled, just in case)
  3. Delete all tdb file from /var/lib/xenstored/tdb*
  4. Start xend
  5. Attempt to start your vm.
  6. If you see the following error just reboot the machine.

    # xm create /etc/xen/win2k3
    Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
  7. After reboot everything should be fine.