Artikel ini akan menunjukkan cara-cara pemasangan dan konfigurasi redis di dalam PHP 7.2 bagi CentOS 7.
Artikel ini menjangkakan anda telah mengkonfigurasi repository kepada repositori remi. Anda juga telah membuat pemasangan PHP 7.2. Anda juga telah membuat pemasangan redis dengan jayanya di server lain.
Artikel ini ditulis disebabkan aku menghadapi masalah dalam menggunakan redis di dalam PHP 7.2.
1. Pasang redis ke dalam sistem pengoperasian CentOS 7 dengan cara
$ yum install php72*redis
====================================================================================================
Package Arch Version Repository Size
====================================================================================================
Installing:
php72-php-pecl-redis x86_64 3.1.6-1.el7.remi remi 156 k
php72-php-phpiredis x86_64 1.0.0-3.el7.remi remi 16 k
Installing for dependencies:
hiredis-last x86_64 0.13.3-1.el7.remi remi 30 k
php72-php-pecl-igbinary x86_64 2.0.8-1.el7.remi remi 66 k
Transaction Summary
====================================================================================================
Install 2 Packages (+2 Dependent packages)
Total download size: 268 k
Installed size: 817 k
Is this ok [y/d/N]:y
Downloading packages:
(1/4): php72-php-phpiredis-1.0.0-3.el7.remi.x86_64.rpm | 16 kB 00:00:01
(2/4): hiredis-last-0.13.3-1.el7.remi.x86_64.rpm | 30 kB 00:00:01
(3/4): php72-php-pecl-redis-3.1.6-1.el7.remi.x86_64.rpm | 156 kB 00:00:02
(4/4): php72-php-pecl-igbinary-2.0.8-1.el7.remi.x86_64.rpm | 66 kB 00:00:02
----------------------------------------------------------------------------------------------------
Total 115 kB/s | 268 kB 00:00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : hiredis-last-0.13.3-1.el7.remi.x86_64 1/4
Installing : php72-php-pecl-igbinary-2.0.8-1.el7.remi.x86_64 2/4
Installing : php72-php-pecl-redis-3.1.6-1.el7.remi.x86_64 3/4
Installing : php72-php-phpiredis-1.0.0-3.el7.remi.x86_64 4/4
Verifying : php72-php-phpiredis-1.0.0-3.el7.remi.x86_64 1/4
Verifying : php72-php-pecl-redis-3.1.6-1.el7.remi.x86_64 2/4
Verifying : php72-php-pecl-igbinary-2.0.8-1.el7.remi.x86_64 3/4
Verifying : hiredis-last-0.13.3-1.el7.remi.x86_64 4/4
Installed:
php72-php-pecl-redis.x86_64 0:3.1.6-1.el7.remi php72-php-phpiredis.x86_64 0:1.0.0-3.el7.remi
Dependency Installed:
hiredis-last.x86_64 0:0.13.3-1.el7.remi php72-php-pecl-igbinary.x86_64 0:2.0.8-1.el7.remi
Complete!
2. Pakej remi di dalam CentOS secara default akan diletakkan di dalam /opt/remi/php72. Ada dua cara bagi anda menggunakan module php72. Pertama adalah dengan meletakkan command yang ada di dalam /opt/remi/php72/enable ke dalam /etc/bash_profile. Kedua adalah dengan menyalin module .so dari /opt/remi/php72/root/usr/lib64/php/modules/ ke /usr/lib64/php/modules. Aku membuat cara kedua.
$ cp *redis.so igbinary.so /usr/lib64/php/modules
3. Pergi ke /usr/lib64/php/modules
$ cd /usr/lib64/php/modules
$ ls
Anda akan melihat redis.so dan igbinary.so dipindahkan.
3. Cipta fail redis.ini di dalam /etc/php.d/
$ vi /etc/php.d/redis.ini
Masukkan entry ini
extension=igbinary.so
extension=phpiredis.so
extension=redis.so
Pasti igbinary.so berada di atas sekali. Hal ini kerana modul ini akan digunakan oleh redis.so. Ianya perlu diload terlebih dahulu oleh php.
4. Restart daemon php. Jika anda menggunakan daemon php yang diintegrasi bersama Apache HTTPD, restart httpd. Jika anda menggunakan daemon php-fpm, restart php-fpm
Jika anda menggunakan php di dalam apache httpd
$ systemctl reload httpd
atau
$ systemctl stop httpd
$ systemctl start httpd
Jika anda menggunakan php-fpm
$ systemctl reload php-fpm
atau
$ systemctl stop php-fpm
$ systemctl start php-fpm
5. Cuba redis server anda dengan melaksanakan fail arahan ini (namakan sebagai redisConn.php)
$ vi /var/www/html/redisConn.php
try {
//Connecting to Redis server on localhost
$redis = new Redis();
echo "Test connect to Redis server ip.server.redis:6379";
$redis->connect('ip.server.redis', 6379);
echo "
Connection to server sucessfully";
//check whether server is running or not
echo "
Test Ping Connection";
echo "
Server is running: ".$redis->ping();
} catch (Exception $ex) {
echo "
" . $ex->getMessage();
}
?>
6. Laksanakan arahan sama ada menggunakan php-cli atau menggunakan web. Output seperti di bawah mungkin anda perolehi.
Test connect to Redis server 10.2.10.107:6379
Connection to server sucessfully
Test Ping Connection
Redis server went away
Showing posts with label IT. Show all posts
Showing posts with label IT. Show all posts
Pemasangan VMware vSphere 6.5
Artikel ini akan menunjukkan cara pemasangan VMware vSphere 6.5
ISO bagi VMware vSphere 6.5 boleh dimuat turun dari laman web VMware.
1. Masukkan DVD/USB yang mengandungi ISO ke dalam server anda. Splash screen seperti gambarajah 1 akan dipaparkan.
2. Selesai imej dibaca oleh server, skrin seperti gambarajah 2 akan dipaparkan. Untuk pengetahuan, VMware vSphere 6.5 masih tidak membenarkan penggunaan tetikus semasa pemasangan. Tekan Enter bagi meneruskan pemasangan.
3. Kemudian skrin yang memaparkan "End User Licensing Agreement (EULA)" akan dipaparkan. Anda boleh membaca keseluruhan EULA dengan menggunakan kekunci panah ke bawah. Jika anda tidak setuju dengan EULA tekan kekunci Esc dan anda akan dibawa keluar dari skrin pemasangan. Jika anda ingin meneruskan pemasangan tekan F11.
4. Kemudian imej akan 'scan' cakera keras (hard disk) yang ada di dalam server anda. Apabila ianya selesai, skrin seperti gambarajah 4 akan dipaparkan. Jika anda ada membuat sambungan kepada NAS atau SAN, ianya akan turut dipaparkan di dalam skrin ini. Untuk artikel ini, saya membuat pemasangan di atas server maya bagi menyenangkan proses 'screen capture'. Disebabkan itu di skrin ini hanya ada satu saiz cakera keras sebanyak 100GiB yang dapat diperolehi oleh vSphere 6.5. Tekan Enter bagi meneruskan pemasangan.
5. Disebabkan vSphere 6.5 dibangunkan menggunakan sistem pengoperasian Linux, maka saiz yang diperlukan adalah rendah. 100GiB adalah tersangat besar bagi vSphere 6.5. Seterusnya anda akan dibawa ke skrin bagi memilih 'layout' papan kekunci. Ambil 'layout' yang dikenali oleh imej vSphere 6.5. Tekan Enter bagi meneruskan pemasangan.
6. Skrin seterusnya adalah bagi memasukkan kata laluan (password) bagi pengguna root. root adalah satu-satunya kata nama yang anda boleh cipta buat masa ini. Kata nama lain anda hanya boleh cipta melalui vSphere Web Client nanti. Masukkan kata laluan bagi root dan tekan Enter untuk meneruskan pemasangan.
7. 'System scanning' akan dilakukan oleh vSphere 6.5. Ianya bagi mengetahui perkara berikut
8. Kebiasaannya jika anda membuat pemasangan ESXi 6.5 di atas server maya, anda akan mendapat ralat seperti di dalam gambarajah 8. Abaikan ralat tersebut buat sementara, dan tekan Enter bagi meneruskan pemasangan. Ralat ini boleh diperbaiki sama ada di dalam BIOS (jika server anda merupakan server fizikal) atau di dalam 'settings' vSphere.
9. Skrin seperti gambarajah 9 akan dipaparkan sebelum pemasangan dilakukan. Ianya adalah 'safety features' di dalam vSphere 6.5 yang memerlukan anda memastikan bahawa anda akan membuat pemasangan di dalam cakera keras yang dinyatakan. Tekan F11 untuk memasang ESXi 6.5 ke dalam server anda.
10. vSphere 6.5 akan memasang perisian ke dalam server anda seperti di dalam gambarajah 10. Seterusnya ianya akan meminta anda 'reboot' secara manual atau akan dilakukan secara automatik oleh imej.
Mudah bukan pemasangan VMware vSphere 6.5?
ISO bagi VMware vSphere 6.5 boleh dimuat turun dari laman web VMware.
1. Masukkan DVD/USB yang mengandungi ISO ke dalam server anda. Splash screen seperti gambarajah 1 akan dipaparkan.
Gambarajah 1 : Imej sedang dibaca oleh server
2. Selesai imej dibaca oleh server, skrin seperti gambarajah 2 akan dipaparkan. Untuk pengetahuan, VMware vSphere 6.5 masih tidak membenarkan penggunaan tetikus semasa pemasangan. Tekan Enter bagi meneruskan pemasangan.
Gambarajah 2 : Skrin selamat datang.
3. Kemudian skrin yang memaparkan "End User Licensing Agreement (EULA)" akan dipaparkan. Anda boleh membaca keseluruhan EULA dengan menggunakan kekunci panah ke bawah. Jika anda tidak setuju dengan EULA tekan kekunci Esc dan anda akan dibawa keluar dari skrin pemasangan. Jika anda ingin meneruskan pemasangan tekan F11.
Gambarajah 3 : Skrin EULA
4. Kemudian imej akan 'scan' cakera keras (hard disk) yang ada di dalam server anda. Apabila ianya selesai, skrin seperti gambarajah 4 akan dipaparkan. Jika anda ada membuat sambungan kepada NAS atau SAN, ianya akan turut dipaparkan di dalam skrin ini. Untuk artikel ini, saya membuat pemasangan di atas server maya bagi menyenangkan proses 'screen capture'. Disebabkan itu di skrin ini hanya ada satu saiz cakera keras sebanyak 100GiB yang dapat diperolehi oleh vSphere 6.5. Tekan Enter bagi meneruskan pemasangan.
Gambarajah 4 : Skrin yang memaparkan cakera keras yang boleh digunakan bagi pemasangan imej
5. Disebabkan vSphere 6.5 dibangunkan menggunakan sistem pengoperasian Linux, maka saiz yang diperlukan adalah rendah. 100GiB adalah tersangat besar bagi vSphere 6.5. Seterusnya anda akan dibawa ke skrin bagi memilih 'layout' papan kekunci. Ambil 'layout' yang dikenali oleh imej vSphere 6.5. Tekan Enter bagi meneruskan pemasangan.
Gambarajah 5 : 'Layout' papan kekunci
6. Skrin seterusnya adalah bagi memasukkan kata laluan (password) bagi pengguna root. root adalah satu-satunya kata nama yang anda boleh cipta buat masa ini. Kata nama lain anda hanya boleh cipta melalui vSphere Web Client nanti. Masukkan kata laluan bagi root dan tekan Enter untuk meneruskan pemasangan.
Gambarajah 6 : Masukkan kata laluan bagi root
- Informasi tentang 'processor'
- Informasi tentang perkakasan yang ada di dalam sistem
- Informasi tentang rangkaian
- Dan lain-lain
Gambarajah 7 : 'System scanning' sedang dijalankan
8. Kebiasaannya jika anda membuat pemasangan ESXi 6.5 di atas server maya, anda akan mendapat ralat seperti di dalam gambarajah 8. Abaikan ralat tersebut buat sementara, dan tekan Enter bagi meneruskan pemasangan. Ralat ini boleh diperbaiki sama ada di dalam BIOS (jika server anda merupakan server fizikal) atau di dalam 'settings' vSphere.
Gambarajah 8 : Ralat yang dipaparkan.
9. Skrin seperti gambarajah 9 akan dipaparkan sebelum pemasangan dilakukan. Ianya adalah 'safety features' di dalam vSphere 6.5 yang memerlukan anda memastikan bahawa anda akan membuat pemasangan di dalam cakera keras yang dinyatakan. Tekan F11 untuk memasang ESXi 6.5 ke dalam server anda.
Gambarajah 9 : 'Confirm install screen'
10. vSphere 6.5 akan memasang perisian ke dalam server anda seperti di dalam gambarajah 10. Seterusnya ianya akan meminta anda 'reboot' secara manual atau akan dilakukan secara automatik oleh imej.
Gambarajah 10 : Pemasangan ESXi 6.5
Mudah bukan pemasangan VMware vSphere 6.5?
Apa beza snapshot dan backup di dalam perkomputeran maya?
Snapshot dan backup adalah 2 fungsi yang disalahertikan oleh ramai pentadbir-pentadbir perkomputeran maya.
Snapshot adalah fungsi di dalam Hyper-V dan VMware yang membenarkan pentadbir mengambil keadaan semasa server maya yang ada di dalam infrastruktur Hyper-V atau VMware bagi melakukan perkara berikut :
Di dalam artikel "Best Practices for using snapshot in vSphere environment", VMware ada menyenaraikan langkah-langkah terbaik dalam menggunakan snapshot. Berikut merupakan langkah tambahan daripada saya.
Snapshot adalah fungsi di dalam Hyper-V dan VMware yang membenarkan pentadbir mengambil keadaan semasa server maya yang ada di dalam infrastruktur Hyper-V atau VMware bagi melakukan perkara berikut :
- Ingin memasang kemaskini (update) terkini di dalam server maya tetapi tidak diketahui bagaimana atau apa yang akan berlaku jika kemaskini tersebut dipasang. Contoh kepada keadaan ini adalah kemaskini .NET Framework, kernel dan lain-lain seangkatan dengannya.
- Ingin membuat perubahan kepada kod di dalam sistem yang terdapat di dalam server maya tetapi memerlukan titiktanda (checkpoint) yang membolehkan sistem ini dikembalikan kepada asal (rollback) jika berlakunya masalah.
- Sebagai tanda untuk membuat backup di dalam perkomputeran maya. Perisian backup seperti Commvault, Veeam, Zerto, Acronis dan lain-lain akan membuat snapshot terlebih dahulu sebelum membuat backup kepada data-data yang ada di dalam server maya. Segala akses yang berlaku semasa server maya di backup adalah menggunakan snapshot yang sedia ada. Selesai backup, snapshot akan digabungkan dengan data yang sedia ada dan dibuangkan.
Di dalam artikel "Best Practices for using snapshot in vSphere environment", VMware ada menyenaraikan langkah-langkah terbaik dalam menggunakan snapshot. Berikut merupakan langkah tambahan daripada saya.
- Sentiasa menamakan snapshot anda. Sebagai contoh, "kemaskini windows 2012 untuk service pack 2". Hal ini kerana jika anda menggunakan nama yang diberikan sama ada oleh vCenter atau SCVMM, saya berani jamin, esok anda akan lupa.
- Apabila anda sudah selesai membuat pengujian dan didapati kemaskini yang dibuat tidak dapat digunakan atas sebab-sebab tertentu, gunakan fungsi "Revert snapshot" dan pilih snapshot yang dikehendaki.
- Apabila anda tidak pasti, gunakan fungsi "Consolidate Snapshot". Fungsi ini akan menggabungkan kesemua snapshot kembali ke dalam 1 virtual hard disk tanpa menjejaskan integriti data. Hal ini bermakna kesemua perubahan yang anda lakukan akan disimpan terus ke dalam server maya dan snapshot akan dibuangkan.
Screen di dalam Linux
Arahan screen membolehkan anda melaksanakan arahan yang panjang tanpa perlu risau jika berlakunya gangguan kepada sambungan SSH dari PC ke server. Screen tidak dipasangkan secara 'default' ke dalam Linux pada masa kini.
Pemasangan screen ke dalam Linux
Arahan ini adalah untuk sistem pengoperasian CentOS 6.x. CentOS 7.x mungkin berbeza. Pos ini akan dikemaskini kemudian.
$ yum install screen
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Determining fastest mirrors
* base: mirror.server.domain
* extras: mirror.server.domain
* updates: mirror.server.domain
base | 3.7 kB 00:00 base/primary_db | 4.6 MB 00:00
extras | 3.4 kB 00:00 extras/primary_db | 32 kB 00:00 updates | 3.4 kB 00:00 updates/primary_db | 2.0 MB 00:00 Resolving Dependencies
--> Running transaction check
---> Package screen.x86_64 0:4.0.3-18.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================== Package Arch Version Repository Size
====================================================================================================
Installing:
screen x86_64 4.0.3-18.el6 base 494 k
Transaction Summary
====================================================================================================
Install 1 Package(s)
Total download size: 494 k
Installed size: 795 k
Is this ok [y/N]:y
Downloading Packages:
screen4.0.3-18.el6.x86_64.rpm | 494 kB 00:19
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : screen-4.0.3-18.el6.x86_64 1/1
Verifying : screen-4.0.3-18.el6.x86_64 1/1
Installed:
screen.x86_64 0:4.0.3-18.el6
Complete!
Cara penggunaan screen
Untuk menggunakan screen, taip
$ screen
Satu skrin lain akan dipaparkan. Anda boleh menggunakan sebarang arahan linux di dalam skrin ini. Sebagai contoh, jika saya ingin memindahkan fail ke dalam server yang lain, saya menggunakan arahan ftp -i server.your.domain. -i adalah bagi mengelakkan sebarang aktiviti interaktif antara anda dan server.
Setelah selesai anda cuma tekan Ctrl+A+D atau Ctrl+a+d. Untuk memaparkan skrin yang masih aktif, taip arahan $ screen -list. Anda akan mendapat output seperti di bawah
There is a screen on:
5117.pts-1.eprints (Detached)
1 Socket in /var/run/screen/S-root.
Untuk memasuki kembali skrin tersebut, taip $ screen -r. Jika hanya ada satu skrin, anda akan dibawa ke skrin tersebut. Jika anda ada lebih dari satu skrin, taip $ screen -r screenid.
Selamat mencuba!
Pemasangan screen ke dalam Linux
Arahan ini adalah untuk sistem pengoperasian CentOS 6.x. CentOS 7.x mungkin berbeza. Pos ini akan dikemaskini kemudian.
$ yum install screen
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Determining fastest mirrors
* base: mirror.server.domain
* extras: mirror.server.domain
* updates: mirror.server.domain
base | 3.7 kB 00:00 base/primary_db | 4.6 MB 00:00
extras | 3.4 kB 00:00 extras/primary_db | 32 kB 00:00 updates | 3.4 kB 00:00 updates/primary_db | 2.0 MB 00:00 Resolving Dependencies
--> Running transaction check
---> Package screen.x86_64 0:4.0.3-18.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================== Package Arch Version Repository Size
====================================================================================================
Installing:
screen x86_64 4.0.3-18.el6 base 494 k
Transaction Summary
====================================================================================================
Install 1 Package(s)
Total download size: 494 k
Installed size: 795 k
Is this ok [y/N]:y
Downloading Packages:
screen4.0.3-18.el6.x86_64.rpm | 494 kB 00:19
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : screen-4.0.3-18.el6.x86_64 1/1
Verifying : screen-4.0.3-18.el6.x86_64 1/1
Installed:
screen.x86_64 0:4.0.3-18.el6
Complete!
Cara penggunaan screen
Untuk menggunakan screen, taip
$ screen
Satu skrin lain akan dipaparkan. Anda boleh menggunakan sebarang arahan linux di dalam skrin ini. Sebagai contoh, jika saya ingin memindahkan fail ke dalam server yang lain, saya menggunakan arahan ftp -i server.your.domain. -i adalah bagi mengelakkan sebarang aktiviti interaktif antara anda dan server.
Setelah selesai anda cuma tekan Ctrl+A+D atau Ctrl+a+d. Untuk memaparkan skrin yang masih aktif, taip arahan $ screen -list. Anda akan mendapat output seperti di bawah
There is a screen on:
5117.pts-1.eprints (Detached)
1 Socket in /var/run/screen/S-root.
Untuk memasuki kembali skrin tersebut, taip $ screen -r. Jika hanya ada satu skrin, anda akan dibawa ke skrin tersebut. Jika anda ada lebih dari satu skrin, taip $ screen -r screenid.
Selamat mencuba!
Perkomputeran Maya I : Perkomputeran Maya Secara Am
Pengenalan
Perkomputeran maya (virtualization) merupakan suatu teknologi yang membenarkan sesuatu komputer fizikal (PC, notebook, server) mempunyai lebih dari satu sistem pengoperasian dan boleh berfungsi pada masa yang sama. Hal ini bermakna sistem pengoperasian ini berkongsi menggunakan CPU, RAM, ruang storan, kad grafik, kad audio, kad rangkaian dan lain-lain pada masa yang sama.
Terdapat beberapa perisian yang boleh menyokong perkomputeran maya ini. Antaranya adalah VMware vSphere, Microsoft HyperV, RedHat KVM, Oracle VirtualBox, VMware Workstation, Citrix XenServer dan lain-lain lagi.
Apakah perkomputeran maya?
Secara ringkasnya, perkomputeran maya merupakan satu sistem pengoperasian (di dalam server) atau sistem aplikasi (di dalam PC, notebook) yang membenarkan komputer maya dicipta. Di dalam bahasa perkomputeran maya, ianya dikenali sebagai hypervisor. VMware vSphere dan Microsoft HyperV merupakan antara hypervisor yang banyak digunakan dan peneraju utama di dalam perkomputeran maya. Di dalam perkomputeran maya dipecahkan kepada dua iaitu full virtualization (VMware vSphere) dan paravirtual (RedHat KVM). Di dalam artikel ini saya akan lebih menjurus kepada full virtualization dan bukannya paravirtual.
Jika anda tidak menggunakan perkomputeran maya, setiap server hanya mempunyai satu sistem pengoperasian dengan beberapa aplikasi. Malah ada server-server yang hanya mempunyai satu aplikasi. Sebagai contoh, web server dan server pangkalan data. Di dalam perkomputeran maya, server-server ini boleh diletakkan di dalam satu server dan akan berinteraksi dengan hypervisor untuk mengakses kepada perkakasan fizikal yang terdapat di dalam server tersebut. Server-server maya ini dikenali sebagai virtual machines atau di kalangan pentadbir perkomputeran maya ianya dipanggil vm. Untuk server fizikal yang mempunyai hypervisor ianya dikenali sebagai esxi host (utk VMware vSphere) atau hyperv (untuk Microsoft HyperV).
Apakah hypervisor?
Hypervisor merupakan satu sistem pengoperasian yang digunakan bagi membolehkan interaksi di antara server-server maya dan perkakasan di dalam server fizikal berlaku. Hypervisor ini juga akan 'melihat' dan merekodkan setiap aktiviti server-server maya yang terdapat di dalamnya. Disebabkan hypervisor akan melakukan pelbagai aktiviti bagi menyokong server-server maya, adalah tidak disarankan untuk memasang pelbagai perisian atau aplikasi ke dalam hypervisor ini. Segala interaksi di antara pentadbir dan hypervisor adalah melalui satu antaramuka terpusat (VMware vCenter atau Microsoft System Center Virtual Machine Manager - SCVMM).
Apabila saya menjurus ke dalam bidang ini, saya tertanya-tanya bagaimanakah hypervisor boleh memberikan perkakasan yang sama kepada server-server maya ini? Hal ini terjawab selepas saya menjadi pentadbir kepada perkomputeran maya. Hypervisor akan membuat perkakasan maya dan di'beri'kan kepada server-server maya. Bergantung kepada perkakasan yang diminta, ianya merangkumi CPU, RAM, Hard disk, IO dan lain-lain. Namun begitu ianya mempunyai had tertentu. Sebagai contoh, ruangan storan yang diberi adalah bergantung kepada ruangan storan fizikal yang terdapat di dalam server. Begitu juga dengan RAM dan IO. Ianya tidak akan melebihi nilai yang ada di dalam server fizikal. Namun begitu, teknologi terkini membenarkan ruangan storan diberi melebihi dari ruangan storan fizikal (thin provisioning), namun ianya masih tertakluk kepada ruangan storan fizikal. Begitu juga dengan RAM. Ada teknologi dikenali sebagai Memory Overcommit yang membenarkan RAM diberi kepada server maya melebihi RAM di dalam server fizikal. Namun teknologi ini bergantung kepada ruang storan yang terdapat di dalam server fizikal dan tidak melebihi 2x dari nilai RAM (kerana ianya bergantung kepada teknologi paging yang ada di dalam sistem pengoperasian).
Agak mengelirukan bukan? Ikut tips ini :
1. Jumlah RAM di dalam server maya < dari jumlah ram di dalam server fizikal
2. Jumlah ruang storan di dalam server maya (thin provisioning) < 200% dari jumlah ruang storan di dalam server fizikal
Apakah manfaat jika saya ingin pergi ke perkomputeran maya?
1. Server dapat di'consolidate'. Untuk kes saya, perkomputeran maya saya mempunyai 171 server maya di dalam beberapa esxi host.
2. Ruang dapat dijimatkan. Saya telah membuat p2v (physical to virtual) lebih kurang 30-40 server yang ada di dalam Pusat Data yang dikendalikan oleh pasukan saya.
3. Mengurangkan penggunaan tenaga elektrik. Dengan pengurangan bilangan server tenaga elektrik yang digunakan akan berkurangan.
4. Menyenangkan proses ke perkomputeran awan (cloud computing).
Kelemahan perkomputeran maya
1. Kos permulaan yang tinggi (high upfront cost) yang mungkin menyebabkan pengurusan berat hati untuk membenarkan perlaksanaan projek perkomputeran maya
2. Terlalu banyak perkakasan yang perlu dikendalikan berbanding cara lama (server, storage, network switch, storage switch, fiber card, network cabling)
3. 'High learning curve'. Hal ini kerana pentadbir perkomputeran maya bukan sahaja perlu mengetahui tentang server malah storage, operating system, scripting, networking operational & theory, dan lain-lain.
Akan datang - Perkomputeran Maya II : Persediaan Sebelum Ke Perkomputeran Maya
Perkomputeran maya (virtualization) merupakan suatu teknologi yang membenarkan sesuatu komputer fizikal (PC, notebook, server) mempunyai lebih dari satu sistem pengoperasian dan boleh berfungsi pada masa yang sama. Hal ini bermakna sistem pengoperasian ini berkongsi menggunakan CPU, RAM, ruang storan, kad grafik, kad audio, kad rangkaian dan lain-lain pada masa yang sama.
Terdapat beberapa perisian yang boleh menyokong perkomputeran maya ini. Antaranya adalah VMware vSphere, Microsoft HyperV, RedHat KVM, Oracle VirtualBox, VMware Workstation, Citrix XenServer dan lain-lain lagi.
Apakah perkomputeran maya?
Secara ringkasnya, perkomputeran maya merupakan satu sistem pengoperasian (di dalam server) atau sistem aplikasi (di dalam PC, notebook) yang membenarkan komputer maya dicipta. Di dalam bahasa perkomputeran maya, ianya dikenali sebagai hypervisor. VMware vSphere dan Microsoft HyperV merupakan antara hypervisor yang banyak digunakan dan peneraju utama di dalam perkomputeran maya. Di dalam perkomputeran maya dipecahkan kepada dua iaitu full virtualization (VMware vSphere) dan paravirtual (RedHat KVM). Di dalam artikel ini saya akan lebih menjurus kepada full virtualization dan bukannya paravirtual.
Jika anda tidak menggunakan perkomputeran maya, setiap server hanya mempunyai satu sistem pengoperasian dengan beberapa aplikasi. Malah ada server-server yang hanya mempunyai satu aplikasi. Sebagai contoh, web server dan server pangkalan data. Di dalam perkomputeran maya, server-server ini boleh diletakkan di dalam satu server dan akan berinteraksi dengan hypervisor untuk mengakses kepada perkakasan fizikal yang terdapat di dalam server tersebut. Server-server maya ini dikenali sebagai virtual machines atau di kalangan pentadbir perkomputeran maya ianya dipanggil vm. Untuk server fizikal yang mempunyai hypervisor ianya dikenali sebagai esxi host (utk VMware vSphere) atau hyperv (untuk Microsoft HyperV).
Apakah hypervisor?
Hypervisor merupakan satu sistem pengoperasian yang digunakan bagi membolehkan interaksi di antara server-server maya dan perkakasan di dalam server fizikal berlaku. Hypervisor ini juga akan 'melihat' dan merekodkan setiap aktiviti server-server maya yang terdapat di dalamnya. Disebabkan hypervisor akan melakukan pelbagai aktiviti bagi menyokong server-server maya, adalah tidak disarankan untuk memasang pelbagai perisian atau aplikasi ke dalam hypervisor ini. Segala interaksi di antara pentadbir dan hypervisor adalah melalui satu antaramuka terpusat (VMware vCenter atau Microsoft System Center Virtual Machine Manager - SCVMM).
Apabila saya menjurus ke dalam bidang ini, saya tertanya-tanya bagaimanakah hypervisor boleh memberikan perkakasan yang sama kepada server-server maya ini? Hal ini terjawab selepas saya menjadi pentadbir kepada perkomputeran maya. Hypervisor akan membuat perkakasan maya dan di'beri'kan kepada server-server maya. Bergantung kepada perkakasan yang diminta, ianya merangkumi CPU, RAM, Hard disk, IO dan lain-lain. Namun begitu ianya mempunyai had tertentu. Sebagai contoh, ruangan storan yang diberi adalah bergantung kepada ruangan storan fizikal yang terdapat di dalam server. Begitu juga dengan RAM dan IO. Ianya tidak akan melebihi nilai yang ada di dalam server fizikal. Namun begitu, teknologi terkini membenarkan ruangan storan diberi melebihi dari ruangan storan fizikal (thin provisioning), namun ianya masih tertakluk kepada ruangan storan fizikal. Begitu juga dengan RAM. Ada teknologi dikenali sebagai Memory Overcommit yang membenarkan RAM diberi kepada server maya melebihi RAM di dalam server fizikal. Namun teknologi ini bergantung kepada ruang storan yang terdapat di dalam server fizikal dan tidak melebihi 2x dari nilai RAM (kerana ianya bergantung kepada teknologi paging yang ada di dalam sistem pengoperasian).
Agak mengelirukan bukan? Ikut tips ini :
1. Jumlah RAM di dalam server maya < dari jumlah ram di dalam server fizikal
2. Jumlah ruang storan di dalam server maya (thin provisioning) < 200% dari jumlah ruang storan di dalam server fizikal
Apakah manfaat jika saya ingin pergi ke perkomputeran maya?
1. Server dapat di'consolidate'. Untuk kes saya, perkomputeran maya saya mempunyai 171 server maya di dalam beberapa esxi host.
2. Ruang dapat dijimatkan. Saya telah membuat p2v (physical to virtual) lebih kurang 30-40 server yang ada di dalam Pusat Data yang dikendalikan oleh pasukan saya.
3. Mengurangkan penggunaan tenaga elektrik. Dengan pengurangan bilangan server tenaga elektrik yang digunakan akan berkurangan.
4. Menyenangkan proses ke perkomputeran awan (cloud computing).
Kelemahan perkomputeran maya
1. Kos permulaan yang tinggi (high upfront cost) yang mungkin menyebabkan pengurusan berat hati untuk membenarkan perlaksanaan projek perkomputeran maya
2. Terlalu banyak perkakasan yang perlu dikendalikan berbanding cara lama (server, storage, network switch, storage switch, fiber card, network cabling)
3. 'High learning curve'. Hal ini kerana pentadbir perkomputeran maya bukan sahaja perlu mengetahui tentang server malah storage, operating system, scripting, networking operational & theory, dan lain-lain.
Akan datang - Perkomputeran Maya II : Persediaan Sebelum Ke Perkomputeran Maya
Nur Kasih
Tadi waktu dok melepak kat bilik server rasa kebosanan yg amat, so tgk la status kekawan dalam YM. Nampak Khuzaimi nye status "Nur Kasih - khuzaimi.blogspot.com". Aku ingatkan dia blog pasal Nur Kasih.
Aku : Weh, aku ingatkan ko blog pasal Nur Kasih.
Mie : Hang tengok Nur Kasih sebab minat kat Nur Amira ke?
Aku : Sape Nur Amira?
Mie : Yang kawen dengan Remy tuh.
Aku : Oh, aku tak suka sangat kat Nur Amira. Aku suka adik dia.
Mie : Yang kecik-kecik tu eh?
Aku : A'ah. Adik dia yang gedik tuh.
Mie : Baru je aku nak taip gedik.
Ah, kisah perbualan YM yang singkat tapi dapat menenangkan jiwa.
Aku : Weh, aku ingatkan ko blog pasal Nur Kasih.
Mie : Hang tengok Nur Kasih sebab minat kat Nur Amira ke?
Aku : Sape Nur Amira?
Mie : Yang kawen dengan Remy tuh.
Aku : Oh, aku tak suka sangat kat Nur Amira. Aku suka adik dia.
Mie : Yang kecik-kecik tu eh?
Aku : A'ah. Adik dia yang gedik tuh.
Mie : Baru je aku nak taip gedik.
Ah, kisah perbualan YM yang singkat tapi dapat menenangkan jiwa.
Update saja-saja
Baru aku perasan nama ubat dalam entry Ambil Ubat dan Danial penat lagi silap eja. Sebenarnya budesionide bukan bodesinode. Sorry.
Aku nih banyak menda nak citer, tapi bila online je terus hilang. Aiseh. Susah tul cam nih. Cam ne la nak jadik blogger nih.
Oh, En Mau telah selamat mendapat seorang cahaya mata perempuan. Tahniah Mau. Apa nama anak? Welcome to the club. Tak cukup tido la ko nanti. Hahaha..
Aku dok stadi makin banyak menda. Rasa cam tak cukup masa je nak stadi semua-semua menda. Makin banyak stadi makin terasa makin banyak tak tau. Terasa begitu kerdilnya la diri aku bila melihatkan ilmu IT yang begitu banyak menggunung. Kalau dibandingkan, aku rasa tak sampai setitik pun ilmu yang aku ada sekarang nih. Kalaulah ilmu yg ada kat aku adalah setitik ilmu berbanding selautan ilmu yang ada di tangan manusia, bayangkan bagaimana ilmu yang ada pada Allah. Pengetahuan yang ada pada manusia berbanding Allah adalah hanya setitik air yang terlekat di jari berbanding selautan air. Jadi ilmu aku adalah lagi kecil dari seluruh ilmu manusia lagi kecil dari ilmu yang ada pada Allah.
Aku ada blog-hopping dan melawat blog-blog rakan dan keluarga, ramai lak yang wat speedtest. Aku ada gak wat, tapi malulah nak tampal kat sini. Orang lain lagi hebat je aku tengok.
Bilalah aku nih dapat concentrate dalam satu menda je nih. Setakat ni, software dah penah buat, website dah pernah buat, mengajar programming dan software dah pernah wat, server dah banyak install, sekarang nih kena concentrate network lak. Itu pun bukan 100% dok concentrate kat network. Kalau 100% ok gak. Nak cakap versatile tak gak. Aduih.
Danial dgn Irfan makin sembuh. Dengar lah batuk kahak diaorang pagi-pagi. Kalau aku leh tolong utk diaorg muntahkan kahak, aku tolong. Tapi biasanya cuma leh bagi ubat dan madu la untuk cepatkan baik. Dah macam-macam cara cuba, madu merupakan cara perubatan alternatif yang aku cuba lakukan untuk anak-anak aku ni. Danial dah leh makan 1/4 sudu kecik madu. Irfan makan lebihan apa yang Danial makan. Sebenarnya fobia sket nak bagi madu kat dua orang budak ni memandangkan Danial ada history cirit-birit makan madu. Setakat ni Irfan tak de la lak. Makan roti canai selamba je. Mungkin sebab Irfan fully breast-feed kot. Danial dulu terus minum susu formula. Pastu tukar jap ke susu formula soya sebab kemerah-merahan. Dari Dutch Lady Langkah 1 ke susu soya balik ke Dutch Lady langkah 1 ke Dutch Lady langkah 2 ke Enfa-apa-ntah ke Enfagrow. Sampai lah sekarang minum Enfagrow. Tapi semenjak sakit nih dia cam refuse nak minum susu. Selalu tak nak minum. Entahlah.
Aku nih banyak menda nak citer, tapi bila online je terus hilang. Aiseh. Susah tul cam nih. Cam ne la nak jadik blogger nih.
Oh, En Mau telah selamat mendapat seorang cahaya mata perempuan. Tahniah Mau. Apa nama anak? Welcome to the club. Tak cukup tido la ko nanti. Hahaha..
Aku dok stadi makin banyak menda. Rasa cam tak cukup masa je nak stadi semua-semua menda. Makin banyak stadi makin terasa makin banyak tak tau. Terasa begitu kerdilnya la diri aku bila melihatkan ilmu IT yang begitu banyak menggunung. Kalau dibandingkan, aku rasa tak sampai setitik pun ilmu yang aku ada sekarang nih. Kalaulah ilmu yg ada kat aku adalah setitik ilmu berbanding selautan ilmu yang ada di tangan manusia, bayangkan bagaimana ilmu yang ada pada Allah. Pengetahuan yang ada pada manusia berbanding Allah adalah hanya setitik air yang terlekat di jari berbanding selautan air. Jadi ilmu aku adalah lagi kecil dari seluruh ilmu manusia lagi kecil dari ilmu yang ada pada Allah.
Aku ada blog-hopping dan melawat blog-blog rakan dan keluarga, ramai lak yang wat speedtest. Aku ada gak wat, tapi malulah nak tampal kat sini. Orang lain lagi hebat je aku tengok.
Bilalah aku nih dapat concentrate dalam satu menda je nih. Setakat ni, software dah penah buat, website dah pernah buat, mengajar programming dan software dah pernah wat, server dah banyak install, sekarang nih kena concentrate network lak. Itu pun bukan 100% dok concentrate kat network. Kalau 100% ok gak. Nak cakap versatile tak gak. Aduih.
Danial dgn Irfan makin sembuh. Dengar lah batuk kahak diaorang pagi-pagi. Kalau aku leh tolong utk diaorg muntahkan kahak, aku tolong. Tapi biasanya cuma leh bagi ubat dan madu la untuk cepatkan baik. Dah macam-macam cara cuba, madu merupakan cara perubatan alternatif yang aku cuba lakukan untuk anak-anak aku ni. Danial dah leh makan 1/4 sudu kecik madu. Irfan makan lebihan apa yang Danial makan. Sebenarnya fobia sket nak bagi madu kat dua orang budak ni memandangkan Danial ada history cirit-birit makan madu. Setakat ni Irfan tak de la lak. Makan roti canai selamba je. Mungkin sebab Irfan fully breast-feed kot. Danial dulu terus minum susu formula. Pastu tukar jap ke susu formula soya sebab kemerah-merahan. Dari Dutch Lady Langkah 1 ke susu soya balik ke Dutch Lady langkah 1 ke Dutch Lady langkah 2 ke Enfa-apa-ntah ke Enfagrow. Sampai lah sekarang minum Enfagrow. Tapi semenjak sakit nih dia cam refuse nak minum susu. Selalu tak nak minum. Entahlah.
Gembira rasa hati
Gembiranya rasa bila pengasuh-pengasuh Danial kat Hadhanah bagitau yang Danial makin yakin untuk jalan. Kat umah pun sebenarnya dia dah boleh berdiri lama-lama gitu. Berjalan kalau pimpin tangan atau pegang dinding memang laju. Yang susah sket bila orang lepas tangan dia. Sekarang nih dah boleh 2-3 langkah. Tak pe. Biar lambat asal selamat. Mungkin sebab dulu-dulu kerap jatuh, so, dia takut-takut sket. :)
On the other hand, I've concentrate doing my task in managing servers and installing new servers. I love doing this job coz I can explore and study lots of things. Nevertheless, I still need to do some programming stuff. Its expected coz I work in Computer's field and not other programmers mostly are already have lots of projects to do.
On the other hand, I've concentrate doing my task in managing servers and installing new servers. I love doing this job coz I can explore and study lots of things. Nevertheless, I still need to do some programming stuff. Its expected coz I work in Computer's field and not other programmers mostly are already have lots of projects to do.
Pengaturcaraan 101
Pengaturcaraan merupakan salah satu perkara yang penting jika menuntut ilmu yang berasaskan bidang Sains Komputer. Pengaturcaraan juga merupakan 'tembok' yang menentukan sama ada seseorang pelajar itu dapat dilatih dengan ilmu Sains Komputer atau tidak. Dan kebanyakan kertas-kertas pembelajaraan dalam bidang Sains Komputer menjurus kepada pengaturcaraan secara khususnya dan amnya.
Pengaturcaraan dapat digambarkan sebagai perkara yang dilakukan untuk menghasilkan sesuatu objek. Sebagai contoh, jika kita ingin membina rumah, salah satu proses dalam membina rumah itu adalah terdiri daripada pengaturcaraan. Integrated Development Environment (IDE) yang digunakan bagi membangunkan program dapat diibaratkan sebagai tukul, gergaji dan lain-lain perkakasan yang kita gunakan bagi membangunkan rumah. Sintaks yang terdapat dalam sesuatu bahasa dapat diibaratkan dengan syarat-syarat yang diperlukan bagi membina rumah. Sebagai contoh, kita memerlukan simen bagi melekatkan bata-bata di tempat yang sepatutnya.
Seperti juga pembinaan rumah, semakin banyak fungsi yang perlu dimasukkan ke dalam sesuatu program, semakin kompleks sesuatu program. Disebabkan itulah sebelum kita membangunkan sesuatu program, kita perlu mempunyai rekabentuk program yang dihasilkan melalui Kitar Hayat Pembangunan Perisian ("Software Development Life Cycle"). Jika kita lihat di dalam SDLC pengaturcaraan hanyalah satu bahagian daripada 4 bahagian yang ada dalam SDLC iaitu Analisis, Rekabentuk, Pengaturcaraan dan Pengujian. Jika saya mempunyai peluang, saya akan menerangkan tentang SDLC dengan lebih lanjut di dalam artikel yang seterusnya.
Kebanyakan kumpulan pembangunan perisian gagal melaksanakan SDLC dalam sesuatu pembangunan perisian. Mengapa agaknya? Hal ini kerana tekanan dari pengguna yang mahukan sesuatu program dalam tempoh yang singkat. Jadi artikel ini dan artikel-artikel seterusnya (insya-Allah jika saya masih sihat dan sempat saya akan menulis artikel-artikel lain) adalah untuk menerangkan konsep pengaturcaraan (dari asas) dan SDLC dalam bahasa yang mudah.
Berbalik kepada pengaturcaraan. Jika dipelajari dalam Pengaturcaraan 101 maka para pensyarah akan menerangkan bahawa ada bahasa generasi ketiga, keempat dan lain-lain. Pada pendapat saya, generasi-generasi bahasa tidak penting berbanding dengan jenis bahasa yang kita ada. Secara amnya terdapat 2 jenis bahasa pengaturcaraan iaitu yang perlu dikompil (compile - adalah proses penukaran bahasa dari bahasa yang difahami oleh manusia kepada bahasa yang difahami oleh komputer atau dipanggil kod komputer) dan interpreter (yang hanya terus dilarikan sahaja tanpa perlu dikompil). Ada juga jenis yang hidrib iaitu gabungan di antara compiler dan interpreter. Java adalah salah satu yang terlintas di fikiran saya buat masa kini.
Disebabkan kompleksiti yang dihadapi oleh pelajar semasa membuat program, maka ramai pelajar yang patah semangat di tengah jalan. Disebabkan itu, ada di antara mereka yang mengubah haluan semasa belajar dengan bertukar kepada kursus yang lain. Ada juga di antara mereka yang tamat pengajian dengan Ijazah Sains Komputer tetapi bekerja di dalam bidang yang lain. Apabila ditanya maka jawapan yang diterima adalah tidak mahu membuat program. Perkara ini membuatkan negara kita kerugian dari segi wang ringgit, masa dan tenaga dalam melatih pelajar-pelajar ini. Disebabkan itu kita masih tidak lagi mampu mengisi kekosongan jawatan dalam bidang ini kerana ramai graduan kita yang tidak mahu membuat program setelah bekerja.
Dalam artikel yang seterusnya, saya akan cuba menerangkan konsep SDLC secara am.
Pengaturcaraan dapat digambarkan sebagai perkara yang dilakukan untuk menghasilkan sesuatu objek. Sebagai contoh, jika kita ingin membina rumah, salah satu proses dalam membina rumah itu adalah terdiri daripada pengaturcaraan. Integrated Development Environment (IDE) yang digunakan bagi membangunkan program dapat diibaratkan sebagai tukul, gergaji dan lain-lain perkakasan yang kita gunakan bagi membangunkan rumah. Sintaks yang terdapat dalam sesuatu bahasa dapat diibaratkan dengan syarat-syarat yang diperlukan bagi membina rumah. Sebagai contoh, kita memerlukan simen bagi melekatkan bata-bata di tempat yang sepatutnya.
Seperti juga pembinaan rumah, semakin banyak fungsi yang perlu dimasukkan ke dalam sesuatu program, semakin kompleks sesuatu program. Disebabkan itulah sebelum kita membangunkan sesuatu program, kita perlu mempunyai rekabentuk program yang dihasilkan melalui Kitar Hayat Pembangunan Perisian ("Software Development Life Cycle"). Jika kita lihat di dalam SDLC pengaturcaraan hanyalah satu bahagian daripada 4 bahagian yang ada dalam SDLC iaitu Analisis, Rekabentuk, Pengaturcaraan dan Pengujian. Jika saya mempunyai peluang, saya akan menerangkan tentang SDLC dengan lebih lanjut di dalam artikel yang seterusnya.
Kebanyakan kumpulan pembangunan perisian gagal melaksanakan SDLC dalam sesuatu pembangunan perisian. Mengapa agaknya? Hal ini kerana tekanan dari pengguna yang mahukan sesuatu program dalam tempoh yang singkat. Jadi artikel ini dan artikel-artikel seterusnya (insya-Allah jika saya masih sihat dan sempat saya akan menulis artikel-artikel lain) adalah untuk menerangkan konsep pengaturcaraan (dari asas) dan SDLC dalam bahasa yang mudah.
Berbalik kepada pengaturcaraan. Jika dipelajari dalam Pengaturcaraan 101 maka para pensyarah akan menerangkan bahawa ada bahasa generasi ketiga, keempat dan lain-lain. Pada pendapat saya, generasi-generasi bahasa tidak penting berbanding dengan jenis bahasa yang kita ada. Secara amnya terdapat 2 jenis bahasa pengaturcaraan iaitu yang perlu dikompil (compile - adalah proses penukaran bahasa dari bahasa yang difahami oleh manusia kepada bahasa yang difahami oleh komputer atau dipanggil kod komputer) dan interpreter (yang hanya terus dilarikan sahaja tanpa perlu dikompil). Ada juga jenis yang hidrib iaitu gabungan di antara compiler dan interpreter. Java adalah salah satu yang terlintas di fikiran saya buat masa kini.
Disebabkan kompleksiti yang dihadapi oleh pelajar semasa membuat program, maka ramai pelajar yang patah semangat di tengah jalan. Disebabkan itu, ada di antara mereka yang mengubah haluan semasa belajar dengan bertukar kepada kursus yang lain. Ada juga di antara mereka yang tamat pengajian dengan Ijazah Sains Komputer tetapi bekerja di dalam bidang yang lain. Apabila ditanya maka jawapan yang diterima adalah tidak mahu membuat program. Perkara ini membuatkan negara kita kerugian dari segi wang ringgit, masa dan tenaga dalam melatih pelajar-pelajar ini. Disebabkan itu kita masih tidak lagi mampu mengisi kekosongan jawatan dalam bidang ini kerana ramai graduan kita yang tidak mahu membuat program setelah bekerja.
Dalam artikel yang seterusnya, saya akan cuba menerangkan konsep SDLC secara am.
Joomla
I've installed Joomla today. Blame it on my curiosity and also because some of my colleagues want to try on real server. Because of the 'realness' of my server, so, I agreed to install the software. The funny thing is, I didn't see version 1.5 until later (meaning I've finished installing version 1.0.15). Then I see version 1.5. Heck. Now I've got two Joomla version in my server.
On unrelated note, I think Danial is missing me. I've do video call with my wife yesterday (or the day before) because she said Danial is near her. So, I video called her. When Danial see me, he cried. Poor son.
I'm bored staying at home now because I'm alone. I've finished watching 3 DVDs. Tokyo Drift (yeah, I'm late, so what?), Devils Wear Prada (no fight but entertaining) and another story which I forget. Plan to seek another DVDs later but with not enough fund, maybe I just watched anime for now. Aduih. Anyone want to increase my fund? :P
Oh, about anime. I'm hooked with Macross Frontier. Nice story, nice jet, nice characters. But..eh, I will review it later since I've got 'too much time to spend' (yeah, too much time...).
I'm think I want to eat maggi tonite. Hehehe..want to join me?
Later guys.
On unrelated note, I think Danial is missing me. I've do video call with my wife yesterday (or the day before) because she said Danial is near her. So, I video called her. When Danial see me, he cried. Poor son.
I'm bored staying at home now because I'm alone. I've finished watching 3 DVDs. Tokyo Drift (yeah, I'm late, so what?), Devils Wear Prada (no fight but entertaining) and another story which I forget. Plan to seek another DVDs later but with not enough fund, maybe I just watched anime for now. Aduih. Anyone want to increase my fund? :P
Oh, about anime. I'm hooked with Macross Frontier. Nice story, nice jet, nice characters. But..eh, I will review it later since I've got 'too much time to spend' (yeah, too much time...).
I'm think I want to eat maggi tonite. Hehehe..want to join me?
Later guys.
Digital Divide
I write this post on 27 April 2005.
We talk about Multimedia Super Corridor (MSC) to the world,
Yet, there are so many Malaysian still illiterate in using computers,
We talk about our oh so fine infrastructure,
Yet, our broadband penetration is still low,
We talk about increasing broadband limit,
Yet, our Streamyx is full of problem.
Enough say.
On Monday morning, I went to bank to withdraw some money (it's a payday BTW). Then, I saw two guys having problem in using the ATM card.
Me : What happened?
Guy 1 : He want to use the card to withdraw money but cannot.
Me : Is this the first time you use the card?
Guy 2 : Yes
Me : You need to change the pin number.
Guy 1 : I've told you that you need to change the pin number. Could you show it to him? (Aku dah habaq dah yang hang kena tukar nombor tu. Boleh tunjuk sat tak?)
Me : Can.. *I take the card from them and go to the one of the ATM available there*. *Insert card* Now, select the language.
Guy 2 : * Push BM button*
Me : Enter your pin number.
Guy 2 : Which one?
Me : Do you get the letter from bank? The pin number is in the letter.
Guy 2 : This one?
Me : Yup.
Guy 2 : *Want to punch the button suddenly*
Guy 1 : You are too slow. (Hang lambat laa)*punch the pin number*
Me : Now you need to change the pin number.
Guy 2 : I can use any number?
Me : Yup, any number.
Guy 2 : *want to enter a new pin number*
Guy 1 : You are too slow. What the number you want?
Guy 2 : x-x-x-x-x-x. Can?? (x-x-x-x-x-x. Boleh ka?)
Guy 1 : *enter the new pin number*
Me : You need to enter the new number.
Guy 1 : *re-enter the new number*
Me : *shake head in disbelief* Now you can withdraw the money. *explain the menu*
Guy 1 : *push the withdraw button and withdraw RM1000*
Me : *want to punch him hard in the belly*
Guy 2 : Thank you so much.
Me : Your welcome. Please remember your pin number.
Now, could you see it? We talk so much about MSC, broadband, digital age and etc. Meanwhile, there are other Malaysian out there that cannot even use ATM machine. For God sake, the ATM machine is the most easiest to use (beside vending machine of course). So, what can we do for them? If we want to move towards digital age, we need to bring everyone there. If not, forget about MSC, broadband, digital age and etc because at that time, the digital divide will become bigger and deeper.
These are the comments from my loyal readers.
At 11:52 PM, Blogger obiwan said...
Complete the sentence! Please! I NEED CLOSURE!!!
At 9:30 AM, Blogger - mie - said...
hehehe..sorry obi. tak perasan pun tak complete. main copy and paste je from the text file.
At 10:09 AM, Anonymous Anonymous said...
hahaha... ape la bengap sgt budak tu... selama ni tak penah pakai kad atm ke? kesiannya...
dah masuk u pun tak reti2 lagi.... kalau budak sekolah yg masuk hostel tak reti guna tu, paham2 gak la... ni umur pun dah tua...
lain kali, baca la surat bank tu, baca arahan... ni main buang aje.. kan dah susah... hehhheh...
- aurinh -
We talk about Multimedia Super Corridor (MSC) to the world,
Yet, there are so many Malaysian still illiterate in using computers,
We talk about our oh so fine infrastructure,
Yet, our broadband penetration is still low,
We talk about increasing broadband limit,
Yet, our Streamyx is full of problem.
Enough say.
On Monday morning, I went to bank to withdraw some money (it's a payday BTW). Then, I saw two guys having problem in using the ATM card.
Me : What happened?
Guy 1 : He want to use the card to withdraw money but cannot.
Me : Is this the first time you use the card?
Guy 2 : Yes
Me : You need to change the pin number.
Guy 1 : I've told you that you need to change the pin number. Could you show it to him? (Aku dah habaq dah yang hang kena tukar nombor tu. Boleh tunjuk sat tak?)
Me : Can.. *I take the card from them and go to the one of the ATM available there*. *Insert card* Now, select the language.
Guy 2 : * Push BM button*
Me : Enter your pin number.
Guy 2 : Which one?
Me : Do you get the letter from bank? The pin number is in the letter.
Guy 2 : This one?
Me : Yup.
Guy 2 : *Want to punch the button suddenly*
Guy 1 : You are too slow. (Hang lambat laa)*punch the pin number*
Me : Now you need to change the pin number.
Guy 2 : I can use any number?
Me : Yup, any number.
Guy 2 : *want to enter a new pin number*
Guy 1 : You are too slow. What the number you want?
Guy 2 : x-x-x-x-x-x. Can?? (x-x-x-x-x-x. Boleh ka?)
Guy 1 : *enter the new pin number*
Me : You need to enter the new number.
Guy 1 : *re-enter the new number*
Me : *shake head in disbelief* Now you can withdraw the money. *explain the menu*
Guy 1 : *push the withdraw button and withdraw RM1000*
Me : *want to punch him hard in the belly*
Guy 2 : Thank you so much.
Me : Your welcome. Please remember your pin number.
Now, could you see it? We talk so much about MSC, broadband, digital age and etc. Meanwhile, there are other Malaysian out there that cannot even use ATM machine. For God sake, the ATM machine is the most easiest to use (beside vending machine of course). So, what can we do for them? If we want to move towards digital age, we need to bring everyone there. If not, forget about MSC, broadband, digital age and etc because at that time, the digital divide will become bigger and deeper.
These are the comments from my loyal readers.
At 11:52 PM, Blogger obiwan said...
Complete the sentence! Please! I NEED CLOSURE!!!
At 9:30 AM, Blogger - mie - said...
hehehe..sorry obi. tak perasan pun tak complete. main copy and paste je from the text file.
At 10:09 AM, Anonymous Anonymous said...
hahaha... ape la bengap sgt budak tu... selama ni tak penah pakai kad atm ke? kesiannya...
dah masuk u pun tak reti2 lagi.... kalau budak sekolah yg masuk hostel tak reti guna tu, paham2 gak la... ni umur pun dah tua...
lain kali, baca la surat bank tu, baca arahan... ni main buang aje.. kan dah susah... hehhheh...
- aurinh -
HP Integrity Server
After several attempts of loading storage drivers from the HP website failed, I looked somewhere else. I noticed when I configure the SAS controller, I can see the controller's name - LSI Logic SAS 1068 Controller. I wonder whether I can download it from its main company website.
With the help of Uncle Google, I manage to find the driver. Now for the try and error. I load the driver into USB pendrive (you know that you can use your USB as 'floppy'). It only manage to load during the formatting process but fail when the real 'action' begins. It need floppy drive. What the heck? No floppy drive is come with the server. So, what can I do. Search the web of course but to no avail. Although, there are lots of solutions out there but I can't used it. Then I search for floppy drive. Of course I found it.
But the thing is I stupidly asked Windows to install by itself by using unattended file that come with the OS. Stupid me. And its failed to finalize the installation. I spend useless 5 hours to troubleshoot the error. I read from HP website that said the SAS controller is not supported by Windows 2003. What it is mean from the website is that, the driver that is provided by LSI Logic is not signed (and approved) by Microsoft. After using manual installation (which mean I need to wait in front of the servers to put the configuration), its works.
Anyway, thanks to this task, I manage to gain another experience in installing server. Thank you very much. :)
p/s: Happy New Year (Gong Xi Fa Cai) to everyone who celebrate Lunar New Year. I will go back to my in laws and parents home this coming holiday. Take care everyone. Drive safely.
With the help of Uncle Google, I manage to find the driver. Now for the try and error. I load the driver into USB pendrive (you know that you can use your USB as 'floppy'). It only manage to load during the formatting process but fail when the real 'action' begins. It need floppy drive. What the heck? No floppy drive is come with the server. So, what can I do. Search the web of course but to no avail. Although, there are lots of solutions out there but I can't used it. Then I search for floppy drive. Of course I found it.
But the thing is I stupidly asked Windows to install by itself by using unattended file that come with the OS. Stupid me. And its failed to finalize the installation. I spend useless 5 hours to troubleshoot the error. I read from HP website that said the SAS controller is not supported by Windows 2003. What it is mean from the website is that, the driver that is provided by LSI Logic is not signed (and approved) by Microsoft. After using manual installation (which mean I need to wait in front of the servers to put the configuration), its works.
Anyway, thanks to this task, I manage to gain another experience in installing server. Thank you very much. :)
p/s: Happy New Year (Gong Xi Fa Cai) to everyone who celebrate Lunar New Year. I will go back to my in laws and parents home this coming holiday. Take care everyone. Drive safely.
HP Integrity Server
Configuring a HP Integrity Server right now. What I don't understand is that, why it is difficult to install Windows 2003 Server for Itanium into the server. It cannot detect hard disk, the storage controller driver is incorrect and I only know you need to configure the hard disk (or array) before you install the server. Damn leceh la. Now has to try each driver for storage that available for the server. Isk..isk..
I vow not to buy this server ever.
I vow not to buy this server ever.
How to create user in Rocks
Creating user in Rocks is simple. And also because of the availability of lots of scripting tools build into the operating system made exporting username and password to client nodes is much more simpler than before.
Before I use Rocks in my cluster, I had used Red Hat 7.0, 7.3, 8.0, 8.1, 9.0, Fedora Core, FC2 and Slackware 9, 10, and 11 in my cluster. Except Slackware 11 where I'm tinkering with LDAP to do some authentication, I used NIS (Network Information Services) to manage the authentication at client nodes. At those time, I'm not that good in creating script using BASH or CSH (still not good today). But I managed to create some script to add user based on input file.
So, back to the topic. How to create user(s) in Rocks? Simple.
1. Use useradd command to a new user.
$ useradd myUser
2. Create password for the user
$ passwd myUser
Changing password for user myUser
New UNIX password :
Retype new UNIX password :
passwd : all authentication tokens updated successfully
After you sending the particular to the user, remind the user to change the password. It is a good practice if you can integrate some sort of tools to test the strong'ness' of user's password.
3. Use command rocks-user-sync to send the user's details throughout the cluster.
$ rocks-user-sync
There are many output will be displayed to your screen. Don't panic. It's means the process work smoothly (unless it mentioned fail somewhere in the output)
4. Ask your user to try to login into the account. You can do the test by login into the account. Or if you create 100 or more accounts, you can pick random account to test. After you login into the account, test login into other nodes in the cluster by using ssh. Lets say I has a compute node name compute-0-0.
$ ssh compute-0-0
5. If the client didn't prompt password during login, its mean everything works fine. Or if its prompt password and you can successfully login without any problem, it also means everything works fine.
There are other test to run to make sure the user's accounts work fine.
1. NFS test
Copy any file into the user account in the main node (or any node). If the file appear in other nodes, so, NFS work fine. If not, contact your admin (or if you are the admin, please troubleshoot NFS) so, they can troubleshoot the NFS.
2. SGE test
note to self : please put some test for SGE
3. MPICH test
Before I use Rocks in my cluster, I had used Red Hat 7.0, 7.3, 8.0, 8.1, 9.0, Fedora Core, FC2 and Slackware 9, 10, and 11 in my cluster. Except Slackware 11 where I'm tinkering with LDAP to do some authentication, I used NIS (Network Information Services) to manage the authentication at client nodes. At those time, I'm not that good in creating script using BASH or CSH (still not good today). But I managed to create some script to add user based on input file.
So, back to the topic. How to create user(s) in Rocks? Simple.
1. Use useradd command to a new user.
$ useradd myUser
2. Create password for the user
$ passwd myUser
Changing password for user myUser
New UNIX password :
Retype new UNIX password :
passwd : all authentication tokens updated successfully
After you sending the particular to the user, remind the user to change the password. It is a good practice if you can integrate some sort of tools to test the strong'ness' of user's password.
3. Use command rocks-user-sync to send the user's details throughout the cluster.
$ rocks-user-sync
There are many output will be displayed to your screen. Don't panic. It's means the process work smoothly (unless it mentioned fail somewhere in the output)
4. Ask your user to try to login into the account. You can do the test by login into the account. Or if you create 100 or more accounts, you can pick random account to test. After you login into the account, test login into other nodes in the cluster by using ssh. Lets say I has a compute node name compute-0-0.
$ ssh compute-0-0
5. If the client didn't prompt password during login, its mean everything works fine. Or if its prompt password and you can successfully login without any problem, it also means everything works fine.
There are other test to run to make sure the user's accounts work fine.
1. NFS test
Copy any file into the user account in the main node (or any node). If the file appear in other nodes, so, NFS work fine. If not, contact your admin (or if you are the admin, please troubleshoot NFS) so, they can troubleshoot the NFS.
2. SGE test
note to self : please put some test for SGE
3. MPICH test
Vundo
A little bit update
I'm telling you that VundoFix can fix my laptop. Actually not quite true. The trojan hide for a while. Luckily I didn't access any online banking using my laptop. They appeared back for a while. I run VundoFix for a second time then I saw an unrecognized dll appeared in VundoFix. Try to remove but failed. So, I reboot my PC to remove it during boot time but also failed. I used HijackThis to delete key from registry file. I stop iexplore.exe and explorer.exe but it seems the trojans is tied to my winlogon.exe. So, I'm still working for a way to remove this bastard from my laptop. Stay tuned. Maybe I will find the way.
Original Post
This morning I encounter a type of worm or keylogger or password stealer or whatever you want to call it in my laptop. It is so frustrating when I start my laptop, suddenly two programs (which I didn't installed) appeared on my desktop. I wondered when I installed those two programs.
After Windows finished loading, suddenly a popup message appeared telling me that the laptop is infected with keyloggers, trojans, backdoor programs and etc. I really shocked because the day before I already scan my laptop. When it was infected? Then, I searched from the internet. They said I has been infected by program. Unless you download the software 'offered' by the programs, it will not go away. Shit!
So, go to the task manager and delete whichever process that I know didn't appear before. Since my PC and laptop configuration almost the same, so, I can know which process is a rogue process. But it cannot be stop. What are other solutions? I type msconfig. Luckily the worm didn't disable the run function on the Windows. That's good. I checked startup process. Nothing. Only 3 programs. Avast!, ctfmon and one other program I forgot. So, what else. Oh, comparing from the registry. Some worms and trojans are really good at hiding themselves. But they will appear in registry. So, I opened once again the task manager and type the 'rogue' program's name into the find function. Then, I deleted all of it. Hahaha..Good? Rebooting the system.
To my dismayed, the worms or trojans still there. Double shit! Herm, what else. Oh, I know. Use Ad-Adware Removal. Good, it detected all adware and worms and trojans that using my laptop as their breeding place. Finish scanning. Good. Hahaha..So long worms! I clicked "Next" and the prompt asked me whether I want to remove all those adware and worms and trojans. Of course I want to. Suddenly, it reboot itself. I almost want to throw the notebook. Calm down. Calm down.
They are still there. Shit! Shit! Shit! What else to do? Oh, I know. I have Spybot Search and Destroy in my laptop. So, I launch Spybot to fight the trojans. Spybot found their lair. Spybot launched its most damaging move towardss the trojan's lair. Unfortunately only the childs are in the lair. The parents still roaming in my laptop. Arrgghhh!!!!
What else. What else. Oh, I know. Use Spybot in Safe Mode. The trojans will not function in Safe Mode. Reboot. Press F8 repeatedly. Ah, Safe Mode is there. Go Safe Mode!
Entered my password. Safe Mode loading the Windows. Damn! The trojans working fine in the Safe Mode. Double Arrrgghhh!!!
It must be the Services. Yes? Like I said, my configuration for both PC and laptop almost comparable. So, I compare what are the process in the services. Found one. Domain services? Whats that. Search the internet. Not found. I click it, and see the dll that the service use. kmimkogh.dll? Search from the internet. The forum said something bad about it. Hahahaha! I found it. Stop the services, delete from registry. So long sucker! Rebooting....
Triple Arrrggghhhhhhhhhhhhh!!!!!!! It still there. What else..What else..Oh, I remember, Internet Explorer add-ons. Disable all add-ons except that I know. Rebooting..Still there. Search all unauthorized add-ons in the registry. Delete all. But to no avail. It must be hiding somewhere. But where. Read from the forum. It said I've been infected by Vondo. And it listed all files that are suspected carrying Vondo's symptoms. Try to delete but to no avail.
Search some more from the Internet. Finally, I found a program that can remove vondo. It's name is VundoFix. Run the program once and the trojans were gone. Na! Na! Na! Na! Na!
Haha..I win again.
Virus+Worms+Trojans+Backdoor - 0, rzmie - 1
I'm telling you that VundoFix can fix my laptop. Actually not quite true. The trojan hide for a while. Luckily I didn't access any online banking using my laptop. They appeared back for a while. I run VundoFix for a second time then I saw an unrecognized dll appeared in VundoFix. Try to remove but failed. So, I reboot my PC to remove it during boot time but also failed. I used HijackThis to delete key from registry file. I stop iexplore.exe and explorer.exe but it seems the trojans is tied to my winlogon.exe. So, I'm still working for a way to remove this bastard from my laptop. Stay tuned. Maybe I will find the way.
Original Post
This morning I encounter a type of worm or keylogger or password stealer or whatever you want to call it in my laptop. It is so frustrating when I start my laptop, suddenly two programs (which I didn't installed) appeared on my desktop. I wondered when I installed those two programs.
After Windows finished loading, suddenly a popup message appeared telling me that the laptop is infected with keyloggers, trojans, backdoor programs and etc. I really shocked because the day before I already scan my laptop. When it was infected? Then, I searched from the internet. They said I has been infected by program. Unless you download the software 'offered' by the programs, it will not go away. Shit!
So, go to the task manager and delete whichever process that I know didn't appear before. Since my PC and laptop configuration almost the same, so, I can know which process is a rogue process. But it cannot be stop. What are other solutions? I type msconfig. Luckily the worm didn't disable the run function on the Windows. That's good. I checked startup process. Nothing. Only 3 programs. Avast!, ctfmon and one other program I forgot. So, what else. Oh, comparing from the registry. Some worms and trojans are really good at hiding themselves. But they will appear in registry. So, I opened once again the task manager and type the 'rogue' program's name into the find function. Then, I deleted all of it. Hahaha..Good? Rebooting the system.
To my dismayed, the worms or trojans still there. Double shit! Herm, what else. Oh, I know. Use Ad-Adware Removal. Good, it detected all adware and worms and trojans that using my laptop as their breeding place. Finish scanning. Good. Hahaha..So long worms! I clicked "Next" and the prompt asked me whether I want to remove all those adware and worms and trojans. Of course I want to. Suddenly, it reboot itself. I almost want to throw the notebook. Calm down. Calm down.
They are still there. Shit! Shit! Shit! What else to do? Oh, I know. I have Spybot Search and Destroy in my laptop. So, I launch Spybot to fight the trojans. Spybot found their lair. Spybot launched its most damaging move towardss the trojan's lair. Unfortunately only the childs are in the lair. The parents still roaming in my laptop. Arrgghhh!!!!
What else. What else. Oh, I know. Use Spybot in Safe Mode. The trojans will not function in Safe Mode. Reboot. Press F8 repeatedly. Ah, Safe Mode is there. Go Safe Mode!
Entered my password. Safe Mode loading the Windows. Damn! The trojans working fine in the Safe Mode. Double Arrrgghhh!!!
It must be the Services. Yes? Like I said, my configuration for both PC and laptop almost comparable. So, I compare what are the process in the services. Found one. Domain services? Whats that. Search the internet. Not found. I click it, and see the dll that the service use. kmimkogh.dll? Search from the internet. The forum said something bad about it. Hahahaha! I found it. Stop the services, delete from registry. So long sucker! Rebooting....
Triple Arrrggghhhhhhhhhhhhh!!!!!!! It still there. What else..What else..Oh, I remember, Internet Explorer add-ons. Disable all add-ons except that I know. Rebooting..Still there. Search all unauthorized add-ons in the registry. Delete all. But to no avail. It must be hiding somewhere. But where. Read from the forum. It said I've been infected by Vondo. And it listed all files that are suspected carrying Vondo's symptoms. Try to delete but to no avail.
Search some more from the Internet. Finally, I found a program that can remove vondo. It's name is VundoFix. Run the program once and the trojans were gone. Na! Na! Na! Na! Na!
Haha..I win again.
Virus+Worms+Trojans+Backdoor - 0, rzmie - 1
Installing Rocks 4.2.1 - for frontend
This entry is to guide me on how to install Rocks into my cluster. It is for me only but you can read it also. I'm tired searching the Rocks mailing list so, I've decided to put the solution (that I found) here in this blog.
When at first I install Rocks, it never get pass to the X-Window (Graphical User Interface - GUI) of Rocks. The problem is like this :
Attempting to start native X Server
Waiting for X Server to start....log located in /tmp/X.log
1..2..3..4..5.. X Server started successfully
Starting graphical installation...
The application 'mini-wm' lost its conection to the display :1.0
Most likely X server was shut down or you killed/destroyed the application
Terminated
Sending termination signals ....done
Sending kill signals ...done
disabling swap...
unmounting filesystem...
/mt/runtime umount failed (16)
disabling /dev/loop2 LOOP_CLR_FD failed : 16
/proc/bus/usb done
/proc umount failed (16)
/dev/pts done
/sys done
/tmp/ramfs umount failed (16)
/mnt/cdrom done
/export done
rebooting system
kernel panic - not syncing : VFS : Unable to mount root fs on unknown block (8,3)
So, I search the mailing list for the problem. It has 2 solutions. The first solution, make sure your frontend (or master node) has 1 GB of RAM. Less than that, you may encounter the problem. The other solution is by doing this (I've got this from here) :
In the ks.cfg file in the Kernel CD, the following commands for Anaconda are given:
dispatch.skipStep("handleX11pkgs", permanent = 1)
dispatch.skipStep("videocard", permanent = 1)
dispatch.skipStep("monitor", permanent = 1)
dispatch.skipStep("xcustom", permanent = 1)
As a result, Anaconda does not bother detecting the video card and just runs. This was the source of the problem for the failure to load X. As such, the solution is to download the .iso, mount the .iso and copy the contents into another directory for modification:
mkdir /tmp/kernel-iso
mount -o loop kernel-4.2.1-0.x86_64.disk1.iso /tmp/kernel-iso
cp -av /tmp/kernel-iso /tmp/kernel-iso-new
modify these lines in the ks.cfg file as follows:
dispatch.skipStep("handleX11pkgs", skip = 0)
dispatch.skipStep("videocard", skip = 0)
dispatch.skipStep("monitor", skip = 0)
dispatch.skipStep("xcustom", skip = 0)
remake the .iso:
mkisofs -o /tmp/kernel-4.2.1-new.iso -b isolinux/isolinux.bin \
-c isolinux/boot.cat -no-emul-boot -boot-load-size 4 \
-boot-info-table -J -R -V 'kernel disk1' .
burn it and run again.
Now, I managed to get until partitioning my hard disk. After I had set on how to partition the hard disk, Anaconda ask for Core Roll CD (that contains Area 51, Ganglia, SGE and etc). When I clicked next, this error was displayed :
Traceback (most recent call last) :
File "/var/tmp/anaconda-10.1.1.46//usr/lib/anaconda/gui.py", line 1074, in handleRenderCallback self.currentWindow.renderCallback()
File "/tmp/updates/usr/lib/anaconda/progress-gui.py", line 249 in renderCallback self.intf.icw.nextClicked()
File "/var/tmp/anaconda-10.1.1.46//usr/lib/anaconda/gui.py", line 789 in nextClicked self.dispatch.gotoNext()
File "/var/tmp/anaconda-10.1.1.46//usr/lib/anaconda/dispatch.py", line 171 in gotoNext self.moveStep()
File "/var/tmp/anaconda-10.1.1.46//usr/lib/anaconda/dispatch.py", line 239 in moveStep rc=apply(func, self.bindArgs(args))
File "/tmp/ksclass.py", line 1409 in RocksPreInstall
File "/tmp/ksclass.py", line 1397 in RocksReadComps
File "/tmp/ksclass.py", line 1332 in RocksGetRools
File "/tmp/ksclass.py", lone 1269 in downloadRoll
OSError:[Errno 2] No such file or directory :
"/mnt/sysimage/export/home/install/rolls/area51/4.2.1/i386"
My team managed to install the frontend node today. It is because we need to install automatic partitioning. I don't like automatic partitioning but I think I can endure it. But now the screen is hang. Let see if it can managed to load all of it. I'll post another updates later.
When at first I install Rocks, it never get pass to the X-Window (Graphical User Interface - GUI) of Rocks. The problem is like this :
Attempting to start native X Server
Waiting for X Server to start....log located in /tmp/X.log
1..2..3..4..5.. X Server started successfully
Starting graphical installation...
The application 'mini-wm' lost its conection to the display :1.0
Most likely X server was shut down or you killed/destroyed the application
Terminated
Sending termination signals ....done
Sending kill signals ...done
disabling swap...
unmounting filesystem...
/mt/runtime umount failed (16)
disabling /dev/loop2 LOOP_CLR_FD failed : 16
/proc/bus/usb done
/proc umount failed (16)
/dev/pts done
/sys done
/tmp/ramfs umount failed (16)
/mnt/cdrom done
/export done
rebooting system
kernel panic - not syncing : VFS : Unable to mount root fs on unknown block (8,3)
So, I search the mailing list for the problem. It has 2 solutions. The first solution, make sure your frontend (or master node) has 1 GB of RAM. Less than that, you may encounter the problem. The other solution is by doing this (I've got this from here) :
In the ks.cfg file in the Kernel CD, the following commands for Anaconda are given:
dispatch.skipStep("handleX11pkgs", permanent = 1)
dispatch.skipStep("videocard", permanent = 1)
dispatch.skipStep("monitor", permanent = 1)
dispatch.skipStep("xcustom", permanent = 1)
As a result, Anaconda does not bother detecting the video card and just runs. This was the source of the problem for the failure to load X. As such, the solution is to download the .iso, mount the .iso and copy the contents into another directory for modification:
mkdir /tmp/kernel-iso
mount -o loop kernel-4.2.1-0.x86_64.disk1.iso /tmp/kernel-iso
cp -av /tmp/kernel-iso /tmp/kernel-iso-new
modify these lines in the ks.cfg file as follows:
dispatch.skipStep("handleX11pkgs", skip = 0)
dispatch.skipStep("videocard", skip = 0)
dispatch.skipStep("monitor", skip = 0)
dispatch.skipStep("xcustom", skip = 0)
remake the .iso:
mkisofs -o /tmp/kernel-4.2.1-new.iso -b isolinux/isolinux.bin \
-c isolinux/boot.cat -no-emul-boot -boot-load-size 4 \
-boot-info-table -J -R -V 'kernel disk1' .
burn it and run again.
Now, I managed to get until partitioning my hard disk. After I had set on how to partition the hard disk, Anaconda ask for Core Roll CD (that contains Area 51, Ganglia, SGE and etc). When I clicked next, this error was displayed :
Traceback (most recent call last) :
File "/var/tmp/anaconda-10.1.1.46//usr/lib/anaconda/gui.py", line 1074, in handleRenderCallback self.currentWindow.renderCallback()
File "/tmp/updates/usr/lib/anaconda/progress-gui.py", line 249 in renderCallback self.intf.icw.nextClicked()
File "/var/tmp/anaconda-10.1.1.46//usr/lib/anaconda/gui.py", line 789 in nextClicked self.dispatch.gotoNext()
File "/var/tmp/anaconda-10.1.1.46//usr/lib/anaconda/dispatch.py", line 171 in gotoNext self.moveStep()
File "/var/tmp/anaconda-10.1.1.46//usr/lib/anaconda/dispatch.py", line 239 in moveStep rc=apply(func, self.bindArgs(args))
File "/tmp/ksclass.py", line 1409 in RocksPreInstall
File "/tmp/ksclass.py", line 1397 in RocksReadComps
File "/tmp/ksclass.py", line 1332 in RocksGetRools
File "/tmp/ksclass.py", lone 1269 in downloadRoll
OSError:[Errno 2] No such file or directory :
"/mnt/sysimage/export/home/install/rolls/area51/4.2.1/i386"
My team managed to install the frontend node today. It is because we need to install automatic partitioning. I don't like automatic partitioning but I think I can endure it. But now the screen is hang. Let see if it can managed to load all of it. I'll post another updates later.
About programming - Part 2
In the previous post, I talked a little bit about programming where I compare programming with building a house. Although not entirely same but the concept in typing a computer code and making a house is almost the same. You can't easily type anything to create a computer code. Same as building a house where you can't take wood or brick and nails or cement and build a home. You must learn about it. So, this article is my attempt to describe about computer programming in general.
So, what is a computer code? Computer code is an instruction you give to computer to do something. For example, print instruction will print something into the screen. Before the computer can understand what you want it to do, the code need to be written or translated into a binary format that the computer can understand. As most of computer science student know, the binary format is a represent by 0 and 1. For computer, 0001 and 0010 is different although for us, it almost look a same. It is easy right. Just type the instruction, translate it into a binary format and the computer can run it. But it is not that easy. Not many of us can translate computer code into a binary format. Maybe some of us can but most of us can't. So, you need a tool to do it for you. That's why we've got programming languages for developing a computer program.
Basically, there are two type of programming languages, compiler-type and interpreter-type. There are also a hybrid of both compiler and interpreter. Some of you must hear about 4th generation programming languages and etc. Trust me, it is not as important as it is. It is just a classification. Knowing which is compiler-type and interpreter-type is more important than which is 4th generation and 3rd generation and etc. To make it simple, C and C++ are compiler-type while Perl is more towards interpreter-type. What about Java? For me, I consider Java as a hybrid between compiler and interpreter-type. The difference between compiler and interpreter is simple. For compiler-type, you need to compile the executable for every type of operating system that you have because the executable can only be run on the specific platform. For example, executable for Windows XP 64-bit most probably can't run on Windows XP 32-bit OS. And of course anything compile on Linux can't run on Windows platform. While for interpreter-type, just bring your program to other platform and you can run it as long as you do not put a specific instruction for that platform. I always encounter assignment from student who use Windows command in their program. And when we run it on Linux platform those program can't run properly.
Before we write a computer program, we must know the basic of the programming language. For example, you can't just driving a car without at first knowing about how to start the car's engine, where is the brake pedal, how to turn on the light and etc. It is same as programming language. You must know the variables that you can use, the language syntax and so on. Some computer science students always make the mistake. They can't understand why we need to put ; (semicolon) after each instruction in C or C++ or why we need to declare variables or why we need to use "why" or "for" statement for loop and etc. They can't understand the basic but they attempt to make a program. When their program get an error, they can't troubleshoot it and some of them will cry and sometimes they scolded me because of their mistake. Yes, some of us can learn as they do the programming but most of them already grasp the basic before they do the programming.
The sad thing about this kind of attitude is, we lost lots of potential programmers each year. They have potential but when they encounter small error on the way, they broke up and don't want to do programming anymore. It is a lost actually. A very big lost for Malaysia and in computer field because time and money spent to train them is quite a lot actually.
This is the end of the article. If I'm not lazy, I will continue and introduce you with basic variables that are common in programming languages.
So, what is a computer code? Computer code is an instruction you give to computer to do something. For example, print instruction will print something into the screen. Before the computer can understand what you want it to do, the code need to be written or translated into a binary format that the computer can understand. As most of computer science student know, the binary format is a represent by 0 and 1. For computer, 0001 and 0010 is different although for us, it almost look a same. It is easy right. Just type the instruction, translate it into a binary format and the computer can run it. But it is not that easy. Not many of us can translate computer code into a binary format. Maybe some of us can but most of us can't. So, you need a tool to do it for you. That's why we've got programming languages for developing a computer program.
Basically, there are two type of programming languages, compiler-type and interpreter-type. There are also a hybrid of both compiler and interpreter. Some of you must hear about 4th generation programming languages and etc. Trust me, it is not as important as it is. It is just a classification. Knowing which is compiler-type and interpreter-type is more important than which is 4th generation and 3rd generation and etc. To make it simple, C and C++ are compiler-type while Perl is more towards interpreter-type. What about Java? For me, I consider Java as a hybrid between compiler and interpreter-type. The difference between compiler and interpreter is simple. For compiler-type, you need to compile the executable for every type of operating system that you have because the executable can only be run on the specific platform. For example, executable for Windows XP 64-bit most probably can't run on Windows XP 32-bit OS. And of course anything compile on Linux can't run on Windows platform. While for interpreter-type, just bring your program to other platform and you can run it as long as you do not put a specific instruction for that platform. I always encounter assignment from student who use Windows command in their program. And when we run it on Linux platform those program can't run properly.
Before we write a computer program, we must know the basic of the programming language. For example, you can't just driving a car without at first knowing about how to start the car's engine, where is the brake pedal, how to turn on the light and etc. It is same as programming language. You must know the variables that you can use, the language syntax and so on. Some computer science students always make the mistake. They can't understand why we need to put ; (semicolon) after each instruction in C or C++ or why we need to declare variables or why we need to use "why" or "for" statement for loop and etc. They can't understand the basic but they attempt to make a program. When their program get an error, they can't troubleshoot it and some of them will cry and sometimes they scolded me because of their mistake. Yes, some of us can learn as they do the programming but most of them already grasp the basic before they do the programming.
The sad thing about this kind of attitude is, we lost lots of potential programmers each year. They have potential but when they encounter small error on the way, they broke up and don't want to do programming anymore. It is a lost actually. A very big lost for Malaysia and in computer field because time and money spent to train them is quite a lot actually.
This is the end of the article. If I'm not lazy, I will continue and introduce you with basic variables that are common in programming languages.
About programming - Part 1
I still thinking about this topic's title. Usually I think about the title first before I wrote the whole entry. But today its look like I can't.
Yesterday, I spent almost my whole day built my program while waited for the photo session. Suddenly I realized when I doing programming, its like I'm putting one stone upon the other to build a house or a building. All those functions, codes, variables and etc are simple enough if they are on their own but computer codes can't stand alone by themselves. It will get complicated each time when we create another function, put another statement, declare another variable into our codes.
It is same like building a house. The complexity in building a house will increase if the house contain lots of rooms, electrical wiring, water pipes and etc. That's why we need a plan or blueprint or whatever you call them when building a house.
I guess it is same as building a computer program. We need planning when create a large program. That's why I guess why some of us (including me) can't build a large and complex program because I rarely practice doing planning before coding. Maybe some of programmers (the smart ones) can build a complex computer program without planning but what happened when they want to pass the code for maintenance to someone else?
I attempt to do some planning (I mean using those DFDs, or UML notations) before I start programming but I failed each time. I can't concentrate long enough to do it. If you look at my 'collections' you can see I still keep my notes, those DFDs and UML diagrams I created for my programs. The notes keep remaining as notes. I've failed to convert it into digital form although I already has a lot of tools to do it. I can spend time in reading, and researching about many things but I can't spent much time in digitized my notes. Its weird, isn't it?
Anyway, this post will be a part of my 'thinking' or anything that rarely will influence me in real life. At least, when I think about this topic again later (I always think about the same thing in the future), I can read this entry again and amuse myself "look, i already think about this in 2007". Heh..
So, this is the end for this entry. Thanks for reading. The Japan entry will continue later. I promise. Not in the mood to upload pictures today. ^_^
Oyasuminasai, minna-san.
Ja, mata ne!
Yesterday, I spent almost my whole day built my program while waited for the photo session. Suddenly I realized when I doing programming, its like I'm putting one stone upon the other to build a house or a building. All those functions, codes, variables and etc are simple enough if they are on their own but computer codes can't stand alone by themselves. It will get complicated each time when we create another function, put another statement, declare another variable into our codes.
It is same like building a house. The complexity in building a house will increase if the house contain lots of rooms, electrical wiring, water pipes and etc. That's why we need a plan or blueprint or whatever you call them when building a house.
I guess it is same as building a computer program. We need planning when create a large program. That's why I guess why some of us (including me) can't build a large and complex program because I rarely practice doing planning before coding. Maybe some of programmers (the smart ones) can build a complex computer program without planning but what happened when they want to pass the code for maintenance to someone else?
I attempt to do some planning (I mean using those DFDs, or UML notations) before I start programming but I failed each time. I can't concentrate long enough to do it. If you look at my 'collections' you can see I still keep my notes, those DFDs and UML diagrams I created for my programs. The notes keep remaining as notes. I've failed to convert it into digital form although I already has a lot of tools to do it. I can spend time in reading, and researching about many things but I can't spent much time in digitized my notes. Its weird, isn't it?
Anyway, this post will be a part of my 'thinking' or anything that rarely will influence me in real life. At least, when I think about this topic again later (I always think about the same thing in the future), I can read this entry again and amuse myself "look, i already think about this in 2007". Heh..
So, this is the end for this entry. Thanks for reading. The Japan entry will continue later. I promise. Not in the mood to upload pictures today. ^_^
Oyasuminasai, minna-san.
Ja, mata ne!
Converting blob to jpeg using VB6
I know that VB6 is already 'long' ago. And people now converting into .NET. But since I only know VB6 right now and never do any program in .NET, so, when people want a software in such a short time, you need to use the platform that you really know well.
I've volunteered myself to build a program to convert image data that is store in the database (using blob or other binary type) back into image file (in a sense jpeg, bitmap, gif, tiff or png). So, this is the piece of code on how to do that. You guys should appreciate it you know because I spend 2 whole days to find this solution (yeah, yeah, I know..sometimes I'm so late in digesting information)
This program will compare the information in the database. If the info exist, the program will take only the pics. I change the variable name, table name and everything because I don't want you to know what I'm doing.
' of course you need to establish connection into the database first. I'm not
' going to tell you about it, since most people can do it
sqlCommand = "SELECT picture from tblImage WHERE pictureID='handsomeGuy'"
rs.Open sqlCommand
if rs.EOF then
' tell user to do something
else
' in this case we assume only one binary data exist in the database
Dim tempBinary() As Byte
Dim filename As String
filename = "somepath\" & "somefile.jpg"
' this is using ADO, if you use DAO, look the statement below
tempBinary() = rs.Fields(0).GetChunk(rs.Fields(0).ActualSize)
' this statement using DAO
' tempBinary() = rs!FieldsName.GetChunk(0, rs!FieldsName.ActualSize)
Open filename For Binary As #1 ' #1 is filehandler
Put #1, , tempBinary ' see put for inputting data into file
Close #1 ' close the binary file
Using that piece of code, you can convert back the binary data (store in database) into image file. But you need to know first, what the kind of data is store in the database whether it is bitmap, tiff, jpeg, gif or png.
It easy, right? Kind of. But it is only one solution out of many other solutions. So, if you want the easy one (that can convert up to 5800++ data into image file), you can use this. But as I said, there are many solutions out there. So, your choice.
Oh, I hope its helpful for you guys.
I've volunteered myself to build a program to convert image data that is store in the database (using blob or other binary type) back into image file (in a sense jpeg, bitmap, gif, tiff or png). So, this is the piece of code on how to do that. You guys should appreciate it you know because I spend 2 whole days to find this solution (yeah, yeah, I know..sometimes I'm so late in digesting information)
This program will compare the information in the database. If the info exist, the program will take only the pics. I change the variable name, table name and everything because I don't want you to know what I'm doing.
' of course you need to establish connection into the database first. I'm not
' going to tell you about it, since most people can do it
sqlCommand = "SELECT picture from tblImage WHERE pictureID='handsomeGuy'"
rs.Open sqlCommand
if rs.EOF then
' tell user to do something
else
' in this case we assume only one binary data exist in the database
Dim tempBinary() As Byte
Dim filename As String
filename = "somepath\" & "somefile.jpg"
' this is using ADO, if you use DAO, look the statement below
tempBinary() = rs.Fields(0).GetChunk(rs.Fields(0).ActualSize)
' this statement using DAO
' tempBinary() = rs!FieldsName.GetChunk(0, rs!FieldsName.ActualSize)
Open filename For Binary As #1 ' #1 is filehandler
Put #1, , tempBinary ' see put for inputting data into file
Close #1 ' close the binary file
Using that piece of code, you can convert back the binary data (store in database) into image file. But you need to know first, what the kind of data is store in the database whether it is bitmap, tiff, jpeg, gif or png.
It easy, right? Kind of. But it is only one solution out of many other solutions. So, if you want the easy one (that can convert up to 5800++ data into image file), you can use this. But as I said, there are many solutions out there. So, your choice.
Oh, I hope its helpful for you guys.
Microsoft SQL Server 2005 (error in connection)
Like my previous blog, I will also posted about technical things in here. Some of the things that I do in my work.
So, I currently building two web-based system for my organization. I'm doing in on the new laptop given by the company to me. As most of you (ASP developers especially), Microsoft SQL Server 2000 is not supported in Windows XP although the architecture of the operating system almost same as Windows 2000. You need another SQL Server for that. The only thing that you can use (can be downloaded for free) is Microsoft SQL Server 2005 Express Edition. Unlike when they newly released the program, now you can download several tools that can be used with the sql server.
After finished installing the program, the first thing I do, is creating a database that is identical like the production database. Problem is, the GUI provided by Microsoft does not support Import/Export data such in Microsoft SQL Server 2000 (its free remember). So, you need to use SQL Server 2000 Manager to connect to the database. I tried to do that but failed. Not sure why. So, the next thing I do, is I copy the whole SQL data and log file for my database into the laptop. Miracle did happpened. And in my case, the database work perfectly.
Happily, I copied the system into the laptop. Then, I tried running the system. Failed. Oh, I forgot to add users in the SQL server. Users created. Running the system again. Failed again. So, you think what really happened? These are the errors that I got in the log file (always remember to log all errors and success connections) :
Error: 18452, Severity: 14, State: 1.
Login failed for user ''. The user is not associated with a trusted SQL Server connection. [CLIENT: xxx.xxx.xxx.xxx]
If you get errors like that, please do this way :
1. Open SQL Server Management Studio Express
2. Right click at the very top of your SQL tree (it has play icon inside a database icon. The name is yourpcname\yoursqlname) and choose Properties.
3. Go to "Security" page. At "Server authentication" choose "SQL Server and Windows Authentication Mode". Click OK.
4. Close all the windows associated with SQL Server.
5. Open "SQL Server Configuration Manager".
6. Go to "SQL Server 2005 Network Configuration"->"Protocols for yourSQLname".
7. Disabled "Shared Memory" and enable TCP/IP protocol. You can also enable "Named Pipes" protocol if you like.
8. After that go to "SQL Server 2005 Services" and restart your SQL Server service. Not "SQL Server Browser" or "SQL Server Reporting Services" or "SQL Server FullText Services".
9. After restarting, run you program again. See if its connected to the SQL server. Its supposed to connect. If not, tell me. :)
I think thats the end for our article. Hope its help you. :)
So, I currently building two web-based system for my organization. I'm doing in on the new laptop given by the company to me. As most of you (ASP developers especially), Microsoft SQL Server 2000 is not supported in Windows XP although the architecture of the operating system almost same as Windows 2000. You need another SQL Server for that. The only thing that you can use (can be downloaded for free) is Microsoft SQL Server 2005 Express Edition. Unlike when they newly released the program, now you can download several tools that can be used with the sql server.
After finished installing the program, the first thing I do, is creating a database that is identical like the production database. Problem is, the GUI provided by Microsoft does not support Import/Export data such in Microsoft SQL Server 2000 (its free remember). So, you need to use SQL Server 2000 Manager to connect to the database. I tried to do that but failed. Not sure why. So, the next thing I do, is I copy the whole SQL data and log file for my database into the laptop. Miracle did happpened. And in my case, the database work perfectly.
Happily, I copied the system into the laptop. Then, I tried running the system. Failed. Oh, I forgot to add users in the SQL server. Users created. Running the system again. Failed again. So, you think what really happened? These are the errors that I got in the log file (always remember to log all errors and success connections) :
Error: 18452, Severity: 14, State: 1.
Login failed for user ''. The user is not associated with a trusted SQL Server connection. [CLIENT: xxx.xxx.xxx.xxx]
If you get errors like that, please do this way :
1. Open SQL Server Management Studio Express
2. Right click at the very top of your SQL tree (it has play icon inside a database icon. The name is yourpcname\yoursqlname) and choose Properties.
3. Go to "Security" page. At "Server authentication" choose "SQL Server and Windows Authentication Mode". Click OK.
4. Close all the windows associated with SQL Server.
5. Open "SQL Server Configuration Manager".
6. Go to "SQL Server 2005 Network Configuration"->"Protocols for yourSQLname".
7. Disabled "Shared Memory" and enable TCP/IP protocol. You can also enable "Named Pipes" protocol if you like.
8. After that go to "SQL Server 2005 Services" and restart your SQL Server service. Not "SQL Server Browser" or "SQL Server Reporting Services" or "SQL Server FullText Services".
9. After restarting, run you program again. See if its connected to the SQL server. Its supposed to connect. If not, tell me. :)
I think thats the end for our article. Hope its help you. :)
Subscribe to:
Posts (Atom)