Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: zmslapcat -c command 6.0.x migration

  1. #1
    russgalleywood is offline Elite Member
    Join Date
    Aug 2006
    Location
    Essex, UK
    Posts
    250
    Rep Power
    8

    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

  2. #2
    russgalleywood is offline Elite Member
    Join Date
    Aug 2006
    Location
    Essex, UK
    Posts
    250
    Rep Power
    8

    Default

    Any idea on this please anyone?

  3. #3
    daveloper is offline Member
    Join Date
    May 2010
    Posts
    12
    Rep Power
    4

    Default

    This page may help:
    » Zimbra :: Blog

  4. #4
    russgalleywood is offline Elite Member
    Join Date
    Aug 2006
    Location
    Essex, UK
    Posts
    250
    Rep Power
    8

    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

  5. #5
    daveloper is offline Member
    Join Date
    May 2010
    Posts
    12
    Rep Power
    4

  6. #6
    russgalleywood is offline Elite Member
    Join Date
    Aug 2006
    Location
    Essex, UK
    Posts
    250
    Rep Power
    8

    Default

    Thanks Dave, appreciate the help

  7. #7
    russgalleywood is offline Elite Member
    Join Date
    Aug 2006
    Location
    Essex, UK
    Posts
    250
    Rep Power
    8

    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

  8. #8
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    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


    Acompli: A new adventure for Co-Founder KevinH.

  9. #9
    russgalleywood is offline Elite Member
    Join Date
    Aug 2006
    Location
    Essex, UK
    Posts
    250
    Rep Power
    8

    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!

  10. #10
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    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


    Acompli: A new adventure for Co-Founder KevinH.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 10
    Last Post: 10-29-2009, 08:56 PM
  2. [SOLVED] Mail.app POP3 migration to ZCS
    By jpbuse in forum Migration
    Replies: 6
    Last Post: 04-23-2008, 02:38 PM
  3. [SOLVED] GroupWise 7.0.2 migration
    By Rich Graves in forum Migration
    Replies: 28
    Last Post: 04-17-2008, 04:13 PM
  4. ZCS Migration wizard for exchange freezes
    By freebsdboy in forum Migration
    Replies: 1
    Last Post: 03-14-2008, 02:50 PM
  5. Migration Wizard: Unable to Open Directory Object
    By ThorGoLucky in forum Administrators
    Replies: 15
    Last Post: 01-31-2008, 02:01 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
  •