Mass storage for LXC

FuriousRage

Renowned Member
Oct 17, 2014
119
4
83
Hi.
I have this zpool with 3 mirrors, giving me about 50 TB.
On this one i want to put among other stuff my media library, and make selected LXC share access to the same folder(s) (Arr, Jellyfin, NFS)
the data zpool is set for disk images and containers (cant select other stuff here).

How/where do i create some folder structure on this data zpool that i can attach to the LXC:s (and possible VM's). Uncertain what keyword i need to search for

Screenshot_20250228_125745.pngScreenshot_20250228_125725.png
 
You can work with ZFS datasets [1] very easily. e.g.


Code:
data                                         10.8T  14.5T    96K  /data
data/Downloads                               10.8T  14.5T   200K  /data/Downloads
data/VMs                                     10.8T  14.5T   192K  /data/VMs
data/VMs/vm-118-disk-0                       10.8T  14.5T  10.8T  -

You can create a dateset with:

Code:
zfs create data/Downloads

Your data-pool is empty. So in my example you can delete "data" from the storage tab and add "data/VMs" instead.

[1] https://openzfs.github.io/openzfs-docs/man/master/8/zfs.8.html
 
You can work with ZFS datasets [1] very easily. e.g.


Code:
data                                         10.8T  14.5T    96K  /data
data/Downloads                               10.8T  14.5T   200K  /data/Downloads
data/VMs                                     10.8T  14.5T   192K  /data/VMs
data/VMs/vm-118-disk-0                       10.8T  14.5T  10.8T  -

You can create a dateset with:

Code:
zfs create data/Downloads

Your data-pool is empty. So in my example you can delete "data" from the storage tab and add "data/VMs" instead.

[1] https://openzfs.github.io/openzfs-docs/man/master/8/zfs.8.html

Thank you, this helped alot. Made it much easier to share the folders between different privileged CT:s
 
  • Like
Reactions: mariol