Migrate existing Zimbra to smallest disks under ESXi
Hi,
I have ZCS 6.0.3 installed on Ubuntu 8.04.3, which is hosted on ESXi 4.0 host.
Now, when I installed it, I dedicated 300 GB for Zimbra...but now I've got 2 nes SAS 15k disks 300GB, which I inserted into host and created new RAID1 array with capacity of approx. 290 GB
Now, I'd like to move ZIMBRA virtual machine from existing SATA disk array to new SAS disk array, but I need to reconfigure disk size for it. If ZIMBRA would have only 100GB disks, I'd simply move Zibra virtual machine from old datastore to new one.
Here is what parted says:
Code:
Disk /dev/sda: 268GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 255MB 255MB primary ext3 boot
2 255MB 268GB 268GB extended
5 255MB 268GB 268GB logical lvm
Disk /dev/mapper/seven-swap_1: 9513MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File system Flags
1 0.00kB 9513MB 9513MB linux-swap
Disk /dev/mapper/seven-root: 259GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File system Flags
1 0.00kB 259GB 259GB ext3
and LVM display:
Code:
lvm> pvs
PV VG Fmt Attr PSize PFree
/dev/sda5 seven lvm2 a- 249.76G 0
lvm> lvdisplay
--- Logical volume ---
LV Name /dev/seven/root
VG Name seven
LV UUID 4zRiCp-mt0c-dfHp-FCmo-iLiE-551F-QutD3l
LV Write Access read/write
LV Status available
# open 1
LV Size 240.90 GB
Current LE 61670
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 254:0
--- Logical volume ---
LV Name /dev/seven/swap_1
VG Name seven
LV UUID VN2BTn-hQcu-Raiv-gcfO-HblL-F7In-mJJ10Z
LV Write Access read/write
LV Status available
# open 2
LV Size 8.86 GB
Current LE 2268
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 254:1
...and partitions:
Code:
labsyguy@seven:/$ sudo df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/seven-root
239G 4.8G 223G 3% /
varrun 1.9G 40K 1.9G 1% /var/run
varlock 1.9G 0 1.9G 0% /var/lock
udev 1.9G 52K 1.9G 1% /dev
devshm 1.9G 0 1.9G 0% /dev/shm
/dev/sda1 236M 26M 199M 12% /boot
So, please, could somebody advice me how to resize zimbra's HDDs from 300 GB to, let's say, 60 GB. ...actually, I need to resize Ubuntu's disks, right? I am not very into Linux... :)
thanx