Good Ubuntu BTRFS and grub-btrfs Installation Guide

Started by kalpana, Nov 07, 2023, 03:25 AM

Previous topic - Next topic

kalpana

I've been using this excellent BTRFS, Timeshift, grub-btrfs installation Guide from Lorenzo Bettini for 6 months now with no problems.

On this machine I installed and am using Ubuntu 22.04.2 on a machine with two BTRFS 2TB NVME.

My NVME1 2TB BTRFS ssd is where I install Ubuntu (and my /home) etc

My NVME2 2TB ssd is used by my system's LXD as a BTRFS Storage Pool for my LXD Containers (example: mesh vpn Ubuntu Container 'server" nodes)
and LXD VMs (example: windows 11).

Also, a nice feature of following this Guide is its Integration instructions for TimeShift and apt/dpkg.

When install is complete, every time you do:
apt upgrade
apt install AppX
apt remove/purge AppX
etc.

TimeShift will "auto-magically" takes a BTRFS Snapshot!

The following is a recent LXD "sub-reddit" post explaining how LXD is smart enough when it creates an LXD Container versus an LXD Virtual Machine (VM) -- on BTRFS -- LXD automatically marks VM files so BTRFS COW is Turned OFF for each VM.
as that's a general recommendation for VMs on BTRFS for possibly high disk I/O (such as databases) which negatively impacts VM performance.

LXD BTRFS "Good to Know" - Question asked was regarding BTRFS COW and LXD VMs - LXD

Thanks to Tom Parrott (a Maintainer & Developer on the LXD Project) for the LXD details regarding BTRFS & COW mgmt.