When trying Zimbra on CentOS, I got a problem that it requires at least 5GB on my hard disk. Instead of reinstall my Virtual Machine, I decided to expand my current hard disk. First, I plan to use Gparted Live CD to extend. However, Gparted is just useful for Windows or some Linux version that didn't use LVM. And the lastest one does not support LVM yet! So, I have to expand my hard disk by hand on CentOS.
+ I feel that maybe someone will need to do it on Windows. So I will give you a brief for extend Windows hard disk on Virtual Box.
Step 1: Download Gparted Live CD
wget http://nchc.dl.sourceforge.net/project/gparted/old-gparted-livecd/gparted-livecd-0.3.4-11/gparted-livecd-0.3.4-11.iso |
Step 2: Create new Hard Disk in VirtualBox
Step 3: Expand current hard disk
Step 4: Just copy and paste your hard disk.
+ Now, it's a hardest part. Extend a Linux hard disk with LVM. I begin go start at Step 2 (add new hard disk). Then start the machine.
First of all, Format the new hard disk by "fdisk /dev/sdb" command.
fdisk /dev/sdb create as many partitions as you need using command n Label them with command t as 8e for making it Linux LVM Write and Exit with the command w. ----------------------------------- mkfs -t ext3 -c /dev/sdb1 |
Now, I add new storage into the old one with these commands below:
The last thing to do is verified the Volume.
Have fun!