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 08-30-2011, 07:56 AM
Elite Member
 
Posts: 250
Default zmslapcat -c command 6.0.x migration

Hi all,

I know this is a 99% chance that I am doing something both wrong and foolish here but I can not get the zmslapcat -c command to work in a migration from a 32 bit server to a 64 bit server

The Zimbra server is running on Centos 5.2 and is version 6.0.12. I am following the Wiki guide for migration from 32 to 64 but fall at the first hurdle!

I have no trouble with this line in the Wiki

'6. Backup the LDAP data, as zimbra, type /opt/zimbra/libexec/zmslapcat /backup'

it creates an ldap.bak file in the /backup directory and I run this as the Zimbra user but I can't get this one to work

'5. On ZCS 6.0 and later, backup the LDAP config database, as zimbra, type /opt/zimbra/libexec/zmslapcat -c /backup'.

All I ever get is something like

'mkdir: invalid option -- c
Try `mkdir --help' for more information.
-c/ldap.bak.20110830154307: No such file or directory
cp: invalid option -- /
Try `cp --help' for more information.'

I have created a /backup directory with the zimbra user and group having permission to access, read and write to it. What am I doing wrong? If it is permissions to the folder then why does the standard zmslapcat command work fine?

I know it must be something simple but need a nudge in the right direction

Thanks

Russ
Reply With Quote
  #2 (permalink)  
Old 08-31-2011, 02:57 AM
Elite Member
 
Posts: 250
Default

Any idea on this please anyone?
Reply With Quote
  #3 (permalink)  
Old 09-04-2011, 08:00 AM
Member
 
Posts: 12
Default

This page may help:
» Zimbra :: Blog
Reply With Quote
  #4 (permalink)  
Old 09-07-2011, 03:02 AM
Elite Member
 
Posts: 250
Default

Hi,

thanks for reply Dave.

So am I misunderstanding? Is the zmslapcat -c command not actually needed when migrating version 6 on 32 bit to version 6 on 64 bit?

Thanks
Russ
Reply With Quote
  #5 (permalink)  
Old 09-07-2011, 04:55 AM
Member
 
Posts: 12
Default

I think it's not needed.
And this may help:
Migrating from 32 bit Centos 4.x to 64 bit Centos 5.x - Zimbra :: Wiki
Reply With Quote
  #6 (permalink)  
Old 09-09-2011, 02:52 AM
Elite Member
 
Posts: 250
Default

Thanks Dave, appreciate the help
Reply With Quote
  #7 (permalink)  
Old 10-07-2011, 03:57 AM
Elite Member
 
Posts: 250
Default

I am having no success with this and getting really sick of it!

As mentioned before running on version 6.0.5 on CentOS and trying to change from CentOS 32 bit server to CentOS 64 bit server.

I follow the instructions on the wiki but fall at almost the first hurdle:

5. On ZCS 6.0 and later, backup the LDAP config database, as zimbra, type /opt/zimbra/libexec/zmslapcat -c /backup

This does not work! I have uninstalled and reinstalled several times but all I ever get is:

'mkdir: invalid option -- c
Try `mkdir --help' for more information.
-c/ldap.bak.20110830154307: No such file or directory
cp: invalid option -- /
Try `cp --help' for more information.'


So, I ignore this as advised and carry on, the next line:

6. Backup the LDAP data, as zimbra, type /opt/zimbra/libexec/zmslapcat /backup


Works perfectly and I get my ldap.bak file.

I then carry on with the steps but again fall down at:

j. Type /opt/zimbra/openldap/sbin/slapadd -q -n 0 -F /opt/zimbra/data/ldap/config -cv -l /backup/ldap-config.bak

I do not have this file because step 5 fails so I carry onto:

k. Type /opt/zimbra/openldap/sbin/slapadd -q -b "" -F /opt/zimbra/data/ldap/config -cv -l /backup/ldap.bak

But all I get is:

slapadd: slap_init no backend for ""

I assume this is something to do with step j failing? Or is it in some way DNS related?

So, that's it, been trying on and off for a year now to upgrade 7 and replace our ancient server with no luck. To complicate things further I think this may have been a version 5.0.12 server originally so am not quite sure if some of the steps for version 5 applies to my upgrade?

What am I doing wrong please? Thanks for your advice Dave but none of the links really seemed to help.

Russ
Reply With Quote
  #8 (permalink)  
Old 10-07-2011, 07:10 AM
Zimbra Consultant & Moderator
 
Posts: 20,315
Default

Quote:
Originally Posted by russgalleywood View Post
As mentioned before running on version 6.0.5 on CentOS and trying to change from CentOS 32 bit server to CentOS 64 bit server.
You actually said you're using ZCS 6.0.12 in your first post. I have a recollection that I've seen this 'bug' before but I can't, for the life of me, find it anywhere. I think this was a problem with the slapcat script so my suggestion would be to upgrade to a more recent ZCS (6.0.14) version and do your move from that version. The inevitable proviso: take a backup of the /opt/zimbra directory structure before the upgrade.
__________________
Regards


Bill
Reply With Quote
  #9 (permalink)  
Old 10-07-2011, 07:38 AM
Elite Member
 
Posts: 250
Default

Yes you're right Phoenix, I did put the wrong version there.

Thanks, if that is it then brilliant, I will upgrade to 6.0.14 and backup before I do.

I can't help thinking that there is something about how the old server was originally upgraded from 5 to 6 because I have a lot more success running the commands on the new 64 bit server, built from scratch as a version 6 machine. I can run the ldap-config zmslapcat fine on there and it also running 6.0.12!
Reply With Quote
  #10 (permalink)  
Old 10-07-2011, 08:07 AM
Zimbra Consultant & Moderator
 
Posts: 20,315
Default

Quote:
Originally Posted by russgalleywood View Post
Thanks, if that is it then brilliant, I will upgrade to 6.0.14 and backup before I do.
I'm only suggesting the 6.0.14 release as it's the last version in that release series. Like I said, it's only a 'recollection' that I've seen it before but I can't remember in which version that 'bug' was fixed but I do know the slapcat command works correctly with ZCS 6.0.14. Let us know how you get on, good luck.
__________________
Regards


Bill
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.