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

Add new 'mountonly' workflow #2247

Closed
petroniusniger opened this issue Oct 4, 2019 · 3 comments
Closed

Add new 'mountonly' workflow #2247

petroniusniger opened this issue Oct 4, 2019 · 3 comments
Assignees
Milestone

Comments

@petroniusniger
Copy link
Contributor

petroniusniger commented Oct 4, 2019

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

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

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

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

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

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

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

  • Description of the issue (ideally so that others can reproduce it): Not an issue but an improvement suggestion.

I propose the addition of a new workflow called 'mountonly' whose goal would be, based on the system layout created during 'mkrescue' or 'mkbackup', to simply mount the filesystems of a possibly broken but repairable system without altering them in any way, the ReaR rescue image being used as a mini "live distribution" in this case. This would then give the administrator an ideal starting place to try and repair that system manually, either by editing files from the ReaR rescue media, or by chrooting into the now mounted system.

This 'mountonly' workflow would, in essence, mimic a functionality provided inside the "MondoRescue" suite of tools by the mount-mescript (only better, of course ;-) ).

This proposal had already been discussed on the mailing list with @jsmeix back in March.

A working draft implementation of this feature is already available, that among others successfully mounts LUKS-encrypted filesystems as well as the most important virtual filesystems, allowing for immediate chroot into the target system if needed.

I'll now create a branch for it based on this issue, so that everyone can review it.

Please note: workflow name was initially proposed repair but later renamed to mountonly at @jsmeix suggestion.

@gdha
Copy link
Member

gdha commented Oct 5, 2019

@petroniusniger Thank you - looking forward to the PR already ;-)

@jsmeix jsmeix self-assigned this Oct 5, 2019
@jsmeix jsmeix added the enhancement Adaptions and new features label Oct 5, 2019
@jsmeix jsmeix added this to the ReaR future milestone Oct 5, 2019
@jsmeix
Copy link
Member

jsmeix commented Oct 5, 2019

What had been discussed on the rear-users mailing list back in March
was the ReaR rescue ISO as "live distribution"? mail thread on
http://lists.relax-and-recover.org/pipermail/rear-users/2019-March/thread.html

Therein see in particular my mail
http://lists.relax-and-recover.org/pipermail/rear-users/2019-March/003669.html
which mentiones the related GitHub issues
#987
and
#1091 (comment)

@petroniusniger
I look forward to your contribution to ReaR!

Perhaps - if time permits - I can reuse parts of your code
to get the tree of filesystems mounted at /mnt/local
as the main missing piece to implement a backup restore workflow
that can work on its own:
#987

@jsmeix jsmeix modified the milestones: ReaR future, ReaR v2.6 Nov 5, 2019
@petroniusniger petroniusniger changed the title Add new 'repair' workflow Add new 'mountonly' workflow Nov 21, 2019
jsmeix added a commit that referenced this issue Nov 26, 2019
Initial draft implementation of the new 'mountonly' workflow
to use ReaR as rescue system, therein mount the filesystems
of the target system so that one can manually repair it
(see #2247).
This is described in doc/user-guide/04-scenarios.adoc
@jsmeix
Copy link
Member

jsmeix commented Nov 26, 2019

With #2269 merged
this issue is done.

@jsmeix jsmeix closed this as completed Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants