Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

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

  1. #11
    jrv
    jrv is offline Active Member
    Join Date
    Nov 2008
    Posts
    28
    Rep Power
    6

    Default

    Quote Originally Posted by Eclipse View Post
    That is community and it is not complete.

    Other things:

    There were a few 32-bit binaries directories around; I renamed them so they would be a mysterious problem.

    The logger rdd files didn't work for some reason so I renamed those directories and am letting it start from scratch.

    Here are the directories I "deleted" by renaming them.
    Code:
    alf@zimbra:~$ sudo find /opt/zimbra/ -name \*.o
    [sudo] password for alf: 
    /opt/zimbra/logger/db/data/logger.sqlitedb.o
    /opt/zimbra/logger/db/data/rrds.o
    /opt/zimbra/jdk1.5.0_15/jre/lib/i386.o
    /opt/zimbra/jdk1.6.0_16/jre/plugin/i386.o
    /opt/zimbra/jdk1.6.0_16/jre/lib/i386.o
    /opt/zimbra/jdk1.5.0_19/jre/lib/i386.o
    /opt/zimbra/zimbramon/lib/i486-linux-gnu-thread-multi.o
    /opt/zimbra/zimbramon/lib/perl5/site_perl/5.8.8/i486-linux-gnu-thread-multi.o
    /opt/zimbra/jdk1.5.0_17/jre/lib/i386.o
    alf@zimbra:~$
    I was careful to NOT switch OS or Zimbra versions at the same time I did the 32-bit to 64-bit migration. I was also careful about file ownerships and not running things as root unless necessary.
    Release 6.0.6_GA_2324.UBUNTU8 UBUNTU8 FOSS edition

  2. #12
    Eclipse is offline Loyal Member
    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 07:32 AM.

  3. #13
    jrv
    jrv is offline Active Member
    Join Date
    Nov 2008
    Posts
    28
    Rep Power
    6

    Default

    Quote Originally Posted by Eclipse View Post
    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?
    That's /opt/zimbra/zimbramon/lib/i486-linux-gnu-thread-multi. Do this and try the slapadd step again:

    $ mv -i /opt/zimbra/zimbramon/lib/i486-linux-gnu-thread-multi /opt/zimbra/zimbramon/lib/i486-linux-gnu-thread-multi.old
    Release 6.0.6_GA_2324.UBUNTU8 UBUNTU8 FOSS edition

  4. #14
    Eclipse is offline Loyal Member
    Join Date
    Jun 2011
    Posts
    76
    Rep Power
    4

    Default

    Quote Originally Posted by jrv View Post
    That's /opt/zimbra/zimbramon/lib/i486-linux-gnu-thread-multi. Do this and try the slapadd step again:

    $ mv -i /opt/zimbra/zimbramon/lib/i486-linux-gnu-thread-multi /opt/zimbra/zimbramon/lib/i486-linux-gnu-thread-multi.old
    I think you meant i386



    But it didn't work =/

    Did it again in the folder and the directory has now been renamed...



    But it's still giving the error....

    If I ever get this working, there is going to be a VIDEO TUTORIAL.
    Last edited by Eclipse; 03-07-2012 at 02:37 PM.

  5. #15
    jrv
    jrv is offline Active Member
    Join Date
    Nov 2008
    Posts
    28
    Rep Power
    6

    Default

    Quote Originally Posted by Eclipse View Post
    I think you meant i386
    The exact name will vary based on the history of the installation. In my case it really is i486*

    But it's still giving the error....
    The problem file is under libtool. I wonder why that wasn't upgraded. Delete, install.sh -s. and try again.

    Run this and look for any stray 32-bit files.

    $ find /opt/zimbra/ -name \*.so\* -type f | xargs file

    If I ever get this working, there is going to be a VIDEO TUTORIAL.
    To quote Paul Erdős: "Problems worthy of attack prove their worth by fighting back."
    Release 6.0.6_GA_2324.UBUNTU8 UBUNTU8 FOSS edition

  6. #16
    rojoblandino is offline Intermediate Member
    Join Date
    Oct 2010
    Posts
    22
    Rep Power
    4

    Default

    I will explain my case and experiencie as the same way the path i did to fulfill my migration still not done correctly but very advanced:

    Migrating From (debian 5.0.10 32 bits) to (debian 5.0.10 64 bits) almost done, zimbra version is zcs-7.2.3, ¿what did i do?

    1) In 64 bits machine I did an installation normally, did not care right configurations, admin user neither password but i recomend to replicate all even ldap passwords, antispam and antivirus, i suggest to copy all exactly the 32 bits:
    i first did a ./install.sh
    2) I backup the zimbramon directory of the 64 bits zimbra installed doing a tarball:
    cd /opt/zimbra
    tar -czpf /root/zimbramon_64.tar.gz zimbramon
    3) I remove all in /opt/zimbra doing a rm:
    rm -rf /opt/zimbra/*
    4) I rsync the 32 bits into the 64 bits:
    rsync -avHK --delete root@server.ip.mail:/opt/zimbra /opt/
    5) i did backup of ldap in 32 bits server following the "Preparing the 32-bit Server" section in the guide (Network Edition: Moving from 32-bit to 64-bit Server - Zimbra :: Wiki)
    a) Create an LDAP dump directory. As root, type mkdir /backup.
    b) As root, type chown zimbra:zimbra /backup.
    c) Stop the 32-bit server, type zmcontrol stop.
    d) On ZCS 6.0 and later, backup the LDAP config database, as zimbra, type /opt/zimbra/libexec/zmslapcat -c /backup
    e) Backup the LDAP data, as zimbra, type /opt/zimbra/libexec/zmslapcat /backup
    and then send it to 64 bits server in /root/backup
    6) Now in the 64 bit server in the rsynced directory of the 32 bits y untar the zimbramon
    cd /opt/zimbra
    tar -xzpf /root/zimbramon_64.tar.gz
    7) Then in the 64 bits server i did following change in (/opt/zcs/zcs-7.2.3_GA_2872.DEBIAN5_64.20130304144832/util/utilfunc.sh) starting line 1478 letting it as follow:
    #if [ -f "/opt/zimbra/openldap/sbin/slapcat" -a x"$UNINSTALL" != "xyes" -a x"$REMOVE" != "xyes" ]; then
    #if [ -f "/opt/zimbra/conf/slapd.conf" -o -d "/opt/zimbra/data/ldap/config" ]; then
    echo ""
    #echo -n "Backing up the ldap database..."
    #tmpfile=`mktemp -t slapcat.XXXXXX 2> /dev/null` || (echo "Failed to create tmpfile" && exit 1)
    #mkdir -p /opt/zimbra/data/ldap
    #chown -R zimbra:zimbra /opt/zimbra/data/ldap
    #runAsZimbra "/opt/zimbra/libexec/zmslapcat /opt/zimbra/data/ldap"
    #if [ $? != 0 ]; then
    # echo "failed."
    # exit
    #else
    # echo "done."
    #fi
    #chmod 640 /opt/zimbra/data/ldap/ldap.bak
    #fi
    #fi
    8) then i did an install software only in 64 server
    ./install.sh -s
    9) then in 64 bits server i restore the backup of the ldap following "6.0.x and later LDAP setup:" section the guide (Network Edition: Moving from 32-bit to 64-bit Server - Zimbra :: Wiki)
    Restore the LDAP data to the 64-bit server. As zimbra, type
    a. rm -rf /opt/zimbra/data/ldap/config/*
    b. rm -rf /opt/zimbra/data/ldap/hdb/*
    d. mkdir -p /opt/zimbra/data/ldap/hdb/db /opt/zimbra/data/ldap/hdb/logs
    f. Copy the file /opt/zimbra/data/ldap/hdb/db/DB_CONFIG from the 32-bit server to /opt/zimbra/data/ldap/hdb/db on the 64-bit server. Note: If this file does not exist, or is empty, creating it may improve ldap performance; see the Performance Tuning Guide for more information.
    g. Type chown -R zimbra:zimbra /opt/zimbra/data/ldap
    h. Copy from the 32-bit server to the 64-bit server the /backup/ldap-config.bak file.
    i. Copy from the 32-bit server to the 64-bit server the /backup/ldap.bak file.
    j. Type /opt/zimbra/openldap/sbin/slapadd -q -n 0 -F /opt/zimbra/data/ldap/config -cv -l /backup/ldap-config.bak.
    k. Type /opt/zimbra/openldap/sbin/slapadd -q -b "" -F /opt/zimbra/data/ldap/config -cv -l /backup/ldap.bak.
    9) Everything worked as a charm, now i did an installation normally
    ./install.sh
    10) All went good without errors but only one service does not run.

    antispam Running
    antivirus Running
    ldap Running
    logger Running
    mailbox Stopped
    zmmailboxdctl is not running.
    mta Running
    snmp Running
    spell Running
    stats Running
    zmconfigd Running
    I am almost done, if anyone has doubts i can help too we are all in the same boat.
    Note: If you follow the steps by steps it works to that point but i am stuck at this point

    My log said following:

    2013-06-04 23:52:08,516 zmconfigd WARNING [21591-MainThread] Fetching All configs
    log4j:WARN No appenders could be found for logger (zimbra.ldap).
    log4j:WARN Please initialize the log4j system properly.
    log4j:WARN See Apache log4j 1.2 - Frequently Asked Technical Questions for more info.
    2013-06-04 23:52:10,012 zmconfigd WARNING [21591-MainThread] All configs fetched in 1.50 seconds
    2013-06-04 23:52:11,240 zmconfigd WARNING [21591-rewrites] Rewrote: /opt/zimbra/mailboxd/etc/jetty.xml with mode 440 (0.26 sec)
    2013-06-04 23:52:11,364 zmconfigd WARNING [21591-rewrites] Rewrote: /opt/zimbra/conf/clamd.conf with mode 440 (0.08 sec)
    2013-06-04 23:52:11,401 zmconfigd WARNING [21591-rewrites] Rewrote: /opt/zimbra/conf/log4j.properties with mode 440 (0.04 sec)
    2013-06-04 23:52:11,411 zmconfigd WARNING [21591-rewrites] Rewrote: /opt/zimbra/conf/mta_milter_options with mode 440 (0.01 sec)
    2013-06-04 23:52:11,433 zmconfigd WARNING [21591-rewrites] Rewrote: /opt/zimbra/postfix/conf/master.cf with mode 440 (0.02 sec)
    2013-06-04 23:52:11,447 zmconfigd WARNING [21591-rewrites] Rewrote: /opt/zimbra/cyrus-sasl-2.1.23.3z/etc/saslauthd.conf with mode 440 (0.01 sec)
    2013-06-04 23:52:11,525 zmconfigd WARNING [21591-rewrites] Rewrote: /opt/zimbra/mailboxd/etc/jetty.properties with mode 440 (0.08 sec)
    2013-06-04 23:52:11,532 zmconfigd WARNING [21591-rewrites] Rewrote: /opt/zimbra/conf/spnego_java_options with mode 440 (0.01 sec)
    2013-06-04 23:52:11,631 zmconfigd WARNING [21591-rewrites] Rewrote: /opt/zimbra/mailboxd/webapps/zimbraAdmin/WEB-INF/web.xml with mode 440 (0.10 sec)
    2013-06-04 23:52:11,660 zmconfigd WARNING [21591-rewrites] Rewrote: /opt/zimbra/mailboxd/etc/krb5.ini with mode 440 (0.03 sec)
    2013-06-04 23:52:11,690 zmconfigd WARNING [21591-rewrites] Rewrote: /opt/zimbra/conf/freshclam.conf with mode 600 (0.03 sec)
    2013-06-04 23:52:11,732 zmconfigd WARNING [21591-rewrites] Rewrote: /opt/zimbra/conf/stats.conf with mode 440 (0.04 sec)
    2013-06-04 23:52:11,844 zmconfigd WARNING [21591-rewrites] Rewrote: /opt/zimbra/mailboxd/webapps/service/WEB-INF/web.xml with mode 440 (0.11 sec)
    2013-06-04 23:52:11,855 zmconfigd WARNING [21591-rewrites] Rewrote: /opt/zimbra/conf/postfix_header_checks with mode 440 (0.01 sec)
    2013-06-04 23:52:11,865 zmconfigd WARNING [21591-rewrites] Rewrote: /opt/zimbra/mailboxd/webapps/zimlet/WEB-INF/web.xml with mode 440 (0.01 sec)
    2013-06-04 23:52:11,874 zmconfigd WARNING [21591-rewrites] Rewrote: /opt/zimbra/mailboxd/etc/spnego.conf with mode 440 (0.01 sec)
    2013-06-04 23:52:11,967 zmconfigd WARNING [21591-rewrites] Rewrote: /opt/zimbra/mailboxd/webapps/zimbra/WEB-INF/web.xml with mode 440 (0.09 sec)
    2013-06-04 23:52:11,989 zmconfigd WARNING [21591-rewrites] Rewrote: /opt/zimbra/mailboxd/etc/spnego.properties with mode 440 (0.02 sec)
    2013-06-04 23:52:12,112 zmconfigd WARNING [21591-rewrites] Rewrote: /opt/zimbra/conf/amavisd.conf with mode 440 (0.12 sec)
    2013-06-04 23:52:12,130 zmconfigd WARNING [21591-rewrites] Rewrote: /opt/zimbra/conf/salocal.cf with mode 440 (0.02 sec)
    2013-06-04 23:52:14,717 zmconfigd WARNING [21591-MainThread] All rewrite threads completed in 3.78 sec
    2013-06-04 23:52:14,720 zmconfigd WARNING [21591-MainThread] All restarts completed in 0.00 sec
    2013-06-04 23:53:14,743 zmconfigd WARNING [21591-MainThread] Fetching All configs
    2013-06-04 23:53:15,424 zmconfigd WARNING [21591-MainThread] All configs fetched in 0.68 seconds
    2013-06-04 23:53:15,724 zmconfigd CRITICAL [21591-MainThread] Tracking service antispam
    2013-06-04 23:53:15,727 zmconfigd WARNING [21591-MainThread] Watchdog: service antispam now available for watchdog.
    2013-06-04 23:53:15,776 zmconfigd CRITICAL [21591-MainThread] Tracking service antivirus
    2013-06-04 23:53:15,778 zmconfigd WARNING [21591-MainThread] Watchdog: service antivirus now available for watchdog.
    2013-06-04 23:53:15,805 zmconfigd CRITICAL [21591-MainThread] Tracking service ldap
    2013-06-04 23:53:15,808 zmconfigd WARNING [21591-MainThread] Watchdog: service ldap now available for watchdog.
    2013-06-04 23:53:15,846 zmconfigd CRITICAL [21591-MainThread] Tracking service logger
    2013-06-04 23:53:15,848 zmconfigd WARNING [21591-MainThread] Watchdog: service logger now available for watchdog.
    2013-06-04 23:53:15,917 zmconfigd CRITICAL [21591-MainThread] Tracking service mailbox
    2013-06-04 23:53:15,918 zmconfigd WARNING [21591-MainThread] Watchdog: service mailbox now available for watchdog.
    2013-06-04 23:53:15,954 zmconfigd CRITICAL [21591-MainThread] Tracking service mailboxd
    2013-06-04 23:53:15,957 zmconfigd WARNING [21591-MainThread] Watchdog: service mailboxd now available for watchdog.
    2013-06-04 23:53:16,723 zmconfigd CRITICAL [21591-MainThread] Tracking service mta
    2013-06-04 23:53:16,724 zmconfigd WARNING [21591-MainThread] Watchdog: service mta now available for watchdog.
    2013-06-04 23:53:16,750 zmconfigd CRITICAL [21591-MainThread] Tracking service sasl
    2013-06-04 23:53:16,752 zmconfigd WARNING [21591-MainThread] Watchdog: service sasl now available for watchdog.
    2013-06-04 23:53:16,776 zmconfigd CRITICAL [21591-MainThread] Tracking service snmp
    2013-06-04 23:53:16,778 zmconfigd WARNING [21591-MainThread] Watchdog: service snmp now available for watchdog.
    2013-06-04 23:53:16,801 zmconfigd CRITICAL [21591-MainThread] Tracking service spell
    2013-06-04 23:53:16,802 zmconfigd WARNING [21591-MainThread] Watchdog: service spell now available for watchdog.
    2013-06-04 23:53:17,296 zmconfigd CRITICAL [21591-MainThread] Tracking service stats
    2013-06-04 23:53:17,298 zmconfigd WARNING [21591-MainThread] Watchdog: service stats now available for watchdog.
    2013-06-04 23:53:17,323 zmconfigd WARNING [21591-MainThread] Watchdog: service antivirus status is OK.
    2013-06-04 23:53:17,448 zmconfigd WARNING [21591-MainThread] All rewrite threads completed in 0.00 sec
    2013-06-04 23:53:17,450 zmconfigd WARNING [21591-MainThread] All restarts completed in 0.00 sec
    Greetings.
    Last edited by rojoblandino; 06-07-2013 at 03:21 PM.

  7. #17
    rojoblandino is offline Intermediate Member
    Join Date
    Oct 2010
    Posts
    22
    Rep Power
    4

    Default

    More log details:

    ==> mail.log <==
    Jun 7 17:14:05 webmail zmmailboxdmgr[13529]: status requested
    Jun 7 17:14:05 webmail zmmailboxdmgr[13529]: stale pid 25345 found in /opt/zimbra/log/zmmailboxd_manager.pid: No such process
    Jun 7 17:14:05 webmail zmmailboxdmgr[13529]: assuming no other instance is running
    Jun 7 17:14:05 webmail zmmailboxdmgr[13529]: file /opt/zimbra/log/zmmailboxd.pid does not exist
    Jun 7 17:14:05 webmail zmmailboxdmgr[13529]: assuming no other instance is running
    Jun 7 17:14:05 webmail zmmailboxdmgr[13529]: no manager process is running
    ==> zimbra.log <==
    Jun 7 17:14:32 webmail zmmailboxdmgr[14089]: manager woke up from wait on mailboxd/JVM with pid 14134
    Jun 7 17:14:32 webmail zmmailboxdmgr[14089]: mailboxd/JVM exited twice in 1 seconds (tolerance=60)

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

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

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, 05:25 PM
  4. Replies: 17
    Last Post: 02-11-2011, 03:59 AM
  5. Replies: 0
    Last Post: 01-06-2011, 12:26 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
  •