Bridging on OpenVZ

openvz-bridging.png





I need to create a bridge from an interface inside container, which bridge to my physical LAN. I followed the tutorial / guides on http://wiki.openvz.org/Virtual_Ethernet_device, but it doesn’t seem to make bridging works correctly. So I made some changes:

  1. Install bridge-utils
    yum install bridge-utils
    

    Read the rest of this entry »

when she refused to be logical

33FD8390-4FF4-490A-A548-1F352E779EAE.jpg These last 3 weeks, is a frustating moment. Actually my job is simple: install servers, then implement a disaster recovery plan. The first problem arose when i stupidly didn’t know how to manage a simple kernel module load at early boot stage via initrd. This took me 10 days to discover.

The worse is the last 12 days, when simply i need that kernel module to be loaded at boot time on a “centos livecd”. i need the livecd version of centos for recovering my server in case of severe hardware failures. all the toolsets, including coffees, bags of tong tji tea, new macbook battery (wow, how many rupiahs i’ve spent? –my last battery was unfortunately died), new 2GB RAM for the macbook, “tahu baxo” ungaran, “martabak mesir”, cadburry choco drinks, are set, but that-actually-easy-task is frustating me and took me 12 days to discover the solution. evenmore, the solution i’ve found is somewhat really simple and nothing “geeky” at all.

i think now she refused to be logical. i think she is more “human” now, forgot of what her dignity is. Fuhh.. or maybe i am getting old, old enough.

Enough for this nonsense. Here what should i do next time:

1. mostly, kernel module / driver need to be “the same version” with the kernel loaded at boot time
2. create livecd / recovery cd with i386 arch, and on a host WITHOUT LVM (because of a bug on mkinitrd)
3. simply do trial and error as much as i can

sinyal

karena sering nya orang komplain ke saya, bahwa telpun tidak diangkat2 siang ini, ini saya upload screen shot HP saya. Hari ini ada 2 kali katanya telpun tidak diangkat, lha karena emang tidak ada telpun masuk siang ini.

list missed call hari ini

yang selama ini saya rasakan emang sinyal disini (rumah) ndak gitu bagus, telpun sering putus ditengah2, suara lawan bicara seperti ngomong didalam air, dan kalau browsing via HP lambat (entah full bw ne entah sinyal nya).

Main-main dengan linux [disaster recovery @idwebhost]

Picture worth a thousand words:

Di server XEN utama:
Picture 4.png

Maka terjadilah:
Picture 5.png

waks :D

Ini di salah satu VPS Xen:
Picture 6.png

Maka terjadilah:
Picture 7.png
hihi :D

PERHATIAN: Don’t try this at home !!!

openvz kernel & megasr scsi on centos / rhel 5

Sudah 5 hari ini saya tidak mengerjakan pekerjaan lain kecuali 1 hal: belajar memahami linux kernel. Ini pun masih kapasitas sebagai user, bukan developer (hiks… betapa malunya).

43271D74-5BFB-46A5-9E2D-9A231C0C0035.jpg
Problem:
My hardware has a LSI MegaRAID 8208ELP (megasr) SCSI SAS controller. It shipped with RHEL 5 driver. I need to setup openVZ, unfortunately, rhel5 based openvz kernel is refusing megasr.ko to be loaded at boot time. Error message at boot was:

Loading megasr.ko module
megasr: disagrees about version of symbol struct_module
insmod: error inserting '/lib/megasr.ko': -1 Invalid module format

From what i’ve googled, they (megasr.ko and ovzkernel) have different kernel ‘version’ so they refused to work together.

Solution:

  1. Download and install ovzkernel & ovzkernel-devel (use PAE if neccessary)
  2. Go to lsi.com, and DON’T download the current version of the driver. Download the previous version. This is the URL: Redhat 5.x or mirrored here
  3. Extract the zip file,then cd to shim/library/rhel5-32
  4. do
    make -C /usr/src/kernels/2.6.18-53.el5.028stab051.1-PAE-i686 M=$PWD
    
  5. copy the megasr.ko in /lib/modules/2.6.18-53.el5.028stab051.1-PAE-i686/updates
  6. depmod 2.6.18-53.el5.028stab051.1-PAE-i686
  7. /sbin/mkinitrd /boot/initrd-2.6.18-53.el5.028stab051.1PAE.img 2.6.18-53.el5.028stab051.1PAE
  8. reboot!

NOTE: don’t copy paste, since the kernel version will always been updated

hope this help someone else, at least me :D

thanks for RUBEN for the correction

Pohon depan rumah


Ngeteh upload via HP

Posted by ShoZu

Tampilan error kalo posting wordpress via marsedit / ecto

Kalo posting blog via marsedit / ecto mengalami kejanggalan seperti:

  1. tag html seperti <img kehilangan “<” nya
  2. tanda “>” jadi &gt;
  3. tanda petik satu dan petik dua akan jadi aneh

maka sebenarnya yang salah bukan wordpress nya, tapi bug di libxml2, sudah ada fix di PHP.net tapi saat ini blum release, berikut infornya: http://josephscott.org/archives/2009/02/update-on-libxml2-issues/

Karena ini menyebalkan sekali, maka workaround nya adalah:

  1. edit file wp-includes/class-IXR.php
  2. tambahkan kode berikut:
    //-------- BEGIN workaround bug libxml -------------
            if ( version_compare ( LIBXML_DOTTED_VERSION, '2.7.3', '<' ) ) {
               $this->message =str_replace("<","<",$this->message);
               $this->message =str_replace(">",">",$this->message);
               $this->message =str_replace("&","&",$this->message);
            }
    //-------- ENDOF workaround bug libxml -------------
    

    di function parse (), tepat sebelum if (!xml_parse($this->_parser, $this->message)) {
    atau copy paste aja file class-IXR.php di sini jika Anda menggunakan wp 2.7.0

sumber:

  • http://josephscott.org/archives/2009/02/update-on-libxml2-issues/
  • http://blog.hoofoo.net/2009/01/14/wordpress-patch-for-problamatic-libxml2-version/

what a peaceful nite

Picture 1.png

Tenang sekali malam ini… bikin lupa kalo dolar baru 12.100

installation mapserver di lighttpd (lighty)

my setup: CentOS 5 with lighttpd and PHP installed.

  1. rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
  2. yum install byacc flex gd-devel curl-devel python-devel libxml2-devel php-devel
  3. compile gdal (http://download.osgeo.org/gdal/gdal-1.6.0.tar.gz)
    • tar -zxpf gdal-1.6.0.tar.gz
    • cd gdal-1.6.0
    • ./configure --prefix=/usr
    • make install
  4. yum install geos-devel proj-devel agg-devel
  5. rpm -ivh http://centos.karan.org/el5/extras/testing/i386/RPMS/fcgi-devel-2.4.0-5.el5.kb.i386.rpm http://centos.karan.org/el5/extras/testing/i386/RPMS/fcgi-2.4.0-5.el5.kb.i386.rpm
  6. compile mapserver:
    • ./configure --with-proj --with-geos --with-ogr --with-curl-config --with-fastcgi=/var/www/cgi-bin/ --with-gdal --with-agg --with-xml2-config --with-php=/usr/include/php --with-freetype
    • make
    • cp mapserv /var/www/cgi-bin
      cp legend /var/www/cgi-bin
      cp scalebar /var/www/cgi-bin
      cp shp2img /var/www/cgi-bin
      cp shp2pdf /var/www/cgi-bin
      cp shptree /var/www/cgi-bin
      cp shptreetst /var/www/cgi-bin
      cp shptreevis /var/www/cgi-bin
      cp sortshp /var/www/cgi-bin
      cp tile4ms /var/www/cgi-bin
  7. lighty conf:

    fastcgi.server = ( "/maps" =>
    ( "localhost" =>
    (
    "socket" => "/tmp/mapserver-fastcgi.socket",
    "check-local" => "disable",
    "bin-path" => "/var/www/cgi-bin/mapserv",
    "min-procs" => 1,
    "max-procs" => 6,
    "max-load-per-proc" => 4,
    "idle-timeout" => 20
    )
    )
    )

seminggu sudah saya di rumah sakit

Picture 6.png

rekor… uptime sampe 7 hari, selama itu si macbook, istri pertama saya, nemenin istri kedua saya di rumah sakit. ibunya anak2 kena tipes pas hamil gedhe. kondisi kesehatan kami diperparah dengan indosat 3G yang sekarang lambat banget, YM putus2 terus. horeeeeeee… ntar pagi pulaaangg…