question about zfs and lxc mount points on the host system

ned

Renowned Member
Jan 26, 2015
113
2
83
Currently, I am using hardware raid with LVM thin volumes and LXC container which works great but I am trying to switch to ZFS.

Is it possible to hide the mount points when using ZFS? Here is what I got on my host system:

Code:
zfs list
NAME                           USED  AVAIL     REFER  MOUNTPOINT
POOL_SATA                      135G  1.62T       96K  /POOL_SATA
POOL_SATA/backup_dataset       135G  1.62T      135G  /POOL_SATA/backup_dataset
data_pool                     27.2G   335G      152K  /data_pool
data_pool/subvol-101-disk-0   4.47G  15.5G     4.47G  /data_pool/subvol-101-disk-0
data_pool/subvol-102-disk-0    538M  9.48G      538M  /data_pool/subvol-102-disk-0
data_pool/subvol-103-disk-0   3.34G  11.7G     3.34G  /data_pool/subvol-103-disk-0
data_pool/subvol-104-disk-0    534M  14.5G      534M  /data_pool/subvol-104-disk-0
data_pool/subvol-105-disk-0   8.15G  21.9G     8.15G  /data_pool/subvol-105-disk-0
data_pool/subvol-106-disk-0    535M  14.5G      535M  /data_pool/subvol-106-disk-0
data_pool/subvol-107-disk-0   8.72G  31.3G     8.72G  /data_pool/subvol-107-disk-0
data_pool/subvol-108-disk-0    860M  42.2G      860M  /data_pool/subvol-108-disk-0
rpool                         8.31G  88.1G      104K  /rpool
rpool/ROOT                    7.87G  88.1G       96K  /rpool/ROOT
rpool/ROOT/pve-1              7.87G  88.1G     7.87G  /
rpool/data                     353M  88.1G       96K  /rpool/data
rpool/data/subvol-254-disk-0   353M  7.66G      347M  /rpool/data/subvol-254-disk-0

I can list the folder structure

Code:
ls /data_pool/subvol-101-disk-0/
bin  boot  dev  etc  home  lib  lib32  lib64  libx32  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var
 
Last edited:
No, not as far as know. What do you want to achieve?

For data sets this is the default behavior. (On the other hand this is impossible for ZVols, used by VMs. At least without manual help with mounting them.)

Containers have no own kernel and no own filesystems; they use the files given to them directly from the host. Containers are "just" a better kind of chroot. They are "thin and lightweight", which is the whole point to use containers instead of VMs :)

One part of this approach is what you've observed: the host has direct access to the files of a container.

No one (except root) works directly on a node. And root can read/write/destroy literally everything, even if those data sets would be unmounted or hidden.

Best regards
 
Thank you for your reply. I have been a long term Proxmox container user since OpenVZ so I know what containers are :)

I am trying to switch from LVM thin volumes to ZFS. Right now LVM thin volumes are perfect for me but they require hardware raid and I would like to start setting up servers without hardware raid.

Lxc containers with lvm thin volumes require no mount points on the host system
 
no issues mate....I am just trying to catch up with what is the best and latest tech
 

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!