Posts

Showing posts from September, 2013

WebSphere: A composition unit with name already exists.

Issue:   A composition unit with name <APP_NAME> already exists.Select a different application Name Solution: Sometimes this error will come even after deleting the application from WAS. Remove the application references from the below paths. <WAS_INSTALLATION_PATH>/Dmgr01/config/cells/<CELL_NAME>/blas/ <WAS_INSTALLATION_PATH>/Dmgr01/config/cells/<CELL_NAME>/cus/ removing the application references from the above paths will resolve the problem

WebSphere : Set the default Profile in WAS

Topic : Set the default profile when multiple dmgr profiles are there. Go to <WAS_INSTALLATION_PATH>/properties/fsdb/_was_profile_default modify the default.sh file to point to the required profile. This default profile setting can be useful when you have multiple number of profiles and want to deploy the application in particular profile through scripts.  <WAS_INSTALLATION_PATH> can be like /opt/ibm/WebSphere/AppServer

WebSphere MQ: JNDI Error in EAI JMS Tranport:'Exception:javax.naming.NameNotFoundException

Issue :  JNDI Error in EAI JMS Tranport:'Exception:javax.naming.NameNotFoundException:ReceiveGMSReferral;Message:ReceiveGMSReferral' Version :  WebSphere MQ 530.10 Solution :  Go to <MQ-INSTALL-DIRECTORY>/java/bin ./JMSAdmin InitCtx>define q(ReceiveGMSReferral) QUEUE(<QUEUE-NAME>) QMANAGER(<QMGR-NAME>) dis q(*) End to test the JMS connection with queue manager: ./IVTRun -nojndi -client -m <QMGR-NAME> -host <HOST-NAME> -port <LISTENER-PORT> -channel <CHANNEL-NAME> This confirms the connection works fine

Solaris Volume Manager(SVM): Setup with an example

Note: Procedure explained here based on one example. Do not execute exact commands File System layout before do any change: Filesystem             size   used  avail capacity  Mounted on /dev/dsk/c1t0d0s0      2.0G   104M   1.8G     6%    / /dev/dsk/c1t0d0s5      5.9G   1.8G   4.0G    32%    /usr /proc                    0K     0K     0K     0%    /proc mnttab                   0K     0K     0K     0%    /etc/m...

Kernel upgrade for Linux(OEL/RHEL) using up2date

Given procedure helpful to upgrade the Linux(OEL/RHEL) kernel using up2date command Required Backups: 1.       Ensure full system backup 2.       Take the backup of the /etc/grub.conf file.     #cp /etc/grub.conf /etc/grub.conf.bak Procedure to upgrade kernel: 1. register the system to the ULN(Unbreakable Linux Network) with you Linux support CSI      #Up2date –register 2.       Go to linux.oracle.com and subscribe the server to the RHEL/OEL 5.x/6.x patch channel which ever is required Eg: - go to the "Systems" tab and click on your server - Click on "Manage Supscriptions" and select "Enteprise Linux 5 Update 4 Patch ( ARCH, eg: i386 )" and "Enteprise Linux 5 Update 4 installation media copy ( ARCH )", remove "Enterprise Linux 5 Latest ( ARCH )" - click on "Save Subscriptions" 3.       Get the kernel package; you can dow...

Solaris box unable to boot due to corrupted /etc/vfstab file

The following procedure useful to get the the system to normal state by fixing the corrupted /etc/vfstab file in Solaris 1)Insert the CD/DVD. 2)boot the system from CD-ROM ok> boot cdrom -s Note: If the system is at LOM, issue the command 'break' to get in to ok prompt 3)Check for file system layout after booting from CD # df -k Filesystem            kbytes    used   avail capacity  Mounted on /pci@1f,0/pci@1,1/ide@d/cdrom@0,0:b                       512591  485732       0   100%    / swap                  967336     656  966680     1%    /tmp proc                       0       0       0     0%    /proc mnttab           ...

Basic LVM operations in Linux(RHEL)

LVM_Operations.md The following steps will provide an idea of how to perform basic operations on Linux (RHEL) LVM. Creating VG Scan for the new disk. For that first you need find out which host bus to scan. # grep mpt /sys/class/scsi_host/host?/proc_name If the disk properly attached, it should return like below. /sys/class/scsi_host/host6/proc_name:mptspi Here you need to rescan host6 #echo "- - -" > /sys/class/scsi_host/host6/scan Here "- - -" means to scan All channels All controllers All LUNs Cross verify if the disk was allocated to any VG #vgdisplay -v |grep -i diskname This is just to re-confirm you are playing around with Correct/New disk. Create new PV using following command. #pvcreate <newdisk> Create VG #vgcreate -s <Size of PE> <VG_name> <Disk> Eg: #vgcreate -s 32M vg01 /dev/sdb verify the VG and attribures #vgdisplay <Vg_Name> Create LV Create a LV #lvcreate -l ...

WebSphere pipe cleaning of cloned box

Topic: Process for pipe cleaning after Cloning from one server to another server 1. Go to the new server which is cloned from another server. 2. Run the following commands under <WAS_HOME>         find . -name "*.properties" |xargs perl -pi -e 's/<OLDSERVER_HOST>/<NEWSERVER_HOST>/g'         find . -name "*.xml" |xargs perl -pi -e 's/<OLDSERVER_HOST>/<NEWSERVER_HOST>/g'         find . -name "*.conf" |xargs perl -pi -e 's/<OLDSERVER_HOST>/<NEWSERVER_HOST>/g'         find . -name "*.sh" |xargs perl -pi -e 's/<OLDSERVER_HOST>/<NEWSERVER_HOST>/g'         find . -name "*.xsl" |xargs perl -pi -e 's/<OLDSERVER_HOST>/<NEWSERVER_HOST>/g'         find . -name "*.jks" |xargs perl -pi -e 's/<OLDSERVER_HOST>/<NEWSERVER_HOST>/g'         find . -name "*.txt" |xargs perl -pi -...

ADMU3007E Exception in WAS

Issue : ADMU3007E Exception com.ibm.es.process.exception.InvalidGroupException: PROC0002E: Group:[root]does not Appear to be valid on this system.Process Could not be Created Solution : Go to WAS Console --> Application Server --> <Server Name> -->Java and Process Management -->Process Execution Change Run As User property to <wasuser> and change Run As Group property to <wasgroup>

Removing a file using inode number

Note: All the commands given here are tried in AIX. Respective commands (may be command options) may differ for various flavors of UNIX. Issue : Unable to remove a file even after having all the permissions. The command rm –R <filename> in an AIX server giving error like file does not exist and were not able to do any operation on the file. Operations tried on the file: root@mybox# ls –ld myfile ls: 0653-341 The file myfile does not exist. root@mybox# ls -ld *myfile*    #to check if there is any hidden characters in file ls: 0653-341 The file *myfile* does not exist. You may use ls –lq or ls –lb for showing non-printing characters root@mybox# cd myfile ksh: myfile:  not found. But, ls –l showing the file name and consuming the file system space. root@mybox# ls –l total 272 ------------------------Truncated---------------- drwxr-x---   6 root      system    ...