LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   Migrate web server centos 7 on new hdd's (https://www.linuxquestions.org/questions/centos-111/migrate-web-server-centos-7-on-new-hdds-4175664473/)

dani50 11-18-2019 06:16 AM

Migrate web server centos 7 on new hdd's
 
Hello everyone, I have a web server with centos7 with 1TB raid 1(mirror) and I want to pass on the 2TB hdd. Which is the simplest solution to pass all the information on 2TB? The server is installed on a PC intel i5. Thanks in advance

frankbell 11-19-2019 07:25 PM

You haven't provided much information, so it's difficult to provide a detailed answer, but here's the short answer:

Back up your document root directory to external media, then import it to document root on the new server.

If you have an SQL database, export the database to external media, then import it to the new one. It might be a good idea to do a check, repair, and optimize on the database first.

A web search for "migrate website" turns up many detailed articles and posts.

syg00 11-19-2019 08:10 PM

Add a 2T drive to the array, allow it to fully synch. Swap out one of the 1T drives for the other 2T. Allow it to fully synch. Remove the remaining 1T, and resize the array, and any filesystems affected.
No one will ever know.


All times are GMT -5. The time now is 04:14 AM.