[SOLVED] lxc subvol on additional zpool

cserem

Renowned Member
Jan 15, 2017
18
12
68
Hello!

The limits I am setting on the GUI don't get reflected inside the lxc.
For example, if I create a mountpoint with 8GB of max size, inside the container it is only shown as around 100MB of space.

Code:
 pveversion
pve-manager/5.3-11/d4907f84 (running kernel: 4.15.18-11-pve)
Code:
 cat /etc/pve/storage.cfg
dir: local
        path /var/lib/vz
        content vztmpl,iso,backup

zfspool: local-zfs-ssd
        pool rpool-ssd/data
        blocksize 128k
        content images,rootdir
        sparse 1

zfspool: local-zfs-hdd
        pool rpool-hdd/data
        blocksize 128k
        content rootdir,images
        sparse 1
Code:
cat /etc/pve/lxc/101.conf
arch: amd64
cores: 4
hostname: mail
memory: 2048
mp0: local-zfs-hdd:subvol-101-disk-0,mp=/srv,size=128G
mp1: local-zfs-hdd:subvol-101-disk-1,mp=/srv2,size=8G
net0: name=eth0,bridge=vmbr0,hwaddr=fffffff,ip=dhcp,type=veth
ostype: ubuntu

rootfs: local-zfs-ssd:subvol-101-disk-0,size=8G
swap: 512
unprivileged: 1

Code:
 zfs get -r refquota rpool-hdd
NAME                                         PROPERTY  VALUE     SOURCE
rpool-hdd                                    refquota  none      default
rpool-hdd/data                               refquota  none      default
rpool-hdd/data/subvol-101-disk-1             refquota  8G        local
rpool-hdd/data/subvol-102-disk-0             refquota  128G      local
Code:
 df -h #inside LXC
Filesystem                        Size  Used Avail Use% Mounted on
rpool-ssd/data/subvol-101-disk-0  8.0G  878M  7.2G  11% /
rpool-hdd/data/subvol-101-disk-0  356M  261M   95M  74% /srv
rpool-hdd/data/subvol-101-disk-1   95M  128K   95M   1% /srv2

Interestingly, the root volume, which is on another zpool behaves good.

I do not remember exactly what parameters were used on creating the rpool-hdd, perhaps I have it created / configured it wrong?

Could you please help me solve this issue?

Thanks,
cserem
 
ohh, I have just noticed my rpool-hdd was created too small:
Code:
zpool list
NAME        SIZE  ALLOC   FREE  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH  ALTROOT
rpool-hdd   496M   273M   223M         -    47%    55%  1.00x  ONLINE  -