LinuxQuestions.org
Help answer threads with 0 replies.
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 05-30-2018, 10:11 PM   #1
sub320
Member
 
Registered: Jan 2016
Posts: 116

Rep: Reputation: 3
how to check everything are migrated after the physical to vmware virtual machine


I have a centos linux running on physical machine , I have moved it to a vmware virtual , how to confirm they are the same , everything are copy to new machine ?

thanks

Last edited by sub320; 05-30-2018 at 11:34 PM.
 
Old 05-30-2018, 11:23 PM   #2
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.7.1908
Posts: 4,394

Rep: Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559
Hard to help you without knowing
  • Which version of CentOS?
  • How did you do the "move"?
 
Old 05-30-2018, 11:36 PM   #3
sub320
Member
 
Registered: Jan 2016
Posts: 116

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by scasey View Post
Hard to help you without knowing
  • Which version of CentOS?
  • How did you do the "move"?
centos 7.1
changed , not "move" , I just use vmware migration tools to migrate to vmware host .
 
Old 05-31-2018, 02:09 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,511

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
The converted system is not the same as the source system. After skimming the manual for VMware vCenter Converter, I can tell you there is no automated way to compare the converted system to the source system. You' would have to do it manually for critical data like database tables, web content, etc.
 
Old 05-31-2018, 04:37 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,514

Rep: Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017
We might need to know what's running at the time of move/clone/migrate.

One could use checksums on files in directories I guess. Might be easier to rsync the standard directories.

Some of the VM tools to do live clones are pretty good at taking snapshots and moving correctly. Windows does have a way to use programs like backup while maintaining filesystem correct to and exact point in time. They too may suffer on some database tranactions I think.

Last edited by jefro; 05-31-2018 at 04:41 PM.
 
Old 05-31-2018, 09:15 PM   #6
sub320
Member
 
Registered: Jan 2016
Posts: 116

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by jefro View Post
We might need to know what's running at the time of move/clone/migrate.

One could use checksums on files in directories I guess. Might be easier to rsync the standard directories.

Some of the VM tools to do live clones are pretty good at taking snapshots and moving correctly. Windows does have a way to use programs like backup while maintaining filesystem correct to and exact point in time. They too may suffer on some database tranactions I think.
About the checksums , would suggest how to do it .
 
Old 05-31-2018, 10:55 PM   #7
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,511

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
You would run
Code:
$ md5sum file
on each file you want to verify. If the sum is the same on the source and destination files, the files are the same. You also use shasum.
 
Old 06-01-2018, 01:03 AM   #8
sub320
Member
 
Registered: Jan 2016
Posts: 116

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by AwesomeMachine View Post
You would run
Code:
$ md5sum file
on each file you want to verify. If the sum is the same on the source and destination files, the files are the same. You also use shasum.
but how to do shasum for the whole server ?

I know shasum is for single file .

thanks
 
Old 06-01-2018, 04:44 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,514

Rep: Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017
I'd have to image this all would work best on non-powered systems off live boot just after move.

You'd have to create a checksum list for the files you want to be checked. Not all files would need to be checked usually and some would need to be avoided. That list or pattern of search through directory structure would create a set of file lists to be compared to on a one to one basis with some means to write errors and continue to next file or report all results to file then parse the output to your needs of go/nogo.

A number of folks write excellent scripts for such use if you need one. Post it at programming forum here LQ.

In a strict sense I guess diff or other tools that could access each drive could be used. https://superuser.com/questions/1253...files-in-linux

I get the feeling you can create a rsync set that can be run in test run??
 
  


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
LFS 8.2 : OK on a Virtual Machine BUT donít start on a physical machine MAC guelvicle Linux From Scratch 2 05-06-2018 02:40 AM
LXer: 16 Methods To Check If A Linux System Is Physical or Virtual Machine LXer Syndicated Linux News 0 08-02-2017 07:03 PM
LXer: 6 easy ways to check, If a Machine is Physical or Virtual in Linux ? LXer Syndicated Linux News 0 01-26-2017 01:26 PM
[SOLVED] Convert Virtual Machine from VirtualBox to Physical Machine. hack3rcon Linux - Virtualization and Cloud 9 07-13-2015 04:52 PM
LXer: How to check the status of VMware Tools per virtual Machine the easy way. LXer Syndicated Linux News 0 04-01-2009 10:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:29 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