LXC Resize not showing in container

fergbrain

Member
Nov 29, 2019
5
0
21
38
I have an LXC container with several additional mount points (mp0, mp1, and mp2) that are ZFS subvolumes. I've tried to resize mp0 and mp1 to increase the storage space available to the container for those mount points, but no matter what I've tried the container doesn't see the additional space.

Details:
  • PVE 7.4-17
  • Extract of mount details from 100.conf:
    mp0: tank:subvol-100-disk-0,mp=/home,size=3T
    mp1: tank:subvol-100-disk-1,mp=/srv,size=10T
    mp2: tank:subvol-100-disk-2,mp=/archive,size=5T
  • Result of running df -h inside the container:
    Filesystem Size Used Avail Use% Mounted on
    datapool/data/subvol-100-disk-0 16G 1.9G 15G 12% /
    tank/subvol-100-disk-0 2.6T 2.5T 30G 99% /home
    tank/subvol-100-disk-1 4.9T 4.9T 30G 100% /srv
    tank/subvol-100-disk-2 4.9T 4.9T 30G 100% /a
    rchive
  • Results of zfs get commands:
    NAME PROPERTY VALUE SOURCE
    tank/subvol-100-disk-0 quota 3T local
    tank/subvol-100-disk-1 quota none local
    tank/subvol-100-disk-2 quota none default
    tank/subvol-100-disk-0 refquota 3T local
    tank/subvol-100-disk-1 refquota 10T local
    tank/subvol-100-disk-2 refquota 5T local
What I've tried:
  • I've tried using the GUI to resize.
  • I've tried using pct resize... to resize
  • I've tried restarting the container.
  • I've tried stopping the container, then starting it.
  • I've tried restarting the entire physical hardware.
  • I tried using resize2fs, but that doesn't work for zfs mounts
How can I get my container to recognize the added space?
 
Additional data:

No quota (or refquota) on tank, and there's plenty of space left:

NAME USED AVAIL REFER MOUNTPOINT
tank 16.4T 29.3G 310K /tank


As well as free space to be allocated:

NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
tank 29.1T 27.0T 2.16T - - 32% 92% 1.00x ONLINE -

tank
is the root of the pool, and there's no child datasets between tank and the datasets in question.

When I df -h on the host computer (not from the container), it reports:

Filesystem Size Used Avail Use% Mounted on
tank 30G 384K 30G 1% /tank
tank/media 30G 256K 30G 1% /export/media
tank/plex 48G 19G 30G 39% /export/plex
tank/home 30G 256K 30G 1% /tank/home
tank/minio 2.9T 2.9T 30G 100% /tank/minio
tank/subvol-101-disk-0 8.0G 256K 8.0G 1% /tank/subvol-101-disk-0
tank/docker 31G 1.6G 30G 5% /tank/docker
tank/subvol-100-disk-0 2.6T 2.5T 30G 99% /tank/subvol-100-disk-0
tank/subvol-100-disk-1 4.9T 4.9T 30G 100% /tank/subvol-100-disk-1
tank/subvol-100-disk-2 4.9T 4.9T 30G 100% /tank/subvol-100-disk-2



What's interesting is that the size of tank there is reported as 30G...which seems odd?
 

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!