lxc and zfs

Cyber-web.be

Active Member
Jul 24, 2018
4
0
41
48
When i create a lxc container, i cannot select a zfs storage. I'm trying to create a new storage, reboot the machine but anything work. I'm working on proxmox 5.2-5.

It's possible to create a lxc container on a zfs storage and do a replication with another node ?

Thanks for your help, I'm a newbie.
 
Hi,
It's possible to create a lxc container on a zfs storage and do a replication with another node ?
Yes, it is possible to use LXC on ZFS.

If you like the replica feature than ensure you create a storage from type "ZFS" also you have to set content-type "Container".
This config applies instantly.
 
Thanks for your answer. Please find the config, I think that it's ok but it's don't work
zfspool: mydata
pool rpool/ROOT
content images,rootdir
sparse 1

zfspool: mydata2
pool rpool
content rootdir,images
sparse 1
 
You can use all zfs subset but not this two once ;-)

use instead of the rpool/DATA
if this is not available you have to create it.
see man zfs section create
 
I've a rpool/data
zfspool: mydata4
pool rpool/data
content rootdir,images
sparse 1


work for VM but not for LXC
 
rpool 15,3G 3,50T 96K /rpool
rpool/ROOT 11,0G 3,50T 96K /rpool/ROOT
rpool/ROOT/pve-1 11,0G 3,50T 11,0G /
rpool/data 96K 3,50T 96K /rpool/data
rpool/swap 4,25G 3,50T 64K
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!