Ajcody-ZCA Appliance: Difference between revisions

Line 92: Line 92:


  ntpdate ntp.ubuntu.com pool.ntp.org  
  ntpdate ntp.ubuntu.com pool.ntp.org  
===Adding , Expanding Disk or Partition===
Keyword - zca partition disk full.
All you should have to do is add new disks to be available to the ZCS virtual machine and then reboot the zimbra server. A script should detect it and auto-expand the partition to give you the newly available space. If this does not happen, you'll be able to confirm that the volume group [vg] is still the same size but you will see the new disks with the output of fdisk.
To see what the vg data_vg currently is:
<pre>
root@localhost:~# vgdisplay data_vg
--- Volume group ---
VG Name data_vg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size 12.00 GiB
PE Size 4.00 MiB
Total PE 3071
Alloc PE / Size 3071 / 12.00 GiB
Free PE / Size 0 / 0
VG UUID BDfVzQ-zVEP-jiAm-DI1J-2sje-01cc-1rMJ9K
</pre>
To see what disks are available to you - as root, fdisk -l . Example below :
<pre>
root@localhost:~# fdisk -l
Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a46dc
Device Boot Start End Blocks Id System
/dev/sda1 * 1 16 123904 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 16 1045 8261633 5 Extended
/dev/sda5 16 32 123904 82 Linux swap / Solaris
/dev/sda6 32 1045 8136704 83 Linux
Disk /dev/sdb: 12.9 GB, 12884901888 bytes
255 heads, 63 sectors/track, 1566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/sdc: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sdc doesn't contain a valid partition table
Disk /dev/sdd: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sdd doesn't contain a valid partition table
</pre>
To manually add the new disks to the lvm vg to expand the partition that's available to zimbra. Reusing the example from above. As root :
<pre>
root@localhost:~# pvcreate /dev/sdc
root@localhost:~# pvcreate /dev/sdd
root@localhost:~# vgextend /dev/data_vg /dev/sdc
root@localhost:~# vgextend /dev/data_vg /dev/sdd
root@localhost:~# lvextend -L +79.99g /dev/data_vg/zimbra
root@localhost:~# resize2fs /dev/data_vg/zimbra
</pre>


[[Category: Community Sandbox]]
[[Category: Community Sandbox]]

Revision as of 20:00, 4 April 2013

Attention.png - This article is NOT official Zimbra documentation. It is a user contribution and may include unsupported customizations, references, suggestions, or information.

ZCA Appliance Topics

Actual ZCA Appliance Topics Homepage

Please see Ajcody-ZCA_Appliance

Where Is The Installer Located On ZCA After Download

Here is an example of the ZCA 8.0.3 Release:

/opt/vmware-zca-installer/packages/zcs-NETWORK-8.0.3_GA_5664.UBUNTU10_64.20130305090216.tgz

Mailboxd Not Running After ZCS 803 Upgrade

Check /opt/zimbra/log/zmmailboxd.out for the following:

2013-03-22 09:44:50.496:INFO:oejpw.PlusConfiguration:No Transaction manager found - if your webapp requires one
, please configure one.
Total time for which application threads were stopped: 0.0002020 seconds
2013-03-22 09:44:50.788:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/service,file:/opt/zimbra/jetty
-distribution-7.6.2.z4/webapps/service/},/opt/zimbra/jetty-distribution-7.6.2.z4/webapps/service
 
2013-03-22 09:44:52.458:WARN:oejuc.AbstractLifeCycle:FAILED ZimbraQoSFilter: java.lang.NoSuchMethodError: com.g
ooglecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap$Builder.maximumWeightedCapacity(J)Lcom/googlecode/con
currentlinkedhashmap/ConcurrentLinkedHashMap$Builder;
java.lang.NoSuchMethodError: com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap$Builder.maximumWeig
htedCapacity(J)Lcom/googlecode/concurrentlinkedhashmap/ConcurrentLinkedHashMap$Builder;

This should be getting fixed ASAP, so hopefully no one else hits it.

Hostname Keeps Being Set To Localhost

This is a 'bug' of sorts in the vmware scripts. It requires the hostname to have a valid PTR record, if it doesn't upon a DNS query it will fall back to localhost.

Steps That Should Work, But Don't Because Of PTR Not Being Set

Edit /etc/hosts as root:

127.0.0.1 localhost.localdomain localhost
XXX.XXX.X.X  HOSTNAME.DOMAIN.COM HOSTNAME

Edit /etc/hostname as root to have your FQDN:

 HOSTNAME.DOMAIN.COM

Push out changes, as root:

 /etc/init.d/hostname start

The vmware tool sets the hostname also via this:

# /opt/vmware/share/vami/vami_config_net 
Main Menu 

0) Show Current Configuration (scroll with Shift-PgUp/PgDown) 
1) Exit this program 
2) Default Gateway 
3) Hostname 
4) DNS 
5) Proxy Server 
6) IP Address Allocation for eth0 
Enter a menu number [0]: 

Time Is Not Set Right

Postfix might not start because of this.

The following RFE is to have this configured so upon start time is pulling from ntp.

To manually update time to pull from a ntp server:

ntpdate ntp.ubuntu.com pool.ntp.org 

Adding , Expanding Disk or Partition

Keyword - zca partition disk full.

All you should have to do is add new disks to be available to the ZCS virtual machine and then reboot the zimbra server. A script should detect it and auto-expand the partition to give you the newly available space. If this does not happen, you'll be able to confirm that the volume group [vg] is still the same size but you will see the new disks with the output of fdisk.

To see what the vg data_vg currently is:

root@localhost:~# vgdisplay data_vg
--- Volume group ---
VG Name data_vg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size 12.00 GiB
PE Size 4.00 MiB
Total PE 3071
Alloc PE / Size 3071 / 12.00 GiB
Free PE / Size 0 / 0
VG UUID BDfVzQ-zVEP-jiAm-DI1J-2sje-01cc-1rMJ9K

To see what disks are available to you - as root, fdisk -l . Example below :

root@localhost:~# fdisk -l

Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a46dc

Device Boot Start End Blocks Id System
/dev/sda1 * 1 16 123904 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 16 1045 8261633 5 Extended
/dev/sda5 16 32 123904 82 Linux swap / Solaris
/dev/sda6 32 1045 8136704 83 Linux

Disk /dev/sdb: 12.9 GB, 12884901888 bytes
255 heads, 63 sectors/track, 1566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sdb doesn't contain a valid partition table

Disk /dev/sdc: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sdc doesn't contain a valid partition table

Disk /dev/sdd: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sdd doesn't contain a valid partition table 

To manually add the new disks to the lvm vg to expand the partition that's available to zimbra. Reusing the example from above. As root :


root@localhost:~# pvcreate /dev/sdc

root@localhost:~# pvcreate /dev/sdd

root@localhost:~# vgextend /dev/data_vg /dev/sdc

root@localhost:~# vgextend /dev/data_vg /dev/sdd

root@localhost:~# lvextend -L +79.99g /dev/data_vg/zimbra

root@localhost:~# resize2fs /dev/data_vg/zimbra

Jump to: navigation, search