LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-06-2014, 05:06 PM   #1
Hexikode
LQ Newbie
 
Registered: Jun 2014
Posts: 4

Rep: Reputation: Disabled
Centos 5.7 Backing up and restoring (as a vm)


I have a system that is running and a web / database server that I have to back up and restore on a vm. The machine its on will be the hypervisor so I cannot use the converter yet.

I have tarballed the filesystem and installed centos on vmware player and tried to extract all the folders apart from /boot and /dev as I presume these will be unique to each machine. However its still throwing me a filesystem crash when restarting the machine. Is there something else I should be leaving out?
 
Old 06-06-2014, 05:40 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,825

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
upgrade to 5.10 ASAP
centos 5.7 is 3 versions and OVER a year out of date

you are missing OVER a years worth of SECURITY UPDATES
 
Old 06-07-2014, 07:32 AM   #3
Hexikode
LQ Newbie
 
Registered: Jun 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Its an offline system, only a test bed for some development work, it will never be live. It holds an abandoned project that may be resurrected in the future. I am not too worried about the security aspect of it.
 
Old 06-07-2014, 11:45 AM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
if i understand you correctly you are moving from one type of VM to an other? if that is the case, the best bet is to install the OS fresh on the new VM Host and only copy over the data and specific settings you require to run your web/database.
 
Old 06-07-2014, 03:14 PM   #5
Hexikode
LQ Newbie
 
Registered: Jun 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
@lleb
Its actually from a physical machine with a 500GB HDD (complete overkill for what was required) to a vm host with about 30GB space (10GB is only used).
I had planned to install a fresh os on the vm host and move the data across, I was testing with my own vmware player installation (fresh install and moved most folders across) but that is were I was running in to problems. I believe the /etc folder is the one that is causing me issues as I read up that it holds config files for most applications which is why I was copying it across but it seems it holds filesystem settings also.

My problem is that I don't know enough about the project or what was involved (particulary what applications / settings etc were implemented on this linux machine) so I don't know what exactly I am looking for in regards applications, databases and settings, all I do know is that mysql and php were installed, I am sure there are more.

The only thing that is changing is obviously the hardware (but I am not restoring the /dev folder so that shouldn't be a problem) so I think its an issue with the filesystem / partition table. I am not sure what I should be leaving out on the restore.
 
Old 06-07-2014, 07:02 PM   #6
ymf331
Member
 
Registered: May 2014
Posts: 50

Rep: Reputation: Disabled
To get it to boot I'd imagine you'll need to leave fstab out since it's all hardware-specific.
 
Old 06-08-2014, 06:34 PM   #7
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
if you have a fresh install then it should boot. do not copy over / do not copy over /etc or /var or /tmp. grab any /home directories, grab the specific files in /etc /usr /usr/bin and as this is a web server you will want to grab everything pertaining to the Apache web server and all of its locations. plus you have some kind of database management those directories and config files will need to be copied.

otherwise do not perform a fresh install and use something along the lines of cloanzilla and try to restore it that way. i have no clue if that will work or not in the VM.
 
Old 06-15-2014, 04:45 PM   #8
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
https://wiki.centos.org/Cloud

found a link that might be of assistance for you. sorry this took so long.
 
Old 07-08-2014, 07:08 AM   #9
Hexikode
LQ Newbie
 
Registered: Jun 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
I didn't have much luck restoring to the vm so I decided to restore it back to its original machine. I didn't check the partitioning before I removed the old system so I am not sure how that was. I reinstalled centos 5.7 from the dvd and then I restored the following folders (overwriting them)

lib
lib64
misc
root
home
sbin
usr
var
srv
bin
etc

It boots up but the web services don't seem to be running so its not in the state that it was in before. I think I am a bit out of my depth here.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
backing up and restoring RHEL 6.3 VM md888 Red Hat 4 06-22-2013 04:36 PM
Backing up and restoring Tomtom japa-fi Linux - General 5 04-18-2010 04:36 AM
Backing up/restoring LILO tntcoder Linux - General 3 05-27-2006 05:00 PM
Backing Up / Restoring Arrowx7 Linux - Software 6 09-20-2005 09:49 PM
backing up and restoring linux graystarr Linux - General 8 01-06-2002 11:35 AM


All times are GMT -5. The time now is 02:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration