Sunday, June 17, 2007
Wisdom Tooth
The one at upper-left started Saturday night, and really gave me a difficult time to sleep. The worst one came at evening Sunday, it just too painfull to be born. I almost fainted.
Go see a dentist, this is the serv 1 incident for me personally.
Sungai Kerayong site visit
Saturday, June 09, 2007
What a sunshine day
Friday, June 08, 2007
Smart Tunnel and etc
Explanation
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
- Remove volume pstore.
# vxassist –g rootdg remove pstore
- Set up system boot information on mirror disk
# /etc/vx/bin/vxbootsetup rootmirr
- Break rootmirror (c2t1d0)
# vxplex –g rootdg dis rootvol-02
# vxplex –g rootdg dis rootdisk1vol-02
- FSCK mirror disk (c2t1d0).
# fsck –F ufs /dev/rdsk/c2t1d0s0
- Mount root file system in mirror disk
# mount /dev/dsk/c2t1d0s0 /mnt
- Change /etc/system in mirror disk
# cd /mnt/etc
# cp system system.ddmmyy
# cp system.rfc263171 system
- 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
- Un-mount file system.
# cd /
# umount /mnt
- 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
- Reboot system with vx-rootdisk,
ok boot vx-rootdisk
IF boot is OK, go to step 11.
IF boot failed, go to step 12.
- 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.
- Boot the system off the detached mirror disk,
# init 0
ok boot vx-rootmirror –s
- 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% /
- 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
- Revert /etc/system and /etc/vfstab from backup files created earlier,
# cp /etc/system.ddmmyy /etc/system
# cp /etc/vfstab.ddmmyy /etc/vfstab
- 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% /
- 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
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!