From c3f74ce704c69c1f8b08b9b4e351bbe7e786e889 Mon Sep 17 00:00:00 2001 From: Rusty Bird Date: Thu, 2 Oct 2025 10:21:33 +0000 Subject: [PATCH] Secondary storage: fix mounting Btrfs with compression Btrfs mount options are per whole filesystem, not per mountpoint. If a filesystem (or a subvolume inside of it) is mounted a second time, the second set of mount options such as compress= will not be applied. https://btrfs.readthedocs.io/en/latest/ch-mount-options.html --- user/advanced-topics/secondary-storage.rst | 24 ++++------------------ 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/user/advanced-topics/secondary-storage.rst b/user/advanced-topics/secondary-storage.rst index 8eaa7784..d3a1468d 100644 --- a/user/advanced-topics/secondary-storage.rst +++ b/user/advanced-topics/secondary-storage.rst @@ -66,7 +66,7 @@ Btrfs storage ^^^^^^^^^^^^^ -Theses steps assume you have already created a separate Btrfs filesystem for your second drive., that it is encrypted with LUKS and it is mounted. It is recommended to use a subvolume as it enables compression and excess storage can be use for other things. +Theses steps assume you have already created a separate Btrfs filesystem for your second drive, that it is encrypted with LUKS and it is mounted. It is recommended to use a subvolume as it enables snapshotting the VM data independently of any other files that you may want to store on the filesystem. It is possible to use an existing Btrfs storage if it is configured. In dom0, available Btrfs storage can be displayed using: @@ -177,12 +177,12 @@ First create the physical volume: $ sudo mkfs.btrfs -L