[lxc-users] Using a mounted drive to handle storage pool
Fajar A. Nugraha
list at fajar.net
Tue Nov 21 23:23:49 UTC 2017
On Wed, Nov 22, 2017 at 1:37 AM, Lai Wei-Hwa <whlai at robco.com> wrote:
> I've currently migrated LXD from canonical PPA to Snap.
>
> I have 2 RAIDS:
>
> - /dev/sda - ext4 (this is root device)
> - /dev/sdb - brtfs (where I want my pool to be with the containers and
> snapshots)
>
> How/where should I mount my btrfs device? What's the best practice in
> having the pool be in a non-root device?
>
>
You can simply use 'lxc storage create' to create a new storage pool (needs
newer lxd version, not 2.0.x):
https://github.com/lxc/lxd/blob/master/doc/storage.md#btrfs
> There are a few approaches I can see
>
> 1. mount /dev/sdb to /var/snap/lxd (or /var/lib/lxd - if you're using
> PPA) ... then: lxd init
>
>
snap complicates that. I'm not sure which directories are available for
snap. It MIGHT work if you specify the block device directly and let lxd
choose the best mount point.
> Also, I'd love it if LXD could make this a little easier and let users
> more easily define where the storage pool will be located.
>
>
That's what 'lxd storage create' does.
--
Fajar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20171122/eb297a79/attachment.html>
More information about the lxc-users
mailing list