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

Thread: Migrating 7.1.4 GA Ubuntu 8.04 32 bit to 7.1.4 GA Ubuntu 10.04 64 bit

Hybrid View

  1. #1
    Join Date
    Dec 2011
    Posts
    2
    Rep Power
    3

    Default Migrating 7.1.4 GA Ubuntu 8.04 32 bit to 7.1.4 GA Ubuntu 10.04 64 bit

    I'm attempting to migrate a Zimbra 7.1.4 GA installation from an Ubuntu 8.04 32 bit server to Zimbra 7.1.4 GA on an Ubuntu 10.04 64 bit server. (Note I've also tried migrating to a Ubuntu 8.04 64 bit server with same results).

    I'm following the instructions on this page:

    Platform and OS Independent ZCS to ZCS Migration Using Rsync

    I've got as far as transferring all the files and backing up/transferring the ldap configuration. I'm running into issues importing the ldap config on the 64bit server:


    Code:
    zimbra@ubuntu64:~$ /opt/zimbra/openldap/sbin/slapadd -q -n 0 -F /opt/zimbra/data/ldap/config -cv -l /backup/ldap-config.bak
     
    -su: /opt/zimbra/openldap/sbin/slapadd: No such file or directory
    I'm not sure what to make of this. The slapadd binary exists, so I assume there's some file the binary cannot reference. /opt/zimbra/data/ldap/config exists. /backup/ldap-config.bak exists. I'm not sure which file or directory slapadd is referring to.

    I've used this technique for migration in the past and it's worked with no problems. Any insights would be appreciated. I'd like to get get zimbra migrated to a 64 bit server as zimbra for Ubuntu 8.04 32 bit has been deprecated.

  2. #2
    Join Date
    Nov 2008
    Posts
    28
    Rep Power
    6

    Default

    Quote Originally Posted by Fred McCann View Post
    I'm following the instructions on this page:

    Platform and OS Independent ZCS to ZCS Migration Using Rsync
    This part of that page looks wrong:
    Restore the LDAP from backup.

    Re-run install.sh.
    as you've running the old incompatible LDAP binaries at the "restore" point.

    Try running "install.sh -s" just before the slapadd step. The install.sh step is still necessary.

    As to why the particular error you got: don't know. The simplest explanation is that the rsync didn't work.
    Release 6.0.6_GA_2324.UBUNTU8 UBUNTU8 FOSS edition

  3. #3
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by Fred McCann View Post
    I'm attempting to migrate a Zimbra 7.1.4 GA installation from an Ubuntu 8.04 32 bit server to Zimbra 7.1.4 GA on an Ubuntu 10.04 64 bit server. (Note I've also tried migrating to a Ubuntu 8.04 64 bit server with same results).

    I'm following the instructions on this page:
    You should follow the Certified wiki article on moving from 32bit to 64bit systems: Network Edition: Moving from 32-bit to 64-bit Server - Zimbra :: Wiki
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  4. #4
    Join Date
    Nov 2008
    Posts
    28
    Rep Power
    6

    Default

    Quote Originally Posted by phoenix View Post
    You should follow the Certified wiki article on moving from 32bit to 64bit systems: Network Edition: Moving from 32-bit to 64-bit Server - Zimbra :: Wiki
    That method requires considerable manual intervention, which leaves a lot of room for error.

    The rsync method, once it is developed, appears to need far less manual intervention and should be less error-prone.

    My first attempt at 32 bit -> 64 bit conversion of 6.0.6 on Ubuntun8 via rsync seems to work well, other than the "Server Status" page on the Admin Console, which didn't work before the conversion anyway.
    Release 6.0.6_GA_2324.UBUNTU8 UBUNTU8 FOSS edition

  5. #5
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by jrv View Post
    That method requires considerable manual intervention, which leaves a lot of room for error.
    Not if you follow the instructions.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #6
    Join Date
    Jun 2011
    Posts
    76
    Rep Power
    4

    Default

    Quote Originally Posted by phoenix View Post
    You should follow the Certified wiki article on moving from 32bit to 64bit systems: Network Edition: Moving from 32-bit to 64-bit Server - Zimbra :: Wiki
    On that guide, when you get to the local config XML, why cant you just copy and paste the XML file from the old server to the new one? All of the values are the same, what is the point of editing the new one?

  7. #7
    Join Date
    Jun 2011
    Posts
    76
    Rep Power
    4

    Default

    Edit, just tried following this guide like the OP did, and I'm having the same problem.... the files are obviously there as you can see, the rsync completed just fine.



    I've tried running this as Zimbra and Root, both give the same problem.

    Anyone have any idea whats wrong?
    Last edited by Eclipse; 03-06-2012 at 06:52 PM.

  8. #8
    Join Date
    Nov 2008
    Posts
    28
    Rep Power
    6

    Default

    Quote Originally Posted by Eclipse View Post
    Edit, just tried following this guide like the OP did, and I'm having the same problem....
    slapadd should be run as user "zimbra", not root.

    Maybe run the "file" command on the slapadd file to make sure it's the 64-bit slapadd and not the 32-bit rsync'd version.
    Code:
    alf@zimbra:~$ file /opt/zimbra/openldap/sbin/slapadd 
    /opt/zimbra/openldap/sbin/slapadd: symbolic link to `slapd'
    alf@zimbra:~$ file /opt/zimbra/openldap/sbin/slapd
    /opt/zimbra/openldap/sbin/slapd: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), not stripped
    If it still fails use strace to see why.

    I imported the ldap data with this:

    Code:
    alf@zimbra:~$ cat import-ldap.sh 
    mv -i  /opt/zimbra/data/ldap/hdb/db/DB_CONFIG /opt/zimbra/data/ldap/DB_CONFIG.$$ || exit
    
    rm -rf /opt/zimbra/data/ldap/hdb/*
    rm -rf /opt/zimbra/data/ldap/accesslog/*
    mkdir -p /opt/zimbra/data/ldap/hdb/db /opt/zimbra/data/ldap/hdb/logs
    chown -R zimbra:zimbra /opt/zimbra/data/ldap
    
    mv -i  /opt/zimbra/data/ldap/DB_CONFIG.$$ /opt/zimbra/data/ldap/hdb/db/DB_CONFIG || exit
    
    sudo su - zimbra -c "/opt/zimbra/openldap/sbin/slapadd -q -n 0 -F /opt/zimbra/data/ldap/config -cv -l /backup/ldap-config.bak"
    sudo su - zimbra -c "/opt/zimbra/openldap/sbin/slapadd -q -b \"\" -F /opt/zimbra/data/ldap/config -cv -l /backup/ldap.bak"
    alf@zimbra:~$
    Release 6.0.6_GA_2324.UBUNTU8 UBUNTU8 FOSS edition

  9. #9
    Join Date
    Jun 2011
    Posts
    76
    Rep Power
    4

    Default

    Quote Originally Posted by jrv View Post
    slapadd should be run as user "zimbra", not root.

    Maybe run the "file" command on the slapadd file to make sure it's the 64-bit slapadd and not the 32-bit rsync'd version.
    Code:
    alf@zimbra:~$ file /opt/zimbra/openldap/sbin/slapadd 
    /opt/zimbra/openldap/sbin/slapadd: symbolic link to `slapd'
    alf@zimbra:~$ file /opt/zimbra/openldap/sbin/slapd
    /opt/zimbra/openldap/sbin/slapd: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), not stripped
    If it still fails use strace to see why.

    I imported the ldap data with this:

    Code:
    alf@zimbra:~$ cat import-ldap.sh 
    mv -i  /opt/zimbra/data/ldap/hdb/db/DB_CONFIG /opt/zimbra/data/ldap/DB_CONFIG.$$ || exit
    
    rm -rf /opt/zimbra/data/ldap/hdb/*
    rm -rf /opt/zimbra/data/ldap/accesslog/*
    mkdir -p /opt/zimbra/data/ldap/hdb/db /opt/zimbra/data/ldap/hdb/logs
    chown -R zimbra:zimbra /opt/zimbra/data/ldap
    
    mv -i  /opt/zimbra/data/ldap/DB_CONFIG.$$ /opt/zimbra/data/ldap/hdb/db/DB_CONFIG || exit
    
    sudo su - zimbra -c "/opt/zimbra/openldap/sbin/slapadd -q -n 0 -F /opt/zimbra/data/ldap/config -cv -l /backup/ldap-config.bak"
    sudo su - zimbra -c "/opt/zimbra/openldap/sbin/slapadd -q -b \"\" -F /opt/zimbra/data/ldap/config -cv -l /backup/ldap.bak"
    alf@zimbra:~$
    Nice catch, almost forgot about that, so yeah, the file was 32bit from the original host



    So I made a backup of the original install of it, copied it over after the rsync



    Then tried running the commands again



    Do you think that there is another group of files that need to stay original to the new host in order for slapd to run correctly?

    Strace of the original command in that image -

    zimbra@mail:~$ strace /opt/zimbra/openldap/sbin/slapadd -q -n 0 -F /opt/zimbra/d ata/ldap/config -cv -l /backup/ldap-config.bak
    execve("/opt/zimbra/openldap/sbin/slapadd", ["/opt/zimbra/openldap/sbin/slapad". .., "-q", "-n", "0", "-F", "/opt/zimbra/data/ldap/config", "-cv", "-l", "/backup /ldap-config.bak"], [/* 20 vars */]) = 0
    brk(0) = 0xa97000
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8 fa74f0000
    access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
    open("/opt/zimbra/openldap-2.4.26.5z/lib/tls/x86_64/libldap_r-2.4.so.2", O_RDONL Y) = -1 ENOENT (No such file or directory)
    stat("/opt/zimbra/openldap-2.4.26.5z/lib/tls/x86_64", 0x7ffff270c8e0) = -1 ENOEN T (No such file or directory)
    open("/opt/zimbra/openldap-2.4.26.5z/lib/tls/libldap_r-2.4.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat("/opt/zimbra/openldap-2.4.26.5z/lib/tls", 0x7ffff270c8e0) = -1 ENOENT (No s uch file or directory)
    open("/opt/zimbra/openldap-2.4.26.5z/lib/x86_64/libldap_r-2.4.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat("/opt/zimbra/openldap-2.4.26.5z/lib/x86_64", 0x7ffff270c8e0) = -1 ENOENT (N o such file or directory)
    open("/opt/zimbra/openldap-2.4.26.5z/lib/libldap_r-2.4.so.2", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\3 00\266\0\0004\0\0\0".. ., 832) = 832
    close(3) = 0
    stat("/opt/zimbra/openldap-2.4.26.5z/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    open("/opt/zimbra/libtool-2.2.6b/lib/tls/x86_64/libldap_r-2.4.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat("/opt/zimbra/libtool-2.2.6b/lib/tls/x86_64", 0x7ffff270c8e0) = -1 ENOENT (N o such file or directory)
    open("/opt/zimbra/libtool-2.2.6b/lib/tls/libldap_r-2.4.so.2", O_RDONLY) = -1 ENO ENT (No such file or directory)
    stat("/opt/zimbra/libtool-2.2.6b/lib/tls", 0x7ffff270c8e0) = -1 ENOENT (No such file or directory)
    open("/opt/zimbra/libtool-2.2.6b/lib/x86_64/libldap_r-2.4.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat("/opt/zimbra/libtool-2.2.6b/lib/x86_64", 0x7ffff270c8e0) = -1 ENOENT (No su ch file or directory)
    open("/opt/zimbra/libtool-2.2.6b/lib/libldap_r-2.4.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat("/opt/zimbra/libtool-2.2.6b/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...} ) = 0
    open("/opt/zimbra/bdb-4.7.25.4/lib/tls/x86_64/libldap_r-2.4.so.2", O_RDONLY) = - 1 ENOENT (No such file or directory)
    stat("/opt/zimbra/bdb-4.7.25.4/lib/tls/x86_64", 0x7ffff270c8e0) = -1 ENOENT (No such file or directory)
    open("/opt/zimbra/bdb-4.7.25.4/lib/tls/libldap_r-2.4.so.2", O_RDONLY) = -1 ENOEN T (No such file or directory)
    stat("/opt/zimbra/bdb-4.7.25.4/lib/tls", 0x7ffff270c8e0) = -1 ENOENT (No such fi le or directory)
    open("/opt/zimbra/bdb-4.7.25.4/lib/x86_64/libldap_r-2.4.so.2", O_RDONLY) = -1 EN OENT (No such file or directory)
    stat("/opt/zimbra/bdb-4.7.25.4/lib/x86_64", 0x7ffff270c8e0) = -1 ENOENT (No such file or directory)
    open("/opt/zimbra/bdb-4.7.25.4/lib/libldap_r-2.4.so.2", O_RDONLY) = -1 ENOENT (N o such file or directory)
    stat("/opt/zimbra/bdb-4.7.25.4/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    open("/opt/zimbra/cyrus-sasl-2.1.23.3z/lib/tls/x86_64/libldap_r-2.4.so.2", O_RDO NLY) = -1 ENOENT (No such file or directory)
    stat("/opt/zimbra/cyrus-sasl-2.1.23.3z/lib/tls/x86_64", 0x7ffff270c8e0) = -1 ENO ENT (No such file or directory)
    open("/opt/zimbra/cyrus-sasl-2.1.23.3z/lib/tls/libldap_r-2.4.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat("/opt/zimbra/cyrus-sasl-2.1.23.3z/lib/tls", 0x7ffff270c8e0) = -1 ENOENT (No such file or directory)
    open("/opt/zimbra/cyrus-sasl-2.1.23.3z/lib/x86_64/libldap_r-2.4.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat("/opt/zimbra/cyrus-sasl-2.1.23.3z/lib/x86_64", 0x7ffff270c8e0) = -1 ENOENT (No such file or directory)
    open("/opt/zimbra/cyrus-sasl-2.1.23.3z/lib/libldap_r-2.4.so.2", O_RDONLY) = -1 E NOENT (No such file or directory)
    stat("/opt/zimbra/cyrus-sasl-2.1.23.3z/lib", {st_mode=S_IFDIR|0755, st_size=4096 , ...}) = 0
    open("/opt/zimbra/openssl-1.0.0e/lib/tls/x86_64/libldap_r-2.4.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat("/opt/zimbra/openssl-1.0.0e/lib/tls/x86_64", 0x7ffff270c8e0) = -1 ENOENT (N o such file or directory)
    open("/opt/zimbra/openssl-1.0.0e/lib/tls/libldap_r-2.4.so.2", O_RDONLY) = -1 ENO ENT (No such file or directory)
    stat("/opt/zimbra/openssl-1.0.0e/lib/tls", 0x7ffff270c8e0) = -1 ENOENT (No such file or directory)
    open("/opt/zimbra/openssl-1.0.0e/lib/x86_64/libldap_r-2.4.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat("/opt/zimbra/openssl-1.0.0e/lib/x86_64", 0x7ffff270c8e0) = -1 ENOENT (No su ch file or directory)
    open("/opt/zimbra/openssl-1.0.0e/lib/libldap_r-2.4.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat("/opt/zimbra/openssl-1.0.0e/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...} ) = 0
    open("/etc/ld.so.cache", O_RDONLY) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=16311, ...}) = 0
    mmap(NULL, 16311, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8fa74ec000
    close(3) = 0
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libldap_r-2.4.so.2", O_RDONLY) = 3
    read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\36 0\332\0\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0644, st_size=302464, ...}) = 0
    mmap(NULL, 2406952, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f 8fa7087000
    mprotect(0x7f8fa70ce000, 2097152, PROT_NONE) = 0
    mmap(0x7f8fa72ce000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENY WRITE, 3, 0x47000) = 0x7f8fa72ce000
    mmap(0x7f8fa72d1000, 6696, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONY MOUS, -1, 0) = 0x7f8fa72d1000
    close(3) = 0
    open("/opt/zimbra/openldap-2.4.26.5z/lib/liblber-2.4.so.2", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`% \0\0004\0\0\0"..., 832 ) = 832
    close(3) = 0
    open("/opt/zimbra/libtool-2.2.6b/lib/liblber-2.4.so.2", O_RDONLY) = -1 ENOENT (N o such file or directory)
    open("/opt/zimbra/bdb-4.7.25.4/lib/liblber-2.4.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/opt/zimbra/cyrus-sasl-2.1.23.3z/lib/liblber-2.4.so.2", O_RDONLY) = -1 ENO ENT (No such file or directory)
    open("/opt/zimbra/openssl-1.0.0e/lib/liblber-2.4.so.2", O_RDONLY) = -1 ENOENT (N o such file or directory)
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/usr/lib/liblber-2.4.so.2", O_RDONLY) = 3
    read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p.\ 0\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0644, st_size=55568, ...}) = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8 fa74eb000
    mmap(NULL, 2150888, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f 8fa6e79000
    mprotect(0x7f8fa6e86000, 2093056, PROT_NONE) = 0
    mmap(0x7f8fa7085000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW RITE, 3, 0xc000) = 0x7f8fa7085000
    close(3) = 0
    open("/opt/zimbra/openldap-2.4.26.5z/lib/libltdl.so.7", O_RDONLY) = -1 ENOENT (N o such file or directory)
    open("/opt/zimbra/libtool-2.2.6b/lib/libltdl.so.7", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0 \0 \31\0\0004\0\0\0"..., 8 32) = 832
    close(3) = 0
    open("/opt/zimbra/bdb-4.7.25.4/lib/libltdl.so.7", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/opt/zimbra/cyrus-sasl-2.1.23.3z/lib/libltdl.so.7", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/opt/zimbra/openssl-1.0.0e/lib/libltdl.so.7", O_RDONLY) = -1 ENOENT (No su ch file or directory)
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/lib/tls/x86_64/libltdl.so.7", O_RDONLY) = -1 ENOENT (No such file or dire ctory)
    stat("/lib/tls/x86_64", 0x7ffff270c880) = -1 ENOENT (No such file or directory)
    open("/lib/tls/libltdl.so.7", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat("/lib/tls", 0x7ffff270c880) = -1 ENOENT (No such file or directory)
    open("/lib/x86_64/libltdl.so.7", O_RDONLY) = -1 ENOENT (No such file or director y)
    stat("/lib/x86_64", 0x7ffff270c880) = -1 ENOENT (No such file or directory)
    open("/lib/libltdl.so.7", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat("/lib", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
    open("/usr/lib/tls/x86_64/libltdl.so.7", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/tls/x86_64", 0x7ffff270c880) = -1 ENOENT (No such file or directo ry)
    open("/usr/lib/tls/libltdl.so.7", O_RDONLY) = -1 ENOENT (No such file or directo ry)
    stat("/usr/lib/tls", 0x7ffff270c880) = -1 ENOENT (No such file or directory)
    open("/usr/lib/x86_64/libltdl.so.7", O_RDONLY) = -1 ENOENT (No such file or dire ctory)
    stat("/usr/lib/x86_64", 0x7ffff270c880) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libltdl.so.7", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat("/usr/lib", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
    open("/lib/x86_64-linux-gnu/tls/x86_64/libltdl.so.7", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat("/lib/x86_64-linux-gnu/tls/x86_64", 0x7ffff270c880) = -1 ENOENT (No such fi le or directory)
    open("/lib/x86_64-linux-gnu/tls/libltdl.so.7", O_RDONLY) = -1 ENOENT (No such fi le or directory)
    stat("/lib/x86_64-linux-gnu/tls", 0x7ffff270c880) = -1 ENOENT (No such file or d irectory)
    open("/lib/x86_64-linux-gnu/x86_64/libltdl.so.7", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat("/lib/x86_64-linux-gnu/x86_64", 0x7ffff270c880) = -1 ENOENT (No such file o r directory)
    open("/lib/x86_64-linux-gnu/libltdl.so.7", O_RDONLY) = -1 ENOENT (No such file o r directory)
    stat("/lib/x86_64-linux-gnu", 0x7ffff270c880) = -1 ENOENT (No such file or direc tory)
    open("/usr/lib/x86_64-linux-gnu/tls/x86_64/libltdl.so.7", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/x86_64-linux-gnu/tls/x86_64", 0x7ffff270c880) = -1 ENOENT (No suc h file or directory)
    open("/usr/lib/x86_64-linux-gnu/tls/libltdl.so.7", O_RDONLY) = -1 ENOENT (No suc h file or directory)
    stat("/usr/lib/x86_64-linux-gnu/tls", 0x7ffff270c880) = -1 ENOENT (No such file or directory)
    open("/usr/lib/x86_64-linux-gnu/x86_64/libltdl.so.7", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/x86_64-linux-gnu/x86_64", 0x7ffff270c880) = -1 ENOENT (No such fi le or directory)
    open("/usr/lib/x86_64-linux-gnu/libltdl.so.7", O_RDONLY) = -1 ENOENT (No such fi le or directory)
    stat("/usr/lib/x86_64-linux-gnu", 0x7ffff270c880) = -1 ENOENT (No such file or d irectory)
    writev(2, [{"/opt/zimbra/openldap/sbin/slapad"..., 33}, {": ", 2}, {"error while loading shared libra"..., 36}, {": ", 2}, {"libltdl.so.7", 12}, {": ", 2}, {"wr ong ELF class: ELFCLASS32", 27}, {"", 0}, {"", 0}, {"\n", 1}], 10/opt/zimbra/ope nldap/sbin/slapadd: error while loading shared libraries: libltdl.so.7: wrong EL F class: ELFCLASS32
    ) = 115
    exit_group(127) = ?
    zimbra@mail:~$
    That looks like a lot of mismatched files and directories....

    I imported the ldap data with this:

    Code:
    alf@zimbra:~$ cat import-ldap.sh 
    mv -i  /opt/zimbra/data/ldap/hdb/db/DB_CONFIG /opt/zimbra/data/ldap/DB_CONFIG.$$ || exit
    
    rm -rf /opt/zimbra/data/ldap/hdb/*
    rm -rf /opt/zimbra/data/ldap/accesslog/*
    mkdir -p /opt/zimbra/data/ldap/hdb/db /opt/zimbra/data/ldap/hdb/logs
    chown -R zimbra:zimbra /opt/zimbra/data/ldap
    
    mv -i  /opt/zimbra/data/ldap/DB_CONFIG.$$ /opt/zimbra/data/ldap/hdb/db/DB_CONFIG || exit
    
    sudo su - zimbra -c "/opt/zimbra/openldap/sbin/slapadd -q -n 0 -F /opt/zimbra/data/ldap/config -cv -l /backup/ldap-config.bak"
    sudo su - zimbra -c "/opt/zimbra/openldap/sbin/slapadd -q -b \"\" -F /opt/zimbra/data/ldap/config -cv -l /backup/ldap.bak"
    alf@zimbra:~$
    Where can I try your LDAP import script?
    Last edited by Eclipse; 03-07-2012 at 06:32 AM.

  10. #10
    Join Date
    Dec 2011
    Posts
    2
    Rep Power
    3

    Default Gave up on rsync

    I gave up on the rsync method to go from 32 to 64. I did try the manual method:


    Network Edition: Moving from 32-bit to 64-bit Server

    This got around the slapadd issue; I'm able to import my ldap configuration and data, but I've yet to produce a working 64 bit system. A number of the daemons start, but I'm not able to get the web mail or web admin interfaces to load. Also, it appears as though IMAP is down as well. I was going to give it another shot in the future and post further questions after I was 100% sure I followed the instructions in the other article exactly as described.

    What I can say is the rsync method, at least as documented, is a dead end.

Similar Threads

  1. Replies: 1
    Last Post: 08-24-2011, 07:27 AM
  2. Replies: 4
    Last Post: 04-07-2011, 02:54 AM
  3. Replies: 3
    Last Post: 02-28-2011, 04:25 PM
  4. Replies: 17
    Last Post: 02-11-2011, 02:59 AM
  5. Replies: 0
    Last Post: 01-05-2011, 11:26 PM

Posting Permissions

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