Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-25-2009, 09:13 AM
Advanced Member
 
Posts: 222
Default 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

Last edited by Labsy; 12-25-2009 at 09:45 AM..
Reply With Quote
  #2 (permalink)  
Old 12-26-2009, 09:32 PM
raj raj is offline
Moderator
 
Posts: 768
Default

make the new drives as new datastore (i.e: datastore2)
then use
VMware vCenter Converter, Convert Physical Machines to Virtual Machines
convert from VM to VM and during the conversion wizrard pricocess you will see the options about the drive sizes (advance option)..you can change the TARGET sizes to ask you wish as long as its > the actual data in the VM.

once you moved its a COPY of your orignal. test it and if its all working you can delete the orignal VM from datastore

Raj
__________________
i2k2 Networks
Dedicated & Shared Zimbra Hosting Provider
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.