Saturday, June 09, 2007

What a sunshine day




This is 3pm in the afternoon. You know this is Kuala Lumpur, 3pm on a shinny day is very hot. They like the school environment. The big brother likes the flag so much, the little one just picks up walking 'skill', simply like to walk only. Their mom didn't like the idea to play at 3pm under open air. I have a different philosophy, 3pm is the time to stay at home for her, while for me it is good time to go out and have some fun.

Friday, June 08, 2007

Smart Tunnel and etc

This is from Director-general of Deparment of Irrigation and Drainage Malaysia. He was responding to the Smart tunnel which has not completed its water tunnel work. He says the government has come up with a ruling that future development projects include good drainage systems and ponds. So what has happened to the current devleopment projects? Is good drainage systems and ponds optional?? I guess you have the answer

Explanation

This happens to a disk which has a inode error on the OS disk.
The SA wants to do a fsck but afraid the it might cause unpredictable error on the disks. (Well,
i dont think this is really necessary, but the user requested for it)
This machine has the boot disks encapsulated and mirrored. First we want to know the mirrored disk's plex. The mirrored disk is c2t1d0. You can see the purpose is to break mirror and boot up onmirrored disk to perform a fsck on mirrored disk. When it's done, boot up from root disk and
reattach the mirror.

Tuesday, June 05, 2007

You figure out first what's this..

# vxprint -thg rootdg | grep pl | grep 02

pl export-02 export ENABLED ACTIVE 8389656 CONCAT - RW

pl local-02 local ENABLED ACTIVE 8389656 CONCAT - RW

pl pstore-02 pstore ENABLED ACTIVE 205119 CONCAT - RW

pl rootdisk1vol-02 rootdisk1vol ENABLED ACTIVE 4194828 CONCAT - RW

pl rootvol-02 rootvol ENABLED ACTIVE 29360907 CONCAT - RW

pl var-02 var ENABLED ACTIVE 12584484 CONCAT - RW

  1. Remove volume pstore.

# vxassist –g rootdg remove pstore

  1. Set up system boot information on mirror disk

# /etc/vx/bin/vxbootsetup rootmirr

  1. Break rootmirror (c2t1d0)

# vxplex –g rootdg dis rootvol-02

# vxplex –g rootdg dis rootdisk1vol-02

  1. FSCK mirror disk (c2t1d0).

# fsck –F ufs /dev/rdsk/c2t1d0s0

  1. Mount root file system in mirror disk

# mount /dev/dsk/c2t1d0s0 /mnt

  1. Change /etc/system in mirror disk

# cd /mnt/etc

# cp system system.ddmmyy

# cp system.rfc263171 system

  1. Change /etc/vfstab in mirror disk.

# cd /mnt/etc

# cp vfstab vfstab.ddmmyy

# cp vfstab.rfc263171 vfstab

The entries from / and /swap will be changed as shown:

/dev/dsk/c2t1d0s1 - - swap - no -

/dev/dsk/c2t1d0s0 /dev/dsk/c2t1d0s0 / ufs 1 no logging

  1. Un-mount file system.

# cd /

# umount /mnt

  1. Shutdown system. Reboot system,

# init 0

ok boot vx-rootmirror -sw

Enter root password to enter maintenance mode

Perform FSCK on /

# fsck –F ufs /dev/rdsk/c2t0d0s0

When done, bring down system

# init 0

  1. Reboot system with vx-rootdisk,

ok boot vx-rootdisk

IF boot is OK, go to step 11.

IF boot failed, go to step 12.

  1. Re-attach mirror,

# vxplex –g rootdg att rootvol rootvol-02

# vxplex –g rootdg att rootdisk1vol rootdisk1vol-02

Job done. Use “vxtask list” to check progress of synchronization.

  1. Boot the system off the detached mirror disk,

# init 0

ok boot vx-rootmirror –s

  1. Check to ensure system is booted with disk slices rather than volume devices.

# df –k /

Filesystem kbytes used avail capacity Mounted on

/dev/dsk/c2t1d0s0 14451472 4468338 9838620 32% /

  1. Stop all volumes in rootdg, re-attach those detached plexes,

# vxvol –g rootdg stopall

Attach detached plexes,

# vxplex –g rootdg att rootvol rootvol-02

# vxplex –g rootdg att rootdisk1vol rootdisk1vol-02

Make the newly attached plexes active,

# vxmend –g rootdg –o force off rootvol-01

# vxmend –g rootdg –o force off rootdisk1vol-01

# vxmend –g rootdg fix clean rootvol-02

# vxmend –g rootdg fix clean rootdisk1vol-02

# vxvol –g rootdg startall

  1. Revert /etc/system and /etc/vfstab from backup files created earlier,

# cp /etc/system.ddmmyy /etc/system

# cp /etc/vfstab.ddmmyy /etc/vfstab

  1. Shutdown system and reboot with mirror disk again,

# init 0

Ok boot vx-rootmirror

System should boot up using volume device, “df –k /” to verify,

# df –k /

Filesystem kbytes used avail capacity Mounted on

/dev/vx/dsk/bootdg/rootvol

14451472 4468384 9838574 32% /

  1. Online the disabled plexes,

# vxmend –g rootdg on rootvol-01

# vxmend –g rootdg on rootdisk1vol-01

Synchronization will starts, use “vxtask list” to check progress.

Sunday, June 03, 2007

Projects to fix Sungai Kerayong



The first one on the left (with a completion date on 25th mei 2006)clearly states that the project is to fix the flash flood problem caused by Sungai Kerayong.
Second project is to fix once and for all the river's flow and river bank structured work

Sungai Kerayong river bed deepening work





Jalan Loke Yew Road Upgrade




This is road expansion work along Jalan Loke Yew, after 7 / 8 months the project started.

Saturday morning...


It is always a happy morning when they discover the parents are at home not going to office.

Saturday, June 02, 2007

李登輝!

李登輝:有人掌權 全家撈錢
He must be referring to our red dot Mr. Lee. Well, he always like to compare himself with the senior Lee.
Is he any better than Senior Lee? Personally i think not!

Friday, June 01, 2007

Balcony bath


It was early 8 in the morning, and the brothers already having some good time at the balcony - something not every child is allowed.
;-)

Sunday, May 27, 2007

Oh....

She just told me the test was positive and she lost control of her emotion. Yes, we will have a 3rd child. We didn't expect it comes so fast. This has been a hectic year for me, and i am totally surprised this happen to a couple who has so little sex life.
;-)

Sunday, May 13, 2007

Good Feng Shui Place?

The house and surroundings look so good to me except that it is located about 200km away from where i life now.

See here. This houses in Ipoh really attracts me.

Another day of hardwork

My throat is burning, it is affecting my sleep now. I got a long nite yesterday, it's all work. Slept at 3.30am and woke up 7am to send my children to nanny. And not able to sleep now because of sore throat. Life is tough, as always.....

Tuesday, May 08, 2007

Taman Recreasi Air Panas (TRAP) Sungkai



Brothers having some good times at TRAP. It was very crowded during public holiday. This place is run by Felda, and it is right in the palm oil estate.



Happy Birthday 3 years old


Big brother turning 3 years old...on 1st April.

Boat Ride - Teluk Intan



Brothers having boat ride for the first time.....

Tuesday, April 10, 2007

Friday, March 23, 2007

House survey 1

Found this under the classified section: house for sale
CHERAS TMN
Cheras Indah d/s 18x60 Nlot 3r2b fully extended RM235K (Value buy) well kept 012-2906029, 03-92003864 Alex E(3)0931 20/3/2007

Everything is ok except -- this is leasehold house, and it has balance of about 70+ years.
Free hold house is very important factor in my buying decision. Never look back.

More house for sale now.....

I think this is no coincidental.....the next day after PM announced the removal of RPGT, the number of house sales in classified section increased from 30+ to 40+.

Monday, November 27, 2006

It's a painful weekend...

I am struck by flu......this time it is so bad that i couldn't walk properly for 2 days.

Wednesday, November 22, 2006

Sun ALOM

Taken from Sun website...


The ALOM System Controller and ALOM firmware combine the features of RSC and LOM, as well as adding several new features. The ALOM System Controller hardware is embedded in the server. However, ALOM functions completely independently as a separate embedded computer. ALOM firmware is pre-installed by default and is active from the first moment that the system is plugged in.

ALOM 1.6 features include:

  • Serial interface (CLI)
  • 10 Mb Ethernet interface telnet CLI (10/100Base T for V215/V245/V445)
  • Secure Ethernet interface (secure shell CLI)
  • Host side interface/admin utility
  • Host side monitoring (disks, fans, power, temp, PSU, FRUID, LED, hotplug devices)
  • Host control (power, reset)
  • Server watchdog XIR: (OS monitor/restart/XIR)
  • Self watchdog/restart
  • Enhanced events (ALOM events, host events, hotplug devices)
  • Logging events to ALOM (including nvram and syslog)
  • Logging host console stream output
  • Multiple users
  • User configurable delivery of events to ALOM CLI, email, and syslog
  • Out-of-box functionality
  • Optimized boot time
  • Hardware environmental monitoring/management

System Requirements

ALOM comes pre-installed on your server. Servers currently supported by ALOM 1.6 are:

  • A Sun Fire V125 server
  • A Sun Fire V210 server
  • A Sun Fire V215 server
  • A Sun Fire V240 server
  • A Sun Fire V245 server
  • A Sun Fire V250 server
  • A Sun Fire V440 server
  • A Sun Fire V445 server
  • A Netra 210 server
  • A Netra 240 server
  • A Netra 440 server

Focus

I have lost track in following up the new Sun servers offering. I know they are new models roll out every quater, but i am just unable to keep up with all the developments.
Here's the link to Sun website that provides a quick glance on the different models of Sun servers.

CoolThread Servers
- Netra CP3060 Blade
- Sun Fire T1000 Server
- Sun Fire T2000 Server
- Netra T2000 Server

x64 Servers
- Sun Blade 8000 P Modular System
- Sun Blade 8000 Modular System
- Sun Fire X4600 Server
- Sun Fire X4500 Server
- Sun Fire X4200 Server
- Sun Fire X4100 Server
- Sun Fire X2100 Server
- Sun Fire X2200 Server
- Sun Fire V40z Server

Blade servers
- Sun Blade 8000 Modular System
- Sun Blade 8000 P Modular System

Entry Level Servers
- Sun Fire V125 Server
- Sun Fire V215 Server
- Sun Fire V245 Server
- Sun Fire V445 Server
- Sun Fire V210 Server
- Sun Fire V240 Server
- Sun Fire V440 Server


Midrange servers
- Sun Fire V490 Server
- Sun Fire V890 Server
- Sun Fire E2900 Server
- Sun Fire E4900 Server
- Sun Fire E6900 Server
- Sun Fire V1280 Server


High End Servers
- Sun Fire E20K Server
- Sun Fire E25K Server

Carrier-grade Servers
- Netra 210 Server
- Netra 240 Server
- Netra 440 Server
- Netra CT900 ATCA Server
- Netra 1290 Server
- Netra T2000 Server
- Netra 1280 Server
- Netra CT 410 Server
- Netra CT 810 Server
- Netra CT 820 Server
- Netra CP2300 Blade
- Netra CP2160 Blade
- Netra CP2140 Blade
- Netra CP3010 Blade
- Netra CP3060 Blade
- Netra CP3020 Blade

and...........

PrimePower Servers !!!!

- PRIMEPOWER 250
- PRIMEPOWER 450
- PRIMEPOWER 650
- PRIMEPOWER 850
- PRIMEPOWER 900
- PRIMEPOWER 1500
- PRIMEPOWER 2500

Sunday, November 19, 2006

《独立新闻在线》 - 三次重申内安法令乃公正法律 是否废出版法阿都拉不置可否

《独立新闻在线》 - 三次重申内安法令乃公正法律 是否废出版法阿都拉不置可否

This is the response from Pak Lah on ISA. About his reply asking journalist to go back to school -- my feeling is that he is arrogant. He is not a humble people as he claims!!!

Long San Temple and Ching Ann Temple




Ching Ann temple is the first temple i visit in taiwan, i believe there must be some sort of 'yuan', and i made a wish to the 'five thousand years old' to have some fortune....hehehe...typical chinese mentality.
;-)

Very happy!!!


It's busy time

I have just returned from Taiwan trip. It's has been a nice tour, i like Taiwan more after this trip.
I will post some photos later.

Sun Opens Java

Sun Opens Java

And it's under GPL.........not CDDL. I think Jonathan Schwarts really knows what developers want.

Tuesday, August 08, 2006

Expert Sun bigot - Rich Teer


The real Sun bigot who is a real expert in Solaris -- Rich Teer. I am still way way behind this guy.
Got to own one copy of his new book: Solaris System Programming.

Monday, August 07, 2006

Slashdot | "iSCSI killer" Native in Linux

Slashdot | "iSCSI killer" Native in Linux
According to Coraid, he could get storage pricing below $1 per GB. That's real impressive.

Sun's X4500 - Thumper able to get as low as $2.00 per GB, that's of course come with much better performance :

2 GBps throughput from disks to memory, and approximately
1 GBps from disks to the network.

Friday, August 04, 2006

BBC English | Moving Words

The winning Moving Words are........
"A Journey of a thousand miles begins with a single step."
-- Lao Tzu

Wednesday, August 02, 2006

CIOL : News : “We will provide services in non-Sun environments”

CIOL : News : “We will provide services in non-Sun environments”: "Would Sun be willing to provide services in non-Sun environments?"

Yes. It comes from Dan Berg, vice-president and chief technology officer, Sun Services.

Sun has finally takes a pragmatic approach.

memory at zone level...

I just hope Sun can include memory management features at the zone level, currently the parameter rcap.max-rss is only able to be set at project level. I am not sure why Sun did not implement it at zone level.

Just wish it can be included at the next update.

Zones memory

I just hope Sun can include memory management features at the zone level, currently the parameter rcap.max-rss is only able to be set at project level. I am not sure why Sun did not implement it at zone level.

Just wish it can be included at the next update.

Manual for Solaris Administration Guide: Containers.......



This is the title of the manual i have followed up in docs.sun.com for a while:
System Administration Guide: Solaris Containers-Resource Management and Solaris Zones

I have several versions of this manual, earliest i have back date to sometimes Apr 2005 if i still remember correctly........the part no is 817-1592

I have version of 817-1592-12 (December 2005), 817-1592-13 (May 2006).
The latest i download is of a different part number, yet the manual title is still the same.
The new part no is 819-2450-6 (July 2006) and there is a word "beta" on the cover page....this really baffles me.

Tuesday, August 01, 2006

Oh Solaris 10, where are my disks?



Solaris 10 Update 2...ohh. Started SMC. Expand the Storage, where are my disks? It seems that the boot disk utilization is wrongly reported as well. What the heck is this -2.5GB??!

Solaris Zones on VMware on 2 core Wintel Machine



This is a small testing to see whether Solaris 10 zones resource management feature really works. Objectives are to test both Resource Pool and FSS.

First i installed Solaris 10 on VMware on a Pentium Duo Core machine with 1GB RAM.
The global zone is sol10vm8. The two non-global zones created are vm8z1 and vm8z2 respectively. When creating VM using VMware, i choosed to use 2 CPUs for this Sol 10 virtual machine.

****************************
sol10vm8:[/scripts] psrinfo
0 on-line since 08/01/2006 16:36:15
1 on-line since 08/01/2006 16:36:20

*****************************
Created a pool called vm8-pool which used maximum 1 CPU.
This step is important as we want to limit the utilization of CPU to 1 by using resource pool.

****************************
sol10vm8:[/scripts] pooladm

system sol10vm8
string system.comment
int system.version 1
boolean system.bind-default true
int system.poold.pid 441

pool vm8-pool
int pool.sys_id 3
boolean pool.active true
boolean pool.default false
int pool.importance 1
string pool.comment
pset vm8-pset

pool pool_default
int pool.sys_id 0
boolean pool.active true
boolean pool.default true
int pool.importance 1
string pool.comment
pset pset_default

pset vm8-pset
int pset.sys_id 1
boolean pset.default false
uint pset.min 1
uint pset.max 1
string pset.units population
uint pset.load 12002
uint pset.size 1
string pset.comment

cpu
int cpu.sys_id 0
string cpu.comment
string cpu.status on-line

pset pset_default
int pset.sys_id -1
boolean pset.default true
uint pset.min 1
uint pset.max 65536
string pset.units population
uint pset.load 18
uint pset.size 1
string pset.comment

cpu
int cpu.sys_id 1
string cpu.comment
string cpu.status on-line

****************************
Seems ok. Enable FSS on Global zone.

#dispadmin -d FSS # init 6

Non-global zones shares
vm8z1 -- 30
vm8z2 -- 20


sol10vm8:[/scripts] zonecfg -z vm8z1 info
zonepath: /vm8z1
autoboot: false
pool: vm8-pool
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
net:
address: 134.251.5.235
physical: e1000g0
rctl:
name: zone.cpu-shares
value: (priv=privileged,limit=30,action=none)

****************************
sol10vm8:[/scripts] zonecfg -z vm8z2 info
zonepath: /vm8z2
autoboot: false
pool: vm8-pool
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
net:
address: 134.251.5.236
physical: e1000g0
rctl:
name: zone.cpu-shares
value: (priv=privileged,limit=20,action=none)

****************************
started Brendan Greggs's script zoneflogcpu.....

sol10vm8:[/scripts] zoneflogcpu start

.........and the above images are the output

You can see the utilization of vm8z1 and vm8z2 used 29% and 20% of the cpu resources respectively. Look at the Windows Task Manager......the 1st CPU is highly loaded while the 2nd one is relatively idle.

Yes!! We achieved our objective!
By using resource pool, we are able to limit the processor set we use.
By using FSS, we have successfully limit the utilization of zones.

What about setting the shares to 60 and 30? (This time i set vm8z2 to 60 and vm8z1 to 30) Here's the result:

PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
4281 root 2920K 1496K run 3 0 0:00:50 5.8% perl/1
4252 root 2920K 1496K run 1 0 0:01:10 5.4% perl/1
4249 root 2920K 1496K run 14 0 0:01:10 5.4% perl/1
4278 root 2920K 1496K run 2 0 0:00:50 5.3% perl/1
4255 root 2920K 1496K run 5 0 0:01:10 5.3% perl/1
4275 root 2920K 1496K run 14 0 0:00:50 5.2% perl/1
4266 root 2920K 1496K run 1 0 0:00:26 2.9% perl/1
4246 root 2920K 1496K run 1 0 0:00:36 2.9% perl/1
4269 root 2920K 1496K run 3 0 0:00:26 2.8% perl/1
4240 root 2920K 1496K cpu0 14 0 0:00:36 2.7% perl/1
4243 root 2920K 1496K run 3 0 0:00:36 2.7% perl/1
4272 root 2920K 1496K run 3 0 0:00:26 2.7% perl/1
441 root 77M 17M sleep 1 0 0:00:12 0.1% poold/8
1779 noaccess 130M 60M sleep 11 0 0:00:22 0.1% java/27
3513 root 4392K 4176K cpu1 56 0 0:00:01 0.0% prstat/1
ZONEID NPROC SIZE RSS MEMORY TIME CPU ZONE
7 39 126M 72M 19% 0:06:20 32% vm8z2
5 41 130M 74M 20% 0:03:26 17% vm8z1
0 53 385M 178M 47% 0:01:09 0.2% global


Total: 133 processes, 454 lwps, load averages: 12.01, 11.61, 13.18

You can see that the prstat did not show 60% and 30%, it shows 32% and 17% which is about the half of it. Well, this is simple, what prstat -Z shows is the overall utilization which includes all the CPU resources in the system, which is 2 CPU in this case.

The OVERALL cpu allocation for vm8z1 is : [30/90] * 100 * 1/2 = 17%
and vm8z2: [60/90] * 100 * 1/2 = 33%

This indeed shows that prstat output is correct. I will look into granularity of cpu allocation at project level when have time.