LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 06-22-2013, 02:46 AM   #1
md888
LQ Newbie
 
Registered: Jun 2013
Posts: 3

Rep: Reputation: Disabled
backing up and restoring RHEL 6.3 VM


Hi!
I am administering a system I didn't configure. I know it is a RHEL 6.3 VM image and there are others as well. How do I make a backup of the image and of the filesytems, in case I screw up the configuration.

How can I restore it as well.

My plan is this
1) Find out what kind of VM, and use the vm tools
2) Take a tar of important directories
3) Schedule filesystem backup

Any help would be appreciated.
Thanks md888
 
Old 06-22-2013, 04:48 AM   #2
slipstreamed
Member
 
Registered: Nov 2010
Posts: 60

Rep: Reputation: 24
Can you post name of the software you're using for VM? Also is it a fully virtualized or a para/hardware assisted environment?
you'll also need to determine the directory where the image of RHEL is being stored, in KVM i think it's
Code:
/var/lib/libvirt/images
by default. I don't know if it is possible to take backup selected directories and use them on a different machine as a fully fledged VM.
You could tar and gzip the original RHEL image and use it as a backup and deploy multiple instances of RHEL on multiple machines but you'll need to sort out licensing issues. If you screw up you could copy the un-tarred image to the directory where the Virtualization software will look for OS images.
For backing up your system you can use rsync, dump, AMANDA
 
1 members found this post helpful.
Old 06-22-2013, 05:27 AM   #3
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

Rep: Reputation: 153Reputation: 153
It depends on what type of virtualization software you are using. Unless you specify that, it is difficult to specify.

You can also use snapshot feature before trying anything. If you've messed up, you can just rollback.
 
1 members found this post helpful.
Old 06-22-2013, 03:09 PM   #4
md888
LQ Newbie
 
Registered: Jun 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks guys, would there be a way I can check what kind of virtualization software the server is running using some command?
M8
 
Old 06-22-2013, 03:36 PM   #5
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

Rep: Reputation: 153Reputation: 153
I'm aware of VirtualBox and KVM virtualization technology.

You can do following to figure out which virtualization technology you are using.

In Terminal enter following:

For VirtualBox:
Code:
$ VBoxManage list vms
If you get any results, then you are using VirtualBox. Note that you have to issue this command only from that user where VirtualBox app is installed.

For KVM:
Code:
# virsh list --all
If you get any results, then your are using KVM.

If you dont get any results, then probably you are using other technology (probably VMWare), which i'm not aware of, or not using VM at all.

Edit: Just googled. If you want to check - for VMWare, then enter following in terminal:
Code:
$ vmware-installer -l

Last edited by Madhu Desai; 06-22-2013 at 03:40 PM.
 
1 members found this post helpful.
  


Reply



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 Tomtom japa-fi Linux - General 5 04-18-2010 03:36 AM
backing up and restoring a linux machine fredsub Linux - Server 5 08-25-2008 09:17 PM
Backing up/restoring LILO tntcoder Linux - General 3 05-27-2006 04:00 PM
Backing Up / Restoring Arrowx7 Linux - Software 6 09-20-2005 08:49 PM
backing up and restoring linux graystarr Linux - General 8 01-06-2002 10:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 07:32 PM.

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