LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 11-18-2019, 06:16 AM   #1
dani50
LQ Newbie
 
Registered: Nov 2019
Posts: 1

Rep: Reputation: Disabled
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
 
Old 11-19-2019, 07:25 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,307
Blog Entries: 28

Rep: Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136
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.

Last edited by frankbell; 11-19-2019 at 09:33 PM. Reason: grammarical errors
 
1 members found this post helpful.
Old 11-19-2019, 08:10 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Migrate From CentOS-6 to CentOS-7 - Not Inplace etpoole60 Linux - Software 3 04-24-2016 07:50 AM
Migrate/Copy DNS server to a new Centos Box nas123 Linux - Server 16 04-29-2013 10:05 AM
Making sure a file is safe to migrate to a new hdd Dralnu Linux - Security 11 05-13-2009 02:56 PM
migrate from suse, what should i migrate to? any suggestions?:twocents: Siljrath Linux - General 4 12-26-2005 01:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 02:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration