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 01-22-2010, 06:07 AM
Intermediate Member
 
Posts: 20
Default [SOLVED] Upgrading zimbra 5 to 6 with samba !!!

Hi all,

I have a full fonctionnal zimbra 5.0.21 with samba 3.0.33 on Centos 5.4. All work fine PDC, file sharing, mail, zimbra...

For several months, I plan to migrate to v6.0.x (yet 6.0.4) so that use new functions

So I get a fonctionnal test server and test migration before the real one. And I always run in trubble.

Here is what I do from 5.0.21 :
1) zmcontrol stop

2) Do the steps as outlined here: Optimizing 50 to 60 LDAP upgrade - Zimbra :: Wiki

3) Do the steps as outlined here: Installing custom ldap schema 6.0 - Zimbra :: Wiki

4) cd /opt/zimbra/data/ldap **rename all ldap.* files so they are out of the way**

5) Copy the latest ldap.bak from latest backup (most likely from 5.0.x), and place it in /opt/zimbra/data/ldap/

6) chown zimbra:zimbra /opt/zimbra/data/ldap/ldap.bak && chmod 640 /opt/zimbra/data/ldap/ldap.bak

7) mv /opt/zimbra/data/ldap/hdb /opt/zimbra/data/ldap/hdb.OLD

8) mkdir /opt/zimbra/data/ldap/hdb/db && mkdir /opt/zimbra/data/ldap/hdb/logs

9) chown -R zimbra:zimbra /opt/zimbra/data/ldap/hdb/

10) Edit the .install_history file, so it will the install section, for example:
1252187141: INSTALL SESSION START
1252187141: UPGRADED zimbra-spell-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187142: UPGRADED zimbra-logger-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187143: UPGRADED zimbra-ldap-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187144: UPGRADED zimbra-archiving-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187145: UPGRADED zimbra-core-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187146: UPGRADED zimbra-snmp-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187147: UPGRADED zimbra-convertd-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187148: UPGRADED zimbra-mta-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187149: UPGRADED zimbra-apache-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187151: UPGRADED zimbra-store-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187143: INSTALL SESSION COMPLETE
**You only need to delete the CONFIGURED/UPGRADED for 6.0.x section, keep the 6.0.0 INSTALL session. Make sure to keep *everything* that every came before...every 5.0.x install, etc**

11) Run /opt/zimbra/libexec/zmsetup.pl

And then I've got a "ERROR: account.NO_SUCH_SERVER (no such server: server_name)"...

The DNS is right and worked with 5.0.21, /etc/hosts is right too...

I don't realy know what to do yet

I join the upgrade log file if nedded.

Fabrice
Attached Files
File Type: log zmsetup.01212010-184247.log (28.7 KB, 8 views)
__________________
Fabrice

--------------------------------------------------
Centos 5.3 X64
Zimbra Release 6.0.4_GA_2038.RHEL5_64_20091214174341 CentOS5_64 NETWORK edition
Samba 3.0.33

Last edited by fafa31; 01-26-2010 at 12:28 PM.. Reason: pb solved
Reply With Quote
  #2 (permalink)  
Old 01-24-2010, 01:27 AM
Intermediate Member
 
Posts: 20
Default

Realy no idear about this pb !!!!
__________________
Fabrice

--------------------------------------------------
Centos 5.3 X64
Zimbra Release 6.0.4_GA_2038.RHEL5_64_20091214174341 CentOS5_64 NETWORK edition
Samba 3.0.33
Reply With Quote
  #3 (permalink)  
Old 01-24-2010, 05:09 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Quote:
Originally Posted by fafa31 View Post
I have a full fonctionnal zimbra 5.0.21 with samba 3.0.33 on Centos 5.4. All work fine PDC, file sharing, mail, zimbra...
That's not what it says in your signature, which is correct?

Please update your forum profile with the output of the following command (do not post it in this thread):

Code:
zmcontrol -v
Quote:
Originally Posted by fafa31 View Post
For several months, I plan to migrate to v6.0.x (yet 6.0.4) so that use new functions
Why did you not install 6.0.4, surely that would have been the most obvious choice?

Quote:
Originally Posted by fafa31 View Post
So I get a fonctionnal test server and test migration before the real one. And I always run in trubble.

Here is what I do from 5.0.21 :
1) zmcontrol stop

2) Do the steps as outlined here: Optimizing 50 to 60 LDAP upgrade - Zimbra :: Wiki

3) Do the steps as outlined here: Installing custom ldap schema 6.0 - Zimbra :: Wiki
According to the wiki article you are supposed to do the upgrade at this point before making any further changes, you appear not to have done that - why not?

Quote:
Originally Posted by fafa31 View Post
4) cd /opt/zimbra/data/ldap **rename all ldap.* files so they are out of the way**

5) Copy the latest ldap.bak from latest backup (most likely from 5.0.x), and place it in /opt/zimbra/data/ldap/

6) chown zimbra:zimbra /opt/zimbra/data/ldap/ldap.bak && chmod 640 /opt/zimbra/data/ldap/ldap.bak

7) mv /opt/zimbra/data/ldap/hdb /opt/zimbra/data/ldap/hdb.OLD

8) mkdir /opt/zimbra/data/ldap/hdb/db && mkdir /opt/zimbra/data/ldap/hdb/logs

9) chown -R zimbra:zimbra /opt/zimbra/data/ldap/hdb/

10) Edit the .install_history file, so it will the install section, for example:
1252187141: INSTALL SESSION START
1252187141: UPGRADED zimbra-spell-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187142: UPGRADED zimbra-logger-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187143: UPGRADED zimbra-ldap-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187144: UPGRADED zimbra-archiving-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187145: UPGRADED zimbra-core-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187146: UPGRADED zimbra-snmp-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187147: UPGRADED zimbra-convertd-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187148: UPGRADED zimbra-mta-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187149: UPGRADED zimbra-apache-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187151: UPGRADED zimbra-store-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187143: INSTALL SESSION COMPLETE
**You only need to delete the CONFIGURED/UPGRADED for 6.0.x section, keep the 6.0.0 INSTALL session. Make sure to keep *everything* that every came before...every 5.0.x install, etc**
Where did you get steps 4 - 10 from?

Quote:
Originally Posted by fafa31 View Post
11) Run /opt/zimbra/libexec/zmsetup.pl
As mentioned above, this step is in the wrong place.

Quote:
Originally Posted by fafa31 View Post
And then I've got a "ERROR: account.NO_SUCH_SERVER (no such server: server_name)"...
Did you search the forums for that error?

Quote:
Originally Posted by fafa31 View Post
The DNS is right and worked with 5.0.21, /etc/hosts is right too...
You've given no evidence that your statement is correct.
__________________
Regards


Bill

Last edited by phoenix; 01-24-2010 at 11:20 AM..
Reply With Quote
  #4 (permalink)  
Old 01-24-2010, 09:59 AM
Intermediate Member
 
Posts: 20
Default

Quote:
Originally Posted by phoenix View Post
That's not what it says in your signature, which is correct?
Sorry, I don't update my signature, sorry, now it is done

Quote:
Originally Posted by phoenix View Post
Why did you not install 6.0.4, surely that would have been the most obvious choice?
For the last test, it was what I've done. A 5.0.21 fresh install with an direct upgrade to a 6.0.4 !!! (the report is from this test).

Quote:
Originally Posted by phoenix View Post
According to the wiki article you are supposed to do the upgrade at this ponit before making any further changes, you appear not to have done that - why not?

Where did you get steps 4 - 10 from?
I follow the steps from here : Problem upgrading to 6; slapadd import failed

I have found a tuto to upgrade zimbra 5 to 6 with samba that I adapt to Centos :
Migration Zimbra 5 vers 6 sous Debian Lenny | tutoriels-web.net

But it is in french and the steps were like the link above.

Quote:
Originally Posted by phoenix View Post
Did you search the forums for that error?
Yes I do, and I tried a lot's of things related to this pb but nothing get it work...

Quote:
Originally Posted by phoenix View Post
You've given no evidence that your statement is correct.
Here is my /etc/hosts:
127.0.0.1 localhost.localdomain localhost
192.168.XXX.YYY test.domain.local test

For DNS:
I follow this tuto to build my server, and test the DNS as it was said in it:
UNIX and Windows Accounts in Zimbra LDAP and Zimbra Admin UI - Zimbra :: Wiki
For my part :
dig mx domain.local, dig a test.domain.local and nslookup domain.local returned good things for both real and test server.
A "ping test give me the right adress like "ping test.domain.local" !!!!

I can give you what this commands return to me if you like but tomorow as I can access to my test server.

A "telnet test.domain.local 389" work fine too !!!
__________________
Fabrice

--------------------------------------------------
Centos 5.3 X64
Zimbra Release 6.0.4_GA_2038.RHEL5_64_20091214174341 CentOS5_64 NETWORK edition
Samba 3.0.33
Reply With Quote
  #5 (permalink)  
Old 01-24-2010, 11:28 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

I still seem to be slightly confused by what you've done. You should follow the instructions in the following wiki article:

Optimizing 5.0 to 6.0 LDAP upgrade - Zimbra :: Wiki - half way through that procedure you should install the extra schema as detailed in this article:

Installing custom ldap schema 6.0 - Zimbra :: Wiki - and then finish off the commands in the first article. When you get to the end of the first article you should finish running the installation script. You seem to have missed out the step of running the install script in your steps in the first post and you've continued on your steps 3-11 when you finally run the install. Have I misunderstood what you've done or did you run the upgrade in the correct place?
__________________
Regards


Bill
Reply With Quote
  #6 (permalink)  
Old 01-24-2010, 11:47 AM
Intermediate Member
 
Posts: 20
Default

Ok,

I will get back to a fresh 5.0.21 server (I have an image)

And I will try the upgrade again by following the instruction given by the 2 wikis and see where I break down... All that by forgiving the french tuto for upgrade...

I'll give you the result and all the steps I've done if it doesn't work.

Thank's for your help.

Fabrice
__________________
Fabrice

--------------------------------------------------
Centos 5.3 X64
Zimbra Release 6.0.4_GA_2038.RHEL5_64_20091214174341 CentOS5_64 NETWORK edition
Samba 3.0.33
Reply With Quote
  #7 (permalink)  
Old 01-25-2010, 02:35 AM
Intermediate Member
 
Posts: 20
Default

Hi again,

I follow steps with wiki and not the tuto I found

I begin By Optimizing 5 to 6...
so first I install zimbra 6 without configuration : ./install.sh -s in ZCS6 directory

I go to the /opt/zimbra/openldap/etc/openldap/config and edit cn=config.ldif and replace olcTollThreads by 4

In /opt/zimbra/openldap/etc/openldap/config/cn=config/olcDatabase={2}hdb.ldif add the acces rights
olcAccess: {10}to dn.subtree="dc=test,dc=domain,dc=fr" by dn.children="cn=admins,cn=zimbra" write by * read
olcAccess: {11}to dn.subtree="ou=machines,"dc=test,dc=domain,dc=fr"" by dn.children="cn=admins,cn=zimbra" write by * read
olcAccess: {12}to dn.subtree="ou=groups,"dc=test,dc=domain,dc=fr"" by dn.children="cn=admins,cn=zimbra" write by * read
olcAccess: {13}to dn.subtree="ou=people,"dc=test,dc=domain,dc=fr"" by dn.children="cn=admins,cn=zimbra" write by * read

and add the indexies:
olcDbIndex: uidNumber eq
olcDbIndex: gidNumber eq
olcDbIndex: memberUID eq
olcDbIndex: sambaSID eq
olcDbIndex: sambaPrimaryGroupSID eq
olcDbIndex: sambaDomainName eq

Nothing with DB_CONFIG file as I don't custimized it.

I create /opt/zimbra/data/ldap/config/cn=config/cn=schema as they don't exist because it is an update from 5.

Then, I follow "Installing custum ldap schema 6.0"
cp /opt/zimbra/openldap/etc/openldap/schema/nis.ldif /opt/zimbra/data/ldap/config/cn=config/cn=schema/cn={10}nis.ldif
cd /opt/zimbra/data/ldap/config/cn=config/cn=schema

and change it as it is said in the tuto !!!

Lunch "ldap start" as zimbra user, and It failed (Failed to start slapd. Attempting debug start to determine error"
and, in the zimbra.log, I get "ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost.localdomain:389)"...

And I can't start ldap anymore

I found something in the wiki about this error, it is related to the /etc/sudoers !!! I get in it, but only zimbra 5 command has been register and not 6... Where can I find them to try to change them ?

Fabrice
__________________
Fabrice

--------------------------------------------------
Centos 5.3 X64
Zimbra Release 6.0.4_GA_2038.RHEL5_64_20091214174341 CentOS5_64 NETWORK edition
Samba 3.0.33
Reply With Quote
  #8 (permalink)  
Old 01-25-2010, 07:51 AM
Intermediate Member
 
Posts: 20
Default

OK,

After a lot's of test, I think that the LDAP server can't start afer upgradind to v6.

It's not a DNS issue, but a pb of ldap server config and so it can't start...

I continue to search this way, and if someone have an idear, I is welcome
__________________
Fabrice

--------------------------------------------------
Centos 5.3 X64
Zimbra Release 6.0.4_GA_2038.RHEL5_64_20091214174341 CentOS5_64 NETWORK edition
Samba 3.0.33
Reply With Quote
  #9 (permalink)  
Old 01-25-2010, 01:03 PM
Intermediate Member
 
Posts: 20
Default

Having thinks,

It is normal that LDAP server is out as I have to end the settings at first !!!

I'll try to find a solution tomorrow
__________________
Fabrice

--------------------------------------------------
Centos 5.3 X64
Zimbra Release 6.0.4_GA_2038.RHEL5_64_20091214174341 CentOS5_64 NETWORK edition
Samba 3.0.33
Reply With Quote
  #10 (permalink)  
Old 01-26-2010, 12:26 PM
Intermediate Member
 
Posts: 20
Default [SOLVED] Upgrading zimbra 5 to 6 with samba !!!

Hi,

As today is another day, I start an other upgrade from a fresh install 5.0.21 and upgrade it to 6.0.4.

I forgive my tuto found under internet and follow the 2 wikis Optimizing 5.0 to 6.0 upgrade and Installing custum LDAP schema 6.0 line by line

What's new compare to all the last upgrade I tested before is that I had this lines to olcDatabase={2}hdb,cn=config file before starting the upgrade (/opt/zimbra/libexec/zmsetup.pl)

olcAccess: {10}to dn.subtree="dc=test,dc=domain,dc=local" by dn.children="cn=admins,cn=zimbra" write by * read
olcAccess: {11}to dn.subtree="ou=machines,dc=test,dc=domain,dc=local " by dn.children="cn=admins,cn=zimbra" write by * read
olcAccess: {12}to dn.subtree="ou=groups,dc=test,dc=domain,dc=local" by dn.children="cn=admins,cn=zimbra" write by * read
olcAccess: {13}to dn.subtree="ou=people,dc=test,dc=domain,dc=local" by dn.children="cn=admins,cn=zimbra" write by * read

I think that's why the upgrade installer can't contact LDAP server as it doesn't have rights to do it !!!

And now, upgrade seems to work !!!

Thank's a lot for all your help

PS: I don't know how to add [SOLVED] in the title
__________________
Fabrice

--------------------------------------------------
Centos 5.3 X64
Zimbra Release 6.0.4_GA_2038.RHEL5_64_20091214174341 CentOS5_64 NETWORK edition
Samba 3.0.33
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.