#1  
Old 6th April 2010, 14:45
guimnk guimnk is offline
Member
 
Join Date: Jul 2009
Posts: 90
Thanks: 7
Thanked 2 Times in 2 Posts
Smile ISPConfig Migration and Upgrade

Hi all..

I've 2 questions, please, help-me. I have 2 servers running ISPConfig 3.0.16.

Server A: Ubuntu 9.04 32bits
Server B: Ubuntu 9.10 64bits

1) How can I do to migrate ISPConfig 3.0.1.6 from Server A to Server B?



2) How can I do to upgrade ISPConfig from version 3.0.1.6 to 3.0.2.1?



Thanks
Reply With Quote
Sponsored Links
  #2  
Old 6th April 2010, 20:39
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,034
Thanks: 826
Thanked 5,383 Times in 4,230 Posts
Default

The migration steps are:

1) Install the same ispconfig version on the second server.
2) move all lines for the web* and client* users and groups from /etc/passwd and /etc/shadow and /etc/group and /etc/gshadow to the same files on the new server. Copy just these lines and not the whole files!
3) Copy the /var/www and /var/vmail directories to the new server. Make sure that you preserve permissions by e.g. using these tar commands:

tar pcfz www.tar.gz /var/www

tar pcfz vmail.tar.gz /var/vmail

4) Move the ispconfig mysql database to the new server and also move all client databases to the new server.


To your second question: To update ispconfig, run the commands:

ispconfig_update.sh

as root user on the shell.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
Hans (7th April 2010)
  #3  
Old 7th April 2010, 17:36
guimnk guimnk is offline
Member
 
Join Date: Jul 2009
Posts: 90
Thanks: 7
Thanked 2 Times in 2 Posts
Default

Thank you Till..

Is very important run this command after the importation of 'information_schema' of old mysql server in new mysql server..

Code:
mysql_upgrade -u root -h localhost -p –v –f
Before this command, I get amavisd errors.. Now, is fixed..

Hmm.. I get errors with ISPConfig user in mysql.. Then, I copy the password generated in /etc/mydns.conf and replace the mysql password of ispconfig user.. The error is fixed..

Till, How can I do to enable HA in ISPConfig3 ?
Reply With Quote
  #4  
Old 26th May 2011, 12:28
Naudski Naudski is offline
Junior Member
 
Join Date: Feb 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Post

Hai Till,

How about migrating the symbolic links in the /var/www/ dir?
The tar pcfz command doesn't preserve the symbolic links or am I doing something wrong here?

Regards,
Naudski
Reply With Quote
  #5  
Old 26th May 2011, 14:05
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,034
Thanks: 826
Thanked 5,383 Times in 4,230 Posts
Default

The command tar pcfz preserves the links.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 26th May 2011, 16:03
guimnk guimnk is offline
Member
 
Join Date: Jul 2009
Posts: 90
Thanks: 7
Thanked 2 Times in 2 Posts
Default

Follow just till said, then you'll be able to migrate...

OR

To migrate using rsync:

Code:
rsync -avu /var/www root@192.168.1.100:/var/
rsync -avu /var/vmail root@192.168.1.100:/var/

# 192.168.1.100 = target server
To migrate MySQL, use this script:

Code:
#!/bin/bash
# where your mysql commands are
CMD_MYSQL="/usr/bin/mysql"
CMD_MYSQLDUMP="/usr/bin/mysqldump"

# login credentials of the submitting side
DB_USER_FROM="root"
DB_PASS_FROM="your_password"
DB_HOST_FROM="localhost"

# login credentials of the receiving side
DB_USER_TO="root"
DB_PASS_TO="password_of_target_server"
DB_HOST_TO="192.168.1.100" # IP of target server...

# index all databases on the local (submitting) side
echo "database sync"
DATABASES=`echo "SHOW DATABASES;" | ${CMD_MYSQL} -p${DB_PASS_FROM} -u ${DB_USER_FROM} -h ${DB_HOST_FROM}`

# loop over all the databases
for DATABASE in $DATABASES; do
  # skip non-databases
  if [ "${DATABASE}" != "Database" ] && [ "${DATABASE}" != "information_schema" ]; then
    echo "transmitting ${DATABASE}"

    # create database on remote (receiving) side if it doesn't exist
    echo "CREATE DATABASE IF NOT EXISTS ${DATABASE}" | ${CMD_MYSQL} -p${DB_PASS_TO} -u ${DB_USER_TO} -h ${DB_HOST_TO}

    # dump the current database and pipe it directly to the remote (receiving) side to inject it
    ${CMD_MYSQLDUMP} -Q -B --create-options --delayed-insert --complete-insert --quote-names --add-drop-table -p${DB_PASS_FROM} -u${DB_USER_FROM} -h${DB_HOST_FROM} ${DATABASE} | ${CMD_MYSQL} -p${DB_PASS_TO} -u ${DB_USER_TO} -h ${DB_HOST_TO} ${DATABASE}
  fi
done
Reply With Quote
The Following User Says Thank You to guimnk For This Useful Post:
skoena (1st July 2013)
  #7  
Old 1st February 2012, 16:12
Lukash Lukash is offline
Junior Member
 
Join Date: Feb 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello All,

I have single server Debian 5.0 with BIND & Dovecot and ISPConfig 3 updated with all Debian security updates and with ISPConfig version 3.0.4.2. Now I have a plan to migrate it to Web, Email And MySQL Database Cluster (Mirror) with BIND & Courier on Debian 6.0. Regarding mentioned case I have few questions:
1) is this operation possible?
2) may I use follwing tutorials for this operation
http://www.howtoforge.com/installing...th-ispconfig-3
http://www.howtoforge.com/perfect-se...er-ispconfig-3 ?
3) do you have a different (better) ideas for mirrored ISPConfig servers?
Thank you in advance for support.

Lukash
Reply With Quote
  #8  
Old 1st February 2012, 16:28
guimnk guimnk is offline
Member
 
Join Date: Jul 2009
Posts: 90
Thanks: 7
Thanked 2 Times in 2 Posts
Default

Hi Lukash!

1) Yes, it's possible.
2) You want to migrate and use this new server as a production server or you want to use this new server for backups (mirror)?
3) If you want to migrate and use this new server as a production server, you want to follow the ideas in this post. If you want to synchronize your data in new server, you have other ways to do... Ex: using rsync with cron job, using mysql backup with cron job, and more..
Reply With Quote
  #9  
Old 1st February 2012, 19:08
Lukash Lukash is offline
Junior Member
 
Join Date: Feb 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Hi guimnk,

Thanx for fast answer.
1) Good information.
2) I have 2 completly new servers with Debian 6.0.4 (base system + ssh only) installed. I want to install this servers as mirrored ISPConfig servers with mentioned tutorial. Afterwards migrate single server (settings, websites, emails, dns, etc.) to this two mirrored servers. After migration single server will be turned off. Do you have any advices for this operation?
Greetings.

Lukash
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig migration to new server. cambo Installation/Configuration 11 4th July 2013 22:10
MyDNS to PowerDNS : Safe Migration zenny Tips/Tricks/Mods 11 23rd December 2010 10:22
ISPConfig installation into multiple OpenVZ containers letezo Installation/Configuration 11 3rd March 2009 22:47
ISPConfig 2 - ISPConfig 3 backup compatibility Up2NoGood General 3 27th February 2009 12:31
Hardware Upgrade question Turbanator Server Operation 4 12th October 2008 01:40


All times are GMT +2. The time now is 08:30.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.