[lxc-devel] [lxd/master] Add step to trigger re-read on loopback device in BTRFS resize

jwhett on Github lxc-bot at linuxcontainers.org
Fri Oct 18 02:13:53 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 682 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20191017/2c1a8259/attachment.bin>
-------------- next part --------------
From cdb44e4edde37dedb3e110def39df9f1124ba534 Mon Sep 17 00:00:00 2001
From: Josh Whetton <whetton.josh at gmail.com>
Date: Thu, 17 Oct 2019 22:07:01 -0400
Subject: [PATCH] Add step to trigger reread on loopback device when resizing
 BTRFS storage pool.

---
 doc/storage.md | 1 +
 1 file changed, 1 insertion(+)

diff --git a/doc/storage.md b/doc/storage.md
index 8e40dc7310..5a6782ad8a 100644
--- a/doc/storage.md
+++ b/doc/storage.md
@@ -274,6 +274,7 @@ LXD doesn't let you directly grow a loop backed btrfs pool, but you can do so wi
 
 ```bash
 sudo truncate -s +5G /var/lib/lxd/disks/<POOL>.img
+sudo losetup -c <LOOPDEV>
 sudo btrfs filesystem resize max /var/lib/lxd/storage-pools/<POOL>/
 ```
 


More information about the lxc-devel mailing list