Tuesday, March 26, 2013

Equivalence Dell, HP and IBM


Here is some equivalence spec with different brand:

Dell EqualLogic storage
--> HP P4000 (LeftHand)
--> IBM: none available

Dell PowerVault MD storage
--> HP P2000
--> IBM DS3500

Dell PowerEdge R720 server
--> HP Proliant DL380p G8
--> IBM x3650 M4

Thursday, March 21, 2013

Upgrading VBulletin v5 beta 26 to v5.0.0

My head nearly crash... need extra RAM to support more task..

It is really headache day when I need to spend for 2 days to upgrade VBulletin v5 Beta 26. In the development environment, I manage to upgrade it without no problem. But when I upgrade it at live environment here is the error that I received:

Unexpected Text:{?xml version="1.0" encoding="windows-1252"?}
There are too many post which having the same problem but nothing solve my problem. Arghh... I really forgot to check the log error... And that is the tips to solved this problem. Finally I manage to solve it by adding this: 

Log error : Allowed memory size of 134217728 bytes exhausted (tried to allocate 54669 bytes) in /home/snappy/public_html/vB5/core/includes/class_diff.php

Old Code
function compress_row($row) 
   { 
    return gzcompress(implode('|', $row), 9); 
    } 
---------------------------------------------------------- 
New Code
function compress_row($row) 
    {
     ini_set('memory_limit','512M');
     return gzcompress(implode('|', $row), 9); 
     }

Refference : http://www.vbulletin.com/forum/forum/vbulletin-5-connect/vbulletin-5-upgrades/423983-php-memory-error-during-upgrade



Tuesday, March 5, 2013

Mount New Hardisk in Ubuntu


Mount New Hardisk

  1. Mount New Hardisk via virtual or physical
  2. Restart the server.

Determine Drive Information
# lshw -C disk
 It will display the hardisk that you mount


Command Line Partitioning

  1. Initiate fdisk with the following command:# fdisk /dev/sdb
  2. m  then you can see the menu as below
  3. choose n -> add new partition
  4. then choose p -> for primary partition
  5. then choose 1 -> Since this will be the only partition on the drive, number 1. Enter "1" and enter
  6. Now that the partition is entered, choose option "w" to write the partition table to the disk. Type "w" and enter.

Command Line Formatting
Use "ext3" if the drive will only be used with Ubuntu. For file-sharing between Ubuntu and Windows, you should use "fat32."
# mkfs -t ext3 /dev/sdb1

Create A Mount Point


















# cd /      ---> go to root path
# mkdir data

OR
# mkdir /data

Mount driver
#nano /etc/fstab

-> add another line with new logical name and directory. 


# mount -a
# df -h 

if duplicate name... you can unmount and mount it back.
# unmount -a