Saturday, August 30, 2008
Life Without Buildings

Heard this band recently on my way to work and I am now hooked to them. Life Without Buildings is was a post-punk band from Glasgow and the singer has one of the cutest voice around. Nak kata menyanyi pun tak, macam bercakap melalak-lalak but sempoi layan. Unfortunately, band ni short-lived sangat...debut in 1999 and dah disbanded in 2002. Managed to released only one studio album, "Any Other City" and another live album "Live at the Annandale Hotel". Both albums are available on the net if you know how to find them.
Labels: Earache, Garbage 0 comments
Friday, August 29, 2008
Sent from my ....
This is just a rant. If you own a Blackberry or an iPhone, could you please turn off the default signature in your mail settings? It just so fscking* annoying to receive mails from you guys with "Sent from my iPhone" or "Sent from my Blackberry" in my mailbox. I don't want to know if you own an iPhone/Blackberry/Strawberries and no, I'm not impressed at all if you own one.
There you go. Puas hati den. If you are wondering, I'm not jealous with you cool gadgets....I got my crappy phone to play with anyway.
* fsck is actually a Unix command. Don't believe me, look here. Hek.
Labels: Garbage 4 comments
Monday, August 25, 2008
Secure erase partitions
I just found out about this command today. Usually I just use dd command to securely erase partitions but this command is much better I think. # shred -v -n 5 /dev/sda5
Descriptions of the flags used :
-v Turns verbose on showing the shredding progress.
-n Number of times to shred the partition.
As a reference, to use dd to erase partitions is as below :# dd if=/dev/urandom of=/dev/sda5
Probably better to run dd several times on the disk just to be safe.
UPDATE
I found another tool to secure erase partition named scrub. Here is how I install and run scrub on an AIX machine.# rpm -Uvh scrub-1.9-1.aix5.2.ppc.rpm
# /opt/freeware/bin/scrub -p dod -f /dev/sda5
where
-p Selects the patten writing method.
-f Force scrubbing even if it has already been scrubbed.
Labels: AIX, Linux 0 comments
Sunday, August 24, 2008
Fremantle Markets
Dah lama tak pi Fremantle Markets, jadi semalam pi singgah sat nak beli some souvenirs for mak nak bawa balik. Fremantle Markets ni lebih kurang macam Central Market kat KL lah. Fremantle ni kira macam pekan kecik tempat melancong, lebih kurang dalam 20 minit drive dari city center. Bukan ada apa sangat nak melancong pun, cuma jalan-jalan tepi pantai sambil hilang penat lepak makan fish & chips. Local people selalunya sebut Fremantle ni as Freo. Kalau waktu malam, Freo ni memang happening with night live. Mostly club, disco & bars memang berlambak kat sini.
Gambar-gambar kat bawah ni cuma gambar kat Fremantle Markets saja. Jadi tak nampaklah surrounding area yang lain kat Fremantle ni.









Labels: Australia, Garbage, Travelogue 3 comments
Saturday, August 23, 2008
Hitam-hitam si tompok manggis
Dah lama tak makan buah manggis, balik kampung hari tu pun tak jumpa. Tadi ronda-ronda kat market, memang rezeki la kot...ternampak pula buah manggis ni tapi harga takleh nak cakap apa laa...sebiji buah manggis AUD$1.80 atau lebih kurang RM5.40 sebiji.
Aku rasa ni lah buah manggis paling mahal pernah aku makan...
Labels: Australia, Garbage 1 comments
Thursday, August 21, 2008
Calculate space for file system extend
A simple method to calculate the required space for file system extension.
Let say we need to obtain some free space to lower the file usage from 86% to 75%,
# df -k /NETBACKUP_IMAGES
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/fslv05 3145728 442920 86% 9 1% /NETBACKUP_IMAGES
get the usage,
3145728-442920=2702808
(usage/target %) - total space =
(2702808/0.75) - 3145728 = 458016/1024 = 447.28MB
Therefore we need to add another 447.28MB to get the file usage level down to 75%.# chfs -a size=+448M /NETBACKUP_IMAGES
Labels: AIX 0 comments
Wednesday, August 20, 2008
Extend filesystem in HP-UX
Here's the procedure on extending a file system in an HP-UX box.
Initial commands :
bdf - gives the device file, mount point and its sizes (allocated, used, free)# bdf /u/PROD/NEXDAY
Filesystem kbytes used avail %used Mounted on
/dev/vg03/lvol1 20185088 16571560 3613528 82% /u/PROD/NEXDAY
vgdisplay - gives the properties of the volume group where the logical volume belongs# vgdisplay vg03
--- Volume groups ---
VG Name /dev/vg03
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 6
Open LV 6
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 1599
VGDA 2
PE Size (Mbytes) 32 <---- gives us the PE size
Total PE 1599
Alloc PE 1073
Free PE 526
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
lvdisplay - gives the properties of the logical volume# lvdisplay /dev/vg03/lvol1
--- Logical volumes ---
LV Name /dev/vg03/lvol1
VG Name /dev/vg03
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 19712
Current LE 616
Allocated PE 616 <--- gives us the allocated PE
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
So from there, we know the current file system size is
32MB x 616 = 19712MB or 20185088KB
Let's say we want to add another 2GB to the file system,
2048MB/32MB = 64 PE
So 64 + 616 = 680,
Therefore the new file system size will be 32MB x 680 = 21760MB
1. Extend the Logical Volume
From the current 616 PE (19712MB), we will extend it to 680 PE (21760MB)
Using the PEs# lvextend -l 680 /dev/vg03/lvol1
Using the Size in MB# lvextend -L 21760 /dev/vg03/lvol1
2. Extend the File System
(a) with Online JFS, no need to unmount# fsadm -F vxfs -b 21760M /u/PROD/NEXDAY
(b) without Online JFS
(i) The partition has to be unmounted, so there should be no process accessing the partition (db, application, even user in the current directory, etc…)# umount /dev/vg03/lvol1 or# umount /u/PROD/NEXDAY
(ii) Extend ## extendfs -F vxfs /dev/vg03/rlvol1
Take note of the "r" in rlovl1, extending or creating file system needs a raw device file.
(iii) Mount# mount /dev/vg03/lvol1 /u/PROD/NEXDAY
NOTE:
To check if the system have Online JFS enabled,# vxlicrep
VERITAS License Manager vxlicrep utility version 3.00.007
Copyright (C) VERITAS Software Corp 2002. All Rights reserved.
Creating a report on all VERITAS products installed on this system
-----------------***********************-----------------
License Key = 010449565812345615946529
Product Name = VERITAS File System
License Type = PERMANENT
Site License = YES
Features :=
HP_OnlineJFS = Enabled
OR# swlist | grep -i online
B3929CA B.11.11.03.03 HP OnLineJFS
OnlineDiag B.11.11.16.09 HPUX 11.11 Support Tools Bundle, Sep 2005
Labels: HP-UX 0 comments
Tuesday, August 19, 2008
How to clean the wtmp log file (/var/adm/wtmp)
The /var/adm/wtmp file keeps track of all logins and logouts to the system including rlogins and telnet sessions. The log will grow indefinitely unless system accounting is running. System accounting clears it out nightly. The /var/adm/wtmp file can be cleared out or edited to remove old and unwanted information.
The correct way to clean wtmp is # cp /dev/null /var/adm/wtmp
Labels: AIX 1 comments
Friday, August 15, 2008
Kembali
Butterfingers are back with their new studio album, "Kembali". Teringat zaman dulu-dulu dok layan 1.2 Milligrams. Jauh beza sungguh sound dulu dengan yang sekarang. More mature, more experimental, but pure butter.
p/s: pandai-pandai lah google kalau nak download full mp3 album ni, aku dah jumpa.
pp/s: bukan kedekut nak beli yang original....tapi kat sini mana nak beli daa. :P
Labels: Earache, Garbage 0 comments
Thursday, August 14, 2008
Sendmail relay to MS Exchange
You have several AIX boxes that are running sendmail and you want to send mail to the outside world from them. But you dont want to open another port in your LAN firewall and the only SMTP server that is facing the world is an MS Exchange server.
The easiest way to solve this is to relay all sendmail to the Exchange server. For every AIX boxes, do the following where exchange01 is the name of the MS Exchange server.
Edit /etc/sendmail.cf and add one line after DSmailerDSSMTP:exchange01
Edit /etc/netsvc.confhosts=local,bind
Edit /etc/hosts172.19.1.13 exchange01 exchange01
Refresh sendmail, if its already running.# refresh -s sendmail
Labels: AIX 0 comments
Sunday, August 10, 2008
Thursday, August 7, 2008
A Guide to Life
Found this while surfing today, I think its pretty good and quite terrifying true. Jump to the link to find out about Things They Don't Tell You (But Should) - A Guide to Life. Enjoy.
Labels: Garbage 0 comments
Tuesday, August 5, 2008
Google Maps Australia
Today, I've just realized that for Google Maps Australia it now comes with street-level image views. Take a peek and explore the cities from the image views....who knows you might see a familiar face somewhere. :)
Labels: Australia 0 comments




