Skip to content

Anwar Ibrahim Is Like A Boss!

Picture tells a thousand words.

Anwar Ibrahim Is Like Boss

Bawa bertenang, saya uruskan semuanya

Indeed, Anwar Ibrahim is like a boss, isn’t he?

DISCLAIMER

  • I’m not a supporter of Anwar Ibrahim nor a member of Parti Keadilan Rakyat. I just admire this picture.
  • This picture isn’t mine, I found it on Facebook but I forgot the original URL. If you know the original owner, please let me know so that I can link it back as a credit
Tagged ,

Happy Chinese New Year

It’s dragon year, Happy Chinese New Year!

adidas Originals Dragon

adidas Originals Dragon

Tagged

adidas Originals Sennheiser CX 310 Earphone

Prologue
I played adidas Originals Hide and Seek game several weeks ago in Facebook. The game was initially quite tough but I managed to answer all the puzzles correctly. And as I expected, I managed to become one of the winner and the gift that I won is adidas Originals Sennheiser CX 310 Earphone worth about RM195 – RM210.

The parcel was delivered by DHL,

Nice greetings by adidas Originals team,

The climax – adidas Originals Sennheiser CX 310 Earphone,
adidas Originals Sennheiser CX 310 Earphone

The earphone comes with 3 ear adapter set and nice carrying pouch,
adidas Originals Sennheiser CX 310 Earphone

Review
Technically it’s a good earphone, it meets my expectation: nice bass & noise isolation/cancellation. Good looking and cool design by adidas are the bonus features. But I have to admit it’s quite expensive, I don’t think I will buy it using my own money as I can also get cheaper earphone with same quality by Sony.

Tagged ,

In Love With adidas Kopenhagen

I know I already had a yellow/black sneaker but this time I have to admit that I seriously got a crush on adidas Kopenhagen,

adidas Kopenhagen

adidas Kopenhagen Sunshine / Gum / Black

Wearing this sneaker with adidas Malaysia jersey and adidas jeans would be so awesome. adidasssssssssssssssssssssss!

Tagged

Onitsuka Tiger Selvedge Jeans

Brand: Onitsuka Tiger
Model: Unknown
Price: Not for sale (but the salesgirl told me the price is about RM1400 – if it’s true, I feel it’s overpriced.)
Location: Onitsuka Tiger Concept Store, Pavillion Kuala Lumpur

Onitsuka Tiger Jeans: Back side

Onitsuka Tiger Jeans: Back side

Onitsuka Tiger Jeans: Front side

Onitsuka Tiger Jeans: Front side

Onitsuka Tiger Jeans: Back pocket

Onitsuka Tiger Jeans: Back pocket

Onitsuka Tiger Jeans: Selvedge!

Onitsuka Tiger Jeans: Selvedge!

Too bad it’s meant for display only.

Tagged ,

RHEL 4: Reducing root’s Logical Volume Size

Problem Statement
This server contains 1 hard disk (32.2 GB) with 2 partitions (/dev/sda1 + /dev/sda2),

[root@localhost ~]# fdisk -l

Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        3916    31350847+  8e  Linux LVM

Due to unavoidable problem during installation (sorry, too long too tell the story), there’s only 2 logical volumes (root filesystem & swap) created,

[root@localhost ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-root
                       28G  2.3G   24G   9% /
/dev/sda1              99M   17M   78M  18% /boot
none                  501M     0  501M   0% /dev/shm

[root@localhost ~]# vgdisplay -v VolGroup00
    Using volume group(s) on command line
    Finding volume group "VolGroup00"
  --- Volume group ---
  VG Name               VolGroup00
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  6
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               29.88 GB
  PE Size               32.00 MB
  Total PE              956
  Alloc PE / Size       954 / 29.81 GB
  Free  PE / Size       2 / 64.00 MB
  VG UUID               7Cb3q0-cxRB-0tss-O7mC-Rvhp-se4d-VMDq0W

  --- Logical volume ---
  LV Name                /dev/VolGroup00/root
  VG Name                VolGroup00
  LV UUID                bd8H1Q-CoWM-tuQ3-anXW-yebg-IxUR-oGBgBK
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                27.88 GB
  Current LE             892
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

  --- Logical volume ---
  LV Name                /dev/VolGroup00/swap1
  VG Name                VolGroup00
  LV UUID                ZZWqIP-IGki-O1xc-lDHr-TwJu-0MYv-VWvzQr
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.94 GB
  Current LE             62
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1

  --- Physical volumes ---
  PV Name               /dev/sda2
  PV UUID               q9u3w8-GOFd-QkHk-Y7eU-KePU-i4Sb-o69r5y
  PV Status             allocatable
  Total PE / Free PE    956 / 2

There’s no more space available on VolGroup00 for me to create other filesystems. So, I want to reduce the space of /dev/VolGroup00/root so that I can create other logical volumes for /usr, /var, /tmp etc.

How can I reduce/shrink root’s logical volume? Here are the steps – I’m using RHEL 4 on VMware in this case,

Linux Rescue

Boot from RHEL 4 image and select "rescue" option. I chose to skip the rescue system from mounting my filesystems

 

pvscan + vgscan + lvscan

Run pvscan + vgscan + lvscan

 

e2fsck

Run e2fsck with force option

 

resize2fs

Run resize2fs to reduce the filesystem (this is a pre-requisite before reducing the diskspace on logical volume level)

 

lvreduce + lvdisplay

Run lvreduce to reduce the logical volume size and follow by lvdisplay command to see the change.

Tagged , ,

Linux: Change Time Zone From Command Line Interface

I just learned that there are several ways to change time zone setting in Linux from command line interface (I’m using Red hat Enterprise Linux in this case),

  1. Using tzselect
    [root@localhost ~]# tzselect
    Please identify a location so that time zone rules can be set correctly.
    Please select a continent or ocean.
     1) Africa
     2) Americas
     3) Antarctica
     4) Arctic Ocean
     5) Asia
     6) Atlantic Ocean
     7) Australia
     8) Europe
     9) Indian Ocean
    10) Pacific Ocean
    11) none - I want to specify the time zone using the Posix TZ format.
    #? 5
    Please select a country.
     1) Afghanistan           18) Israel                35) Palestine
     2) Armenia               19) Japan                 36) Philippines
     3) Azerbaijan            20) Jordan                37) Qatar
     4) Bahrain               21) Kazakhstan            38) Russia
     5) Bangladesh            22) Korea (North)         39) Saudi Arabia
     6) Bhutan                23) Korea (South)         40) Singapore
     7) Brunei                24) Kuwait                41) Sri Lanka
     8) Cambodia              25) Kyrgyzstan            42) Syria
     9) China                 26) Laos                  43) Taiwan
    10) Cyprus                27) Lebanon               44) Tajikistan
    11) East Timor            28) Macau                 45) Thailand
    12) Georgia               29) Malaysia              46) Turkmenistan
    13) Hong Kong             30) Mongolia              47) United Arab Emirates
    14) India                 31) Myanmar (Burma)       48) Uzbekistan
    15) Indonesia             32) Nepal                 49) Vietnam
    16) Iran                  33) Oman                  50) Yemen
    17) Iraq                  34) Pakistan
    #? 29
    Please select one of the following time zone regions.
    1) peninsular Malaysia
    2) Sabah & Sarawak
    #? 1
    
    The following information has been given:
    
            Malaysia
            peninsular Malaysia
    
    Therefore TZ='Asia/Kuala_Lumpur' will be used.
    Local time is now:      Mon Dec 19 14:47:51 MYT 2011.
    Universal Time is now:  Mon Dec 19 06:47:51 UTC 2011.
    Is the above information OK?
    1) Yes
    2) No
    #? 1
    
    You can make this change permanent for yourself by appending the line
            TZ='Asia/Kuala_Lumpur'; export TZ
    to the file '.profile' in your home directory; then log out and log in again.
    
    Here is that TZ value again, this time on standard output so that you
    can use the /usr/bin/tzselect command in shell scripts:
    Asia/Kuala_Lumpur
  2. Direct edit timezone data file (/etc/localtime)
    [root@localhost ~]# file /etc/localtime
    /etc/localtime: timezone data
    [root@localhost ~]# file /usr/share/zoneinfo/Asia/Kuala_Lumpur
    /usr/share/zoneinfo/Asia/Kuala_Lumpur: timezone data
    [root@localhost ~]# date
    Sun Dec 18 23:33:15 EST 2011
    [root@localhost ~]# cp /usr/share/zoneinfo/Asia/Kuala_Lumpur /etc/localtime
    cp: overwrite `/etc/localtime'? y
    [root@localhost ~]# date
    Mon Dec 19 12:33:40 MYT 2011
  3. So easy, eh :)

    Tagged , ,

IBM GPFS: Upgrading Linux Kernel & Applying GPFS Fix Pack

So, what you need to do after upgrading Linux kernel and/or applying GPFS fix pack?

Situation 1: Upgrading Linux kernel only
Previous Linux kernel: 2.6.18-274.3.1.el5
Current Linux kernel: 2.6.18-274.12.1.el5

After rebooted to new kernel, GPFS won’t be able to start due missing of GPFS portability layer

[root@kpgmedprod02 ~]# mmstartup
Tue Dec 13 15:26:41 MYT 2011: mmstartup: Starting GPFS ...
[root@kpgmedprod02 ~]# tail -f /var/adm/ras/mmfs.log.latest
Tue Dec 13 15:26:41 MYT 2011: runmmfs starting
Removing old /var/adm/ras/mmfs.log.* files:
Unloading modules from /lib/modules/2.6.18-274.12.1.el5/extra
runmmfs: The /lib/modules/2.6.18-274.12.1.el5/extra/mmfslinux.ko kernel extension does not exist.
runmmfs: Unable to verify kernel/module configuration.
Loading modules from /lib/modules/2.6.18-274.12.1.el5/extra
runmmfs: The /lib/modules/2.6.18-274.12.1.el5/extra/mmfslinux.ko kernel extension does not exist.
runmmfs: Unable to verify kernel/module configuration.
Tue Dec 13 15:26:41 MYT 2011 runmmfs: error in loading or unloading the mmfs kernel extension
Tue Dec 13 15:26:41 MYT 2011 runmmfs: stopping GPFS
[root@kpgmedprod02 ~]# mmgetstate

 Node number  Node name        GPFS state
------------------------------------------
       2      kpgmedprod02     down

What we need to do is these 4 simple steps: cd /usr/lpp/mmfs/src && make Autoconfig && make World && make InstallImages

Make sure kernel-devel package for running kernel is installed, otherwise we’ll hit this error:

[root@kpgmedprod02 ~]# cd /usr/lpp/mmfs/src && make Autoconfig && make World && make InstallImages
cd /usr/lpp/mmfs/src/config; ./configure --genenvonly; if [ $? -eq 0 ]; then /usr/bin/cpp -P def.mk.proto > ./def.mk; exit $? || exit 1; else exit $?; fi
Cannot find a valid kernel include dir
make: *** [Autoconfig] Error 1

If everything is good, we won’t see any error. And we can start GPFS daemon,

[root@kpgmedprod02 ~]# mmstartup
Tue Dec 13 15:31:35 MYT 2011: mmstartup: Starting GPFS ...

We can verify the result in GPFS log (/var/adm/ras/mmfs.log.latest),

Tue Dec 13 15:31:35 MYT 2011: runmmfs starting
Removing old /var/adm/ras/mmfs.log.* files:
Unloading modules from /lib/modules/2.6.18-274.12.1.el5/extra
Loading modules from /lib/modules/2.6.18-274.12.1.el5/extra
Module                  Size  Used by
mmfs26               1384264  0
mmfslinux             316776  1 mmfs26
tracedev               67148  2 mmfs26,mmfslinux
Tue Dec 13 15:31:36.027 2011: mmfsd initializing. {Version: 3.3.0.15   Built: Jun  7 2011 15:09:10} ...
Tue Dec 13 15:31:37.106 2011: Connecting to 10.200.66.150 kpgmedprod01
Tue Dec 13 15:31:37.107 2011: Connected to 10.200.66.150 kpgmedprod01
Tue Dec 13 15:31:37.106 2011: Connecting to 10.200.66.154 kpgmedprod05
Tue Dec 13 15:31:37.107 2011: Connected to 10.200.66.154 kpgmedprod05
Tue Dec 13 15:31:37.118 2011: mmfsd ready

And yes, GPFS state is now active,

[root@kpgmedprod02 ~]# mmgetstate

 Node number  Node name        GPFS state
------------------------------------------
       2      kpgmedprod02     active

Situation 2: Applying GPFS Fix Pack only
Current GPFS version (3.3.0-15),

[root@kpgmedprod05 ~]# rpm -qa | grep -i gpfs
gpfs.gpl-3.3.0-15
gpfs.docs-3.3.0-15
gpfs.base-3.3.0-15
gpfs.gui-3.3.0-15
gpfs.msg.en_US-3.3.0-15

I’m going to install latest GPFS fix pack (version 3.3.0-18)

[root@kpgmedprod05 ~]# ls -lh gpfs.*
-rw-r--r-- 1 root root 6.1M Dec 13 12:45 gpfs.base-3.3.0-18.x86_64.update.rpm
-rw-r--r-- 1 root root 163K Dec 13 12:45 gpfs.docs-3.3.0-18.noarch.rpm
-rw-r--r-- 1 root root 430K Dec 13 12:45 gpfs.gpl-3.3.0-18.noarch.rpm
-rw-r--r-- 1 root root  55M Dec 13 12:45 gpfs.gui-3.3.0-18.x86_64.rpm
-rw-r--r-- 1 root root  77K Dec 13 12:45 gpfs.msg.en_US-3.3.0-18.noarch.rpm
[root@kpgmedprod05 ~]# rpm -Uvh gpfs.*
Preparing...                ########################################### [100%]
   1:gpfs.base              ########################################### [ 20%]
   2:gpfs.docs              ########################################### [ 40%]
   3:gpfs.gpl               ########################################### [ 60%]
   4:gpfs.gui               ########################################### [ 80%]
You may start the GPFS GUI now by typing : /etc/init.d/gpfsgui start
Alternatively, the GPFS GUI will start on reboot.
   5:gpfs.msg.en_US         ########################################### [100%]

Like Situation 1 above, we need to rebuild GPFS portability layer,

[root@kpgmedprod05 ~]# cd /usr/lpp/mmfs/src/ && make Autoconfig && make World && make InstallImages

Once done, bring up GPFS service,

[root@kpgmedprod05 src]# mmstartup
Tue Dec 13 15:47:45 MYT 2011: mmstartup: Starting GPFS ...

Tadaaa, as expected everything is good,

[root@kpgmedprod05 src]# mmgetstate

 Node number  Node name        GPFS state
------------------------------------------
       5      kpgmedprod05     active

Situation 3: Upgrading Linux kernel and Applying GPFS Fix Pack
This actually a combination of Situation 1 & Situation 2, just rebuild GPFS portability layer again with this command:
cd /usr/lpp/mmfs/src && make Autoconfig && make World && make InstallImages

Conclusion
We need to rebuilt GPFS portability layer (command: cd /usr/lpp/mmfs/src && make Autoconfig && make World && make InstallImages) after upgrading Linux kernel and/or after applying GPFS fix pack.

 

Tagged

Levi’s 504 Selvedge Jeans

Got myself a Levi’s 504 selvedge,
Levi's 504 Selvedge

Front & rear view,
Levi's 504 Selvedge Levi's 504 Selvedge

The Selvedge (aka kepala kain in Bahasa Malaysia),
Levi's 504 Selvedge Levi's 504 Selvedge Levi's 504 Selvedge

Tagged , , , ,

IBM GPFS Links

This is just for my reference.

Essential Links

Optional Links

Tagged