LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 02-20-2019, 05:22 PM   #1
Knudn
LQ Newbie
 
Registered: Feb 2019
Posts: 3

Rep: Reputation: Disabled
CentOS physical backup solution tips


Hi,
I'm working on a project and need a backup solution.
Its a single physical server used as a hypervisor to host around 20 guest instances.
Now, after using a lot of time configuring everything, I really need a good backup solution for it.

The server is configured with RAID 0, and the operating system is CentOS 7.5.

I have a local network drive, I would like to use this to store my backup files and use the same drive to restore it again.

Would really appreciate any help with this, Thanks!
 
Old 02-20-2019, 06:01 PM   #2
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Are you looking to backup your config files? Or to do a full backup that will also be used for bare-metal recovery?
---
For bare-metal recovery, what are you using for RAID controller (you mentioned RAID0)?
There are several products that will not support BIOS (aka fake) RAID.
---
If you only want to backup your config files, you can use rsync.
 
Old 02-20-2019, 06:23 PM   #3
Knudn
LQ Newbie
 
Registered: Feb 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for answering!
I was hoping to do a bare-metal full backup of the system, and the system is configured with a software-based raid controller.
 
Old 02-20-2019, 07:21 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,143

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
If you want help, answer the questions - being evasive will only dissuade people.
- which RAID0 - mdadm, LVM, something else ?
- which hypervisor - KVM, VMWare, something else ?
- can you stop/pause all the guests at the same time for the backup ?.
- what outage on the host can you tolerate ?.
- how often ?.
...
 
Old 02-21-2019, 11:44 AM   #5
Knudn
LQ Newbie
 
Registered: Feb 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
My bad if the information given was a bit limited.

The raid controller is configured with mdadm and the hypervisor is running KVM.
I have no problem stopping all the guests at the same time for the backup, and it wouldn't matter if the server went offline for a long period of time.

I'm not really interested I a solution for routine backups, I just need to have one as a restore point.
At this point, I think the easiest would be to just manually backup all the files with rsync.

What do you think?
 
Old 02-22-2019, 08:00 AM   #6
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by Knudn View Post
My bad if the information given was a bit limited.

The raid controller is configured with mdadm and the hypervisor is running KVM.
I have no problem stopping all the guests at the same time for the backup, and it wouldn't matter if the server went offline for a long period of time.

I'm not really interested I a solution for routine backups, I just need to have one as a restore point.
At this point, I think the easiest would be to just manually backup all the files with rsync.

What do you think?
Well, to be honest, it's not what we think. You should consider pro/con of both and make a decision.
For example, you have RAID0, in case if single disk failure, you are looking at total loss.

In that situation, you are looking at reinstall OS/apps, then copy config files back. All manual work. And, may be you have time to do this.

And, where are your VMs, are they also on the RAID0 volume? If yes, you should consider backing them up.
 
Old 02-24-2019, 08:19 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator Response

Moved: This thread is more suitable in <CentOS> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 02-24-2019, 07:44 PM   #8
dieselboy
LQ Newbie
 
Registered: Feb 2019
Posts: 25

Rep: Reputation: Disabled
Quote:
Originally Posted by Knudn View Post
Hi,
I'm working on a project and need a backup solution.
Its a single physical server used as a hypervisor to host around 20 guest instances.
Now, after using a lot of time configuring everything, I really need a good backup solution for it.

The server is configured with RAID 0, and the operating system is CentOS 7.5.

I have a local network drive, I would like to use this to store my backup files and use the same drive to restore it again.

Would really appreciate any help with this, Thanks!
Hi OP! Which KVM hypervisor is it running?

Are you looking to back up your guest VMs as well or not?

I'm assuming you have a single host hypervisor with local storage? I think it would be best if you tackle a complete backup as two separate tasks:
1. backup of the hypervisor
2. backup of the guests

For point 1, it depends on what you're using as the KVM host. With oVirt you can take a backup pretty simply with the engine-backup command. Ref: https://www.ovirt.org/documentation/...Migration.html

For point 2 this should be two parts in itself: a) the guests disk(s) and b) the guest configuration (such as VM name, CPU, memory etc as configured in the

I guess more info is needed to help you further.

If you have network storage and snapshot capability, and the Hosts disk is running on this; then what you could do is snapshot the storage and revert the snapshot to recover. Bear in mind that if your VMs are also on the same storage then a host restore will also restore all of the guests state as well.

If you can, then I'd recommend running the guests disks away from the hosts so you can manage them more simply; understand this may not be an option.

If you only want to backup the VMs then you can copy the folder off the system that contains the VM info and disk. But restoring this might be an issue. For example, to restore, you might need to create a dummy VM and then do a dd if=backed-up-vm-image.img of=dummy-vm-image.img
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup tools comparison. Choosing a backup solution for various purposes zomane Linux - Server 4 01-29-2019 12:30 AM
[SOLVED] Backup, shrink backup and modify MBR of backup jps1x2 Linux - General 1 12-17-2013 05:03 AM
Need tips on using Ethernet to power WiFi network, and tips on setting up WiFi crabpot8 Linux - Networking 2 08-24-2009 06:42 PM
LXer: Tips To Protect Linux Servers Physical Console Access LXer Syndicated Linux News 0 03-19-2009 04:10 PM
WinXP on one physical drive and SUSE 10 on another physical drive flanker12k Linux - Newbie 4 05-13-2006 08:36 AM

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

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