Prakash Sawarkar: Kernel 3.8 Released, how to Compile in Redhat, CenOS and Fedora..

Kernel 3.8 Released, how to Compile in Redhat, CentOS and Fedora.

Sunday, 26 December 2010

RedHat / Centos minimal services

I always disable most of the services witch are activated by a default Centos 5.5 instalation
To disable them, run the following commands:
chkconfig anacron off
chkconfig apmd off
chkconfig atd off
chkconfig autofs off
chkconfig cpuspeed off
chkconfig cups off
chkconfig cups-config-daemon off
chkconfig gpm off
chkconfig isdn off
chkconfig netfs off
chkconfig nfslock off
chkconfig openibd off
chkconfig pcmcia off
chkconfig portmap off
chkconfig rawdevices off
chkconfig readahead_early off
chkconfig rpcgssd off
chkconfig rpcidmapd off
chkconfig smartd off
chkconfig xfs off
chkconfig ip6tables off
chkconfig avahi-daemon off
chkconfig firstboot off
chkconfig yum-updatesd off
chkconfig mcstrans off
chkconfig pcscd off
chkconfig bluetooth off
chkconfig hidd off
And you might consider disable this:
chkconfig sendmail off
chkconfig xinetd off
chkconfig acpid off
chkconfig microcode_ctl off
chkconfig irqbalance off
chkconfig haldaemon off
chkconfig messagebus off
chkconfig mdmonitor off

Sunday, 21 November 2010

Install tomcat6 in 3 step CentOS

# cd /etc/yum.repos.d
# wget 'http://www.jpackage.org/jpackage50.repo'
# yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps 
# service tomcat6 start
 http://localhost:8080

Saturday, 20 November 2010

How to Delete Nodes from a GPFS Cluster

Taken from Deleting Nodes from a GPFS Cluster (IBM)  
Step 1: Shutdown the Nodes before deleting
On the NSD Node
# mmshutdown -N node01
mmshutdown -N node01 
Wed Nov  1 05:13:43 SGT 2010: mmshutdown: Starting force unmount of GPFS file systems
Wed Nov  1 05:13:48 SGT 2010: mmshutdown: Shutting down GPFS daemons
node01:  Shutting down!
node01:  'shutdown' command about to kill process 10682
node01:  Unloading modules from /lib/modules/2.6.18-194.el6.x86_64/extra
node01:  Unloading module mmfs26
node01:  Unloading module mmfslinux
node01:  Unloading module tracedev
Wed Jun  1 05:14:02 SGT 2010: mmshutdown: Finished
Step 2: Deleting a Node
# mmdelnode -N node01
Verifying GPFS is stopped on all affected nodes ...
mmdelnode: Command successfully completed
mmdelnode: Propagating the cluster configuration data to all
affected nodes.  This is an asynchronous process. 
Step 3: Confirm that the nodes has been deleted.
# mmlscluster
Step 4: If you are deleting the client permanently, check and update the license file
# mmlslicense
Summary information
Number of nodes defined in the cluster:                         20
Number of nodes with server license designation:                 3
Number of nodes with client license designation:                17
Number of nodes still requiring server license designation:      0
Number of nodes still requiring client license designation:      0

Sunday, 14 November 2010

5 Step Jboss set up RHEL/Cent OS 5.X

Step:1:-  yum install mysql mysql-server java-1.6.0-openjdk -y
Step:2:- service mysqld start
Step:3:- wget  http://sourceforge.net/projects/jboss/files/JBoss/JBoss-6.0.0.M4/jboss-as-distribution-6.0.0.20100721-M4.zip/download
Step:4:- unzip jboss-as-distribution-6.0.0.20100721-M4.zip
Step:5:- /opt/jboss/bin/run.sh 

http://yourdomain.com:8080 

Sunday, 31 October 2010

Linux Find FC ID WWNN of a disk/LUN

If your server is connected to more than two SANs of the same type it is really hard to find what disk is on what SAN and how it is connected to your server. You can get the Fiber Channel addresses of the HBAs by typing the following commands:
# systool -c fc_host -v
Type the following command to determine the fibre channel target WWN:
# systool -c fc_transport -v