JBoss Cluster - ServerPeerID

Posted on Tue 22 February 2011 in Linux • Tagged with JBoss, Server, Work, linux, notepad, java • 1 min read



For clustered environment each jboss node need a unique ServerPeerID which must be a valid integer.

Create a shared disk for VMware ESX guests

Posted on Mon 11 October 2010 in Linux • Tagged with drbd8, ocfs2, Server, VMware, linux, work, howto • 1 min read

To create a shared disk between two or more VMs, login into one of your ESX hosts and create a disk image.

cd /vmfs/volumes/#volume-name#/#vm-name#/;
vmkfstools -d thick -a lsilogic -c 50G shareddisk.vmdk;

Add the new hardrive to the guest(s) and select a new SCSI bus …

Continue reading

Apache Tomcat & logrotate

Posted on Tue 31 August 2010 in Linux • Tagged with Server, SUSE Linux Enterprise Server, Linux, work, notepad • 1 min read

Some linux distribution are shiped without a config for the catalina.out (Tomcat application server) ;)

$ cat /etc/logrotate.d/tomcat
/var/log/tomcat/base/catalina.out {
    create 644 tomcat tomcat
    rotate 30
    size 4M

The catalina.out will be rotated after 4 mb and stored for 30 days …

Continue reading

Benchmarking Tape drives

Posted on Thu 26 November 2009 in Linux • Tagged with Backup, FC, IBM, SLES10 SP2, TS1120, Linux, Work • 2 min read

Generally it is much better to create a ramdisk for this benchmark:
# mount -t tmpfs -o size=10G tmpfs /tmp/ramdisk;
# dd if=/dev/zero of=/dev/ram bs=1M count=10000; # mkfs.ext3 /dev/ram; # mount /dev/ram /tmp/ramdisk -o loop;

Normally your harddisk is to slow …

Continue reading