The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6318

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
I have to trigger a loopback resize in addition to the steps included in the documentation on both Ubuntu (snap) and Fedora 30 (dnf). After growing the relevant storage pool's `img` file, I have to re-read the file with `losetup -c` before attempting to grow the loop backed BTRFS filesystem. I have otherwise been unsuccessful in following this documentation without `losetup -c`.
From cdb44e4edde37dedb3e110def39df9f1124ba534 Mon Sep 17 00:00:00 2001
From: Josh Whetton <whetton.j...@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>/
 ```
 
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to