Bug 1851287 - RFE: create extra subvolumes by default on btrfs
Summary: RFE: create extra subvolumes by default on btrfs
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1851166
TreeView+ depends on / blocked
 
Reported: 2020-06-26 03:14 UTC by Chris Murphy
Modified: 2020-08-20 05:09 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-08-20 05:09:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Chris Murphy 2020-06-26 03:14:49 UTC
https://fedoraproject.org/wiki/Changes/BtrfsByDefault

Summary:
 - Create additional subvolumes to exclude locations from a snapshotting send and receive regime. This is an optimization.
 - Desired but not a requirement of the change proposal.

Detail:
Creating snapshots on btrfs is not recursive, the snapshot stops at nested subvolumes.

Options:
 - Create subvolumes in nested form to prevent certain locations from being snapshot
   - Dilemma: A rollback will need to move these subvolumes to a new location, because they're nested in the old/abandoned subvolume.

- Create subvolumes at the top-level to prevent certain locations from being snapshot and add them to fstab or native systemd mount.
   - Dilemma: results in 'invalid cross-device link' when reflinking; mv will fallback to an oldbig copy.

Locations:

/var/log/
/var/lib/libvirt/images/
/var/lib/containers/

Scope: 
Anaconda knows how to do this already, just change the kickstart to add additional subvolumes.


Possible additional locations as part of a larger strategy for user home snapshotting/restore and backup integration:

~/.local/share/gnome-boxes/images/
~/.cache
~/.local/share/Trash/

Comment 1 Chris Murphy 2020-08-20 05:09:09 UTC
Consolidating btrfs issues for design and planning logics. This issue is now found here:

 #8 create additional subvolumes at install time 
https://pagure.io/fedora-btrfs/project/issue/8


Note You need to log in before you can comment on or make changes to this bug.