Difference between revisions of "LXD/Storage Pools"

From Funtoo
< LXD
Jump to navigation Jump to search
(Created page with "This page lists information on the creation of LXD storage pools. A BTRFS storage pool can be created using the following command: {{console|body= # ##i##emerge btrfs-progs...")
 
Line 7: Line 7:
# ##i##lxc storage create btrfs-1tb-1 btrfs source=/dev/sda4
# ##i##lxc storage create btrfs-1tb-1 btrfs source=/dev/sda4
# ##i##lxc storage set btrfs-1tb-1 btrfs.mount_options compress=lzo
# ##i##lxc storage set btrfs-1tb-1 btrfs.mount_options compress=lzo
}}
For ZFS, compression should be enabled by default:
{{console|body=
# ##i##lxc storage create zfs-1tb-1 zfs source=/dev/sdb
}}
}}

Revision as of 21:48, December 19, 2022

This page lists information on the creation of LXD storage pools.

A BTRFS storage pool can be created using the following command:

root # emerge btrfs-progs
root # lxc storage create btrfs-1tb-1 btrfs source=/dev/sda4
root # lxc storage set btrfs-1tb-1 btrfs.mount_options compress=lzo

For ZFS, compression should be enabled by default:

root # lxc storage create zfs-1tb-1 zfs source=/dev/sdb