[lxc-devel] [lxd/master] doc: Document btrfs resize

stgraber on Github lxc-bot at linuxcontainers.org
Mon Jan 21 09:29:38 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190121/7f5f80db/attachment.bin>
-------------- next part --------------
From f8d0b5732cbc1779aa62a95e0632dbe0336d66ad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Mon, 21 Jan 2019 11:28:26 +0200
Subject: [PATCH] doc: Document btrfs resize
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 doc/storage.md | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/doc/storage.md b/doc/storage.md
index 2381fe609f..b118aa5a29 100644
--- a/doc/storage.md
+++ b/doc/storage.md
@@ -257,6 +257,14 @@ lxc storage create pool1 btrfs source=/some/path
 lxc storage create pool1 btrfs source=/dev/sdX
 ```
 
+#### Growing a loop backed btrfs pool
+LXD doesn't let you directly grow a loop backed btrfs pool, but you can do so with:
+
+```bash
+sudo truncate -s +5G /var/lib/lxd/disks/<POOL>.img
+sudo btrfs filesystem resize max /var/lib/lxd/storage-pools/<POOL>/
+```
+
 ### LVM
 
  - Uses LVs for images, then LV snapshots for containers and container snapshots.
@@ -381,7 +389,6 @@ lxc storage create pool1 zfs source=/dev/sdX
 ```bash
 lxc storage create pool1 zfs source=/dev/sdX zfs.pool_name=my-tank
 ```
-
 #### Growing a loop backed ZFS pool
 LXD doesn't let you directly grow a loop backed ZFS pool, but you can do so with:
 


More information about the lxc-devel mailing list