
Categoria: Plesk
Pregunta:
How do I perform a disk-to-disk (chroot) migration?
Respuesta: Respuesta Plesk for Linux versions 8 and above support a disk-to-disk migration by exporting
data in a chroot shell and then importing it using the Plesk Migration Manager.
(There is currently no method to perform a disk-to-disk migration on Plesk for Windows.
If you have a Windows Plesk server, the only migration method is server-to-server. You
will need to purchase a second server.)
--------------------------------------------------------------------------------
NOTE: This procedure requires you to login to your server via SSH and use the
command line. You should be fairly comfortable with using the command line
of a Linux server prior to performing this procedure.
Some directory or file locations my be different on your server. You will need to be able to
assess your server's configuration and adjust the following instructions as necessary to fit
your server's configuration.
If you are NOT comfortable using the command line on a Linux server, you
should consider one of the following options:
1. Hire a qualified consultant with Linux experience to perform this procedure.
2. Purchase a second server and perform a server-to-server migration instead. This
can be completed entirely within the Plesk interface. Server-to-server Migration
using the Plesk Migration Manager from within the Plesk interface will yield
identical results to this procedure
CariNet is not responsible for data loss as a result of failure to complete
this procedure correctly for your server and cannot recover any lost data.
This migration typically takes 2 hours or so to complete and performs a full migration
of *ALL* Plesk related data including Plesk configuration, user accounts, mail boxes,
Plesk-installed Web Applications, MySQL databases created from within Plesk, etc
This process may take longer than the above estimate. The actual time to completion
will vary, depending on the amount of data on your server. However this will result in
most complete and accurate migration possible.
--------------------------------------------------------------------------------
NOTE: The Plesk export should be completed in a screen session to avoid interruption of the
export process should your SSH session become disconnected for any reason. The screen
utility allows your shell to continue even if your SSH session is disconnected.
Use your distribution's package manager to install the "screen" utility
EX: Fedora/CentOS
yum install screen
Mandriva
urpmi screen
SuSE
zypper install screen
Debian/Ubuntu
apt-get install screen
To start a screen session, simply type
screen
Should you become disconnected from your SSH session, you can reconnect to your previously
started session by typing
screen -r
To end your screen session, simply type
exit
Please review the man page for your distribution's screen utility for additional usage information.
--------------------------------------------------------------------------------
# These instructions assume that your old (slaved) disk is /dev/sdb. Depending on the
# number of drives installed in your server, your old disk may not be /dev/sdb.
# Replace /dev/sdb with the appropriate device name for your old (slaved) drive.
# First be sure that your old disk is not mounted somewhere else. (Command is issued
# twice, since /dev/sdb2 cannot be unmounted until other partitions are unmounted):
umount /dev/sdb*
umount /dev/sdb*
# Make a mount point for the old drive under /mnt
mkdir /mnt/old_disk
# Mount old partitions in proper structure under /mnt/old_disk
mount /dev/sdb2 /mnt/old_disk
mount /dev/sdb3 /mnt/old_disk/var
mount /dev/sdb6 /mnt/old_disk/home
# Stop Plesk and all related services
/etc/init.d/psa stopall
# Create a migration directory on the old drive (preferably on the /home partition
# since that partition has the most space) and copy the Migration Manager components
# to the migration directory
mkdir /mnt/old_disk/home/migration
cp -r /usr/local/psa/PMM/agents/shared/* /mnt/old_disk/home/migration
cp -r /usr/local/psa/PMM/agents/PleskX/* /mnt/old_disk/home/migration
#
# NOTE: Begin screen session described above
#
# chroot to the old disk
# (Directory "/mnt/old_disk" now becomes "/" for the current shell)
export SHELL=/bin/bash
chroot /mnt/old_disk
# Start MySQL (Since you are chroot'ed to /mnt/old_disk, this will
# start MySQL on your old drive and make that data available)
/etc/init.d/mysqld start
# NOTE: On SuSE and some other distributions, the MySQL process is simply named "mysql"
# so you would simply enter
# /etc/init.d/mysql start
# cd to the migration directory and run run the PleskX.pl migration module create a dump
# of your sites and data in Migration Manager format.
cd /home/migration
chmod +x PleskX.pl
./PleskX.pl --dump-all -v5
# Once the export has completed, stop MySQL
/etc/init.d/mysqld stop
# Create a directory named "archive" and move all Migration Manager files to it
# Move ONLY dump.xml back out
mkdir /home/migration/archive
mv /home/migration/* /home/migration/archive/
mv /home/migration/archive/dump.xml /home/migration/
# And exit the chroot environment
exit
#
# NOTE: End screen session described above
#
# Restart Plesk and related services (Since you are no longer in the chroot shell,
# you are now starting Plesk on your new disk
/etc/init.d/psa start
# Now login to Plesk at https://
Pregunta:Como transfiero un sitio desde un share hosting a un servidor dedicado?
Pregunta:¿Cómo puedo restaurar mi sitio si ha sido borrado?
Pregunta:¿Puedo comprar ancho de banda adicional?
Pregunta:¿Qué es protección de Ancho de Banda?
Pregunta:¿Puedo comprar espacio de disco adicional para un Sitio Web?
Pregunta:¿Como direcciono un dominio a otro o a un sitio externo?
Pregunta:¿Cómo puedo redireccionar un dominio a otro sin que cambie el URL?
Pregunta:¿Cómo protejo un directorio/folder dentro de mi Sitio Web?
Pregunta:Cuando voy a mi sitio web me muestra un mensaje de ?Forbidden message? aun después de haber subido un index. ¿Cómo puedo ver mi sitio sin usar una pagina index.htnl?
Pregunta:¿Como Personalizo una pagina de Error (especialmente el error 404)?
Pregunta:¿Qué es SSI y cuando debo usarlo?
Pregunta:¿Porque mi Dominio (sitio web) no esta visible en Internet?
Pregunta:Cuándo yo intento ver mi Sitio Web usando el IP, ¿por qué me da un mensaje de error?
Pregunta:¿Cuál es el folder correcto (path) para subir mis archivos a mi sitio web?
Pregunta:¿Qué es un Hospedaje para Sitio Web?
Pregunta:¿Porque necesitamos las estadisticas?
Pregunta:He agregado estadísticas a mi sitio web, ¿cuando podré ver la información?
Pregunta:¿Cómo puedo ver mis estadísticas del dominio?
Pregunta:¿Que Direcciones IP debo usar para el Webmail, si uso mis propios DNS?
Pregunta:¿Qué es el Webmail y como acceso?
Pregunta:¿Cómo puedo usar Auto-Respuestas para Casos?
Pregunta:Elimine el SSL de mi sitio y ahora mi sitio esta abajo. ¿Cómo soluciono esto?
Pregunta:¿Cuál es el producto Branded iBizPanel Security (SSL)?
Pregunta:¿Cómo puedo tener mi certificado SSL validado y firmado?
Pregunta:¿Cómo puedo comprar y tener un certificado SSL instalado en mi sitio web?
Pregunta:¿Que es SSL y porque podría necesitarlo mi sitio web?
Pregunta:¿Cómo utilizo el Filtro de Spam con Outlook/Outlook Express?
Pregunta:Reinicios remotos? Cual es el trato?
Pregunta:Cual es el costo de las reinstalaciones del sistema operativo (o restauraciones)?
Pregunta:Me puedes ayudar a configurar mi corre, firewall, etc., en mi nuevo servidor?
Pregunta:Puedo instalar MS SQL, Counterstrike, etc.?
Pregunta:Explicación del Ancho de Banda
Pregunta:Cuantas IPs obtengo y dicha ip es compartida o dedicada?
Pregunta:Puedo usar otros métodos para controlar mi servidor dedicado?
Pregunta:Como puedo accesar a mi servidor?
Pregunta:How do I find who the highest processor consuming user is on my Linux system?
Pregunta:Como cambio el nombre de mi servidor en el iBizPanel?
Pregunta:¿Cómo cambio el DNS reverso para el IP ADDRESS de mi servidor?
Pregunta:¿Por qué no funciona mi Script de Whois?
Pregunta:¿Por qué mi script de FormMail no funciona?
Pregunta:Como hago que Google Sitemaps funcione con ProStores?
Pregunta:Como Actualizo/Degrado un sitio ProStore Server? (ej. Business -> Advanced)
Pregunta:Cuando ingreso a mi ProStore (ej. mystore.mydomain.com) obtengo una pagina index de defecto, como soluciono esto?
Pregunta:Como acceso a mi interface ProStore de administrador?
Pregunta:Como instalo SSL en mi sitio ProStore
Pregunta:How do I perform a disk-to-disk (chroot) migration?
Pregunta:Como puedo crear dumps nocturnos de mi base de datos MySQL de mi servidor Linux Plesk
Pregunta:Plesk falla al iniciar BIND o resolver en Fedora
Pregunta:Error de correo: Unable to lock mailbox" en servidores windows con plesk
Pregunta:Estoy recibiendo avisos de expiración de la licencia de Plesk. ¿Cómo renuevo mi licencia de Plesk?
Pregunta:Como arreglar el error: Warning: readfile(): URL file-access is disabled in the server configuration in /home/domains/
Pregunta:¿Cómo configuro opciones en el archivo php.ini?
Pregunta:Modo PHP-CGI y el uso de "PHP_SELF"
Pregunta:Que version de PEAR soporte el iBizPanel servidor?
Pregunta:¿Qué es Modo PHP en Ajustes Avanzados al Editar un Sitio Web?
Pregunta:¿Cómo inhabilito register_globals en mis escrituras de PHP para mejorar el control (y la seguridad) de escrituras?
Pregunta:¿Qué versión, módulos, y extensiones de PHP estan instaladas en los servidores?
Pregunta:¿Qué es PHP y cuando debo utilizarlo?
Pregunta:¿Cómo confiuguro un Mailing List (lista de correos)?
Pregunta:Shell Redirection
Pregunta:Porque mi compra desaparecio?
Pregunta:Como les otorgo a mis clientes acceso al sistema de casos?
