Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use REAR to backup a system to a local file system #2486

Closed
IT-Guy-1973 opened this issue Sep 2, 2020 · 5 comments
Closed

Use REAR to backup a system to a local file system #2486

IT-Guy-1973 opened this issue Sep 2, 2020 · 5 comments
Labels
no-issue-activity special hardware or VM The issue depends on non common (virtual) hardware. support / question

Comments

@IT-Guy-1973
Copy link

IT-Guy-1973 commented Sep 2, 2020

Relax-and-Recover (ReaR) Issue Template

Fill in the following items before submitting a new issue
(quick response is not guaranteed with free support):

  • ReaR version ("/usr/sbin/rear -V"):

Relax-and-Recover 2.6 / 2020-06-17

  • OS version ("cat /etc/os-release" or "lsb_release -a" or "cat /etc/rear/os.conf"):

SUSE 12 SP4

  • ReaR configuration files ("cat /etc/rear/site.conf" and/or "cat /etc/rear/local.conf"):

  • Hardware (PC or PowerNV BareMetal or ARM) or virtual machine (KVM guest or PoverVM LPAR):

  • System architecture (x86 compatible or PPC64/PPC64LE or what exact ARM device):

x86 Azure Cloud

  • Firmware (BIOS or UEFI or Open Firmware) and bootloader (GRUB or ELILO or Petitboot):

  • Storage (local disk or SSD) and/or SAN (FC or iSCSI or FCoE) and/or multipath (DM or NVMe):

  • Storage layout ("lsblk -ipo NAME,KNAME,PKNAME,TRAN,TYPE,FSTYPE,SIZE,MOUNTPOINT" or "lsblk" as makeshift):

  • Description of the issue (ideally so that others can reproduce it):

Hello Support,

Is there a way I could re-create the root disk partitions using a rear backup on a VM running in Azure?

I am able to create a "raw" backup using REAR of the VM. I can also mount the root disk to another system. Can I delete the "/boot" and "/" partitions in rescue mode and re-create them to my needs using the rear backup in some way?

Regards,
Niranjan

  • Workaround, if any:

  • Attachments, as applicable ("rear -D mkrescue/mkbackup/recover" debug log files):

To paste verbatim text like command output or file content,
include it between a leading and a closing line of three backticks like

```
verbatim content
```
@gdha
Copy link
Member

gdha commented Sep 4, 2020

@IT-Guy-1973 Did you use BLOCKCLONE and dd (https://github.com/rear/rear/blob/master/doc/user-guide/04-scenarios.adoc) technique to create the raw image? I cannot give a correct answer as the input is not fully clear to me.

@jsmeix jsmeix added support / question waiting for info special hardware or VM The issue depends on non common (virtual) hardware. labels Sep 10, 2020
@IT-Guy-1973
Copy link
Author

Hello @gdha ,

Sorry for the late response and my vague question. Here is the problem I have:

Cloud providers like Azure and AWS do not support booting from an ISO. Therefore I cannot use the ".iso" file that is created when I do a REAR backup to recover a VM is Azure or AWS. Is there another method in REAR where I could recover a VM using REAR in a cloud environment?

Thank you,
Regards,
Niranjan

@jsmeix
Copy link
Member

jsmeix commented Oct 12, 2020

@IT-Guy-1973
see the section "RESCUE IMAGE CONFIGURATION" in "man rear" e.g. online at
https://github.com/rear/rear/blob/master/doc/rear.8.adoc
what different kinds of OUTPUT media ReaR can make.

I don't know wherefrom a VM in Azure or AWS can boot.
I use neither Azure nor AWS.
I use only KVM/QEMU VMs that can boot from ISO (via virtual CDROM).

Perhaps a VM in Azure or AWS can boot via PXE (i.e. OUTPUT=PXE)?

For a generic workaround how to boot the ReaR recovery system see the section
"Launching the ReaR recovery system via kexec" at
https://en.opensuse.org/SDB:Disaster_Recovery

@gdha
Copy link
Member

gdha commented Oct 13, 2020

@IT-Guy-1973 If you mount a snapshot disk to another VM you can do what you like with it - including restoring / and /boot from another rear backup. I do think a grub2 mkconfig will be necessary to get this snapshot disk bootable. It is worth a try I would say.

Feedback is most welcome!

@github-actions
Copy link

Stale issue message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-issue-activity special hardware or VM The issue depends on non common (virtual) hardware. support / question
Projects
None yet
Development

No branches or pull requests

3 participants