Adding BTRFS storage pool to LXD with an existing loop device.

In a previous post, we looked at creating a BTRFS loop device. In this tutorial, we are going to add an existing BTRFS storage pool to LXD.

# storage create new-btrfs btrfs source=/mnt/btrfs

Check the configuration

# lxc storage show new-btrfs
config:
  source: /mnt/btrfs
  volatile.initial_source: /mnt/btrfs
description: ""
name: new-btrfs
driver: btrfs
used_by: []
status: Created
locations:
- none

No size

# lxc storage set new-btrfs size=5GB

Check again

# lxc storage show new-btrfs
config:
  size: 5GB
  source: /mnt/btrfs
  volatile.initial_source: /mnt/btrfs
description: ""
name: new-btrfs
driver: btrfs
used_by: []
status: Created
locations:
- none

Similar Posts