Results 1 to 2 of 2

Thread: Migrate existing Zimbra to smallest disks under ESXi

  1. #1
    Join Date
    Nov 2009
    Location
    Ljubljana, Slovenia
    Posts
    268
    Rep Power
    5

    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.

  2. #2
    Join Date
    Oct 2005
    Location
    USA, Canada and India
    Posts
    777
    Rep Power
    11

    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

Similar Threads

  1. Replies: 15
    Last Post: 11-24-2009, 07:46 AM
  2. Zimbra spam system
    By rajahd in forum Administrators
    Replies: 9
    Last Post: 04-16-2008, 07:25 PM
  3. Replies: 31
    Last Post: 12-15-2007, 08:05 PM
  4. Replies: 22
    Last Post: 12-02-2007, 04:05 PM
  5. Can't start Zimbra!
    By zibra in forum Administrators
    Replies: 5
    Last Post: 03-22-2007, 11:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •