Bu Blogda Ara

18 Nisan 2011 Pazartesi

How to extend a Virtual Box Image Hard Disk Size

1-) Use clonezilla latest.iso and boot from Virtual Machine the iso.

2-) Copy the source disk to target disk with Expert mode and k1 mode selected which is for scaling up the existing virtual disk to target virtual disk.

3-) When finished open the virtual machine with a latest gparted.iso image.

4-) Enter the commmand line mode and pvscan the virtual hard disk and Note your virtual harddisk path such as /dev/sda2

5-) sudo pvresize /dev/sda2 This is done for resizing the outer LVM2 type Virtual Disk partition.

6-) lvscan to discover internally mapped virtual ext3 or ext2 linux partitions such as /dev/mapper/virtual-disk-name

7-) sudo lvresize -L /dev/mapper/virtual-disk-name This will extend your inner mapped linux partition.

8-) resize2fs /dev/mapper/virtual-disk-name This will resize the filesystem.

5 Mart 2011 Cumartesi

Graph Visualization tool for Ant makefiles.

I recommend Grand as a graph visualization tool for Ant files.

17 Ocak 2011 Pazartesi

Tips for installing memcached on Red-Hat 4

1-) web access :)

2-) rpm -ihv ftp://ftp.pbone.net/mirror/ftp.pramberger.at/systems/linux/contrib/rhel4/archive/x86_64/libevent-1.3e-4.el4.pp.i386.rpm

3-) rpm -ihv htp://ftp.pbone.net/mirror/ftp.pramberger.at/systems/linux/contrib/rhel4/archive/i386/memcached-1.4.5-1.el4.pp.i386.rpm

Dont install memcached 1.2 versio0n and the stupid libevent 1.3b beta release than you will get EAGAIN resource temporyliy unavailable erro when trying to asyncroushly write to memcached server.

11 Ocak 2011 Salı

Our Coreopsis Rota Video Monitoring Deprecated Latest release

We stopped developing the Coreopsis Project on 2007. This is the latest release of our Windows Based Ip Camera management system (2007). From the below link download Setup1_05.zip. Only Windows XP Windows 2000 and Windows 2003 servers are supported. The software is for free....

http://code.google.com/p/barisergunexperimentalstuff/downloads/list?can=1&q=

22 Aralık 2010 Çarşamba

Memcached Performance Tests and Source Code (Java Source, Ant Project)

What is Memcached?

I have prepared some test cases in order to test the performance of Memcached distributed caching library. You can get them from my code repository with the following mercurial script.


hg clone https://barisergunexperimentalstuff.googlecode.com/hg/ barisergunexperimentalstuff


For your information if you don't have a mercurial rep client than you can get it with your favorite package manager. I use "sudo apt-get install tortoisehg" on my Ubuntu.

A-) Local tests:

Local tests are done with a sample DataObject. when you run the tests 8 different memcached instances are started on 8 consequent ports.

Steps to follow

- Install memcached (eg. sudo apt-get install memcached). On my previous post I also have information about on installing memcached on Centos 5.5

- Then, run tests with below ant script


ant local.test -Dentry.count=10000 -Dttl=60


Dentry.count is used to configure number of objects to cache. Dttl is used to configure TTL for each object in the cache.

A-) Distributed tests:

Local tests automatically starts and terminates the memcached servers on local machine. For distributed tests you will have to start the memcached servers on remote machines and give the server_ip:server_port combinations with a specific format as shown below.

Steps to follow:

- Install memcached on remote servers

- Start memcached servers.

Eg:


memcached -d -u root -m 1024 10.34.3.13 -p 1121


- Run distributed tests with following arguments(just a sample)

ant distributed.test -Dentry.count=10000 -Dget.timeout=10 -Dttl=300 -Dservers="10.34.3.11:1121 10.34.3.12:1121 10.34.3.13:1121"

Dget.timeout is for timeout for reading from cache
Dservers is list of memcached servers.

Tips for installing memcached on Centos 5.5

1-) Get the below memcached rpm file



wget ftp://ftp.pbone.net/mirror/ftp.pramberger.at/systems/linux/contrib/rhel5/i386/memcached-1.4.5-2.el5.pp.i386.rpm


My architecture was i386 you find yours an get the appropriate one.


2-) rpm -ihv memcached-1.4.5-2.el5.pp.i386.rpm

There you go....