LXC bind mount size

May 25, 2017
6
0
6
Hello,

I've created a 300G volume (then formated and mounted) on the PVE host, and then (bind) mounted to a couple of lxc containers that need to share files between them. Directory is available on both containers, but despite the size of the volume, containers always see 100G available

I'd like to know if there is any way to let the container knows the actual size when using "mpX" mounting?

Thanks!

Best regards.

Host:
root@pve0:~# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
bloomitvideos pve Vwi-aotz-- 300.00g data 0.67
data pve twi-aotz-- 5.34t 0.26 0.54
root pve -wi-ao---- 96.00g

Container:
# df -h
Filesystem Size Used Avail Use%
/dev/mapper/pve-vm--102--disk--1 20G 3.7G 15G 20%
/dev/mapper/pve-bloomitvideos 99G 116M 94G 1%
 
can you post the container configs and your /etc/fstab ?
also lsblk ?
 
Hi Dominik, sure, here they are:

Thanks a lot,
Jorge.

/etc/pve/lxc/102.conf
arch: amd64
cores: 4
hostname: plesk
memory: 2048
mp0: /mnt/pve/bloomitvideos,mp=/var/www/vhosts/bitdigitalacademy.com/admin/videos
net0: name=eth0,bridge=vmbr700,gw=162.217.70.1,hwaddr=16:8D:39:CA:80:08,ip=162.217.70.61/24,type=veth
onboot: 1
ostype: centos
rootfs: local-lvm:vm-102-disk-1,size=20G

/etc/pve/lxc/103.conf
arch: amd64
cores: 12
hostname: wowza
memory: 8192
mp0: /mnt/pve/bloomitvideos,mp=/usr/local/bloomit/videos
net0: name=eth0,bridge=vmbr700,gw=162.217.70.1,hwaddr=4A:A0:D7:71:8C:85,ip=162.217.70.62/24,type=veth
onboot: 1
ostype: centos
rootfs: local-lvm:vm-103-disk-1,size=40G
swap: 8192

/etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/pve/root / ext4 errors=remount-ro 0 1
/dev/pve/swap none swap sw 0 0
proc /proc proc defaults 0 0
/dev/pve/bloomitvideos /mnt/pve/bloomitvideos ext4 defaults 0 0

lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 5.5T 0 disk
├─sda1 8:1 0 1007K 0 part
├─sda2 8:2 0 127M 0 part
└─sda3 8:3 0 5.5T 0 part
├─pve-root 251:0 0 96G 0 lvm /
├─pve-swap 251:1 0 8G 0 lvm [SWAP]
├─pve-data_tmeta 251:2 0 88M 0 lvm
│ └─pve-data-tpool 251:4 0 5.3T 0 lvm
│ ├─pve-data 251:5 0 5.3T 0 lvm
│ ├─pve-vm--100--disk--2 251:6 0 40G 0 lvm
│ ├─pve-vm--101--disk--1 251:7 0 10G 0 lvm
│ ├─pve-vm--102--disk--1 251:8 0 20G 0 lvm
│ ├─pve-vm--103--disk--1 251:9 0 40G 0 lvm
│ ├─pve-bloomitvideos 251:10 0 300G 0 lvm /mnt/pve/bloomitvideos
│ ├─pve-vm--1000--disk--1 251:11 0 10G 0 lvm
│ └─pve-vm--1001--disk--2 251:13 0 10G 0 lvm
└─pve-data_tdata 251:3 0 5.3T 0 lvm
└─pve-data-tpool 251:4 0 5.3T 0 lvm
├─pve-data 251:5 0 5.3T 0 lvm
├─pve-vm--100--disk--2 251:6 0 40G 0 lvm
├─pve-vm--101--disk--1 251:7 0 10G 0 lvm
├─pve-vm--102--disk--1 251:8 0 20G 0 lvm
├─pve-vm--103--disk--1 251:9 0 40G 0 lvm
├─pve-bloomitvideos 251:10 0 300G 0 lvm /mnt/pve/bloomitvideos
├─pve-vm--1000--disk--1 251:11 0 10G 0 lvm
└─pve-vm--1001--disk--2 251:13 0 10G 0 lvm
sr0 11:0 1 1024M 0 rom
 
mhmm works here like it should, can you also post
Code:
df -h
from the host?
 
Here:

df -h
Filesystem Size Used Avail Use% Mounted on
udev 10M 0 10M 0% /dev
tmpfs 29G 193M 29G 1% /run
/dev/dm-0 95G 5.3G 85G 6% /
tmpfs 71G 34M 71G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 71G 0 71G 0% /sys/fs/cgroup
/dev/fuse 30M 20K 30M 1% /etc/pve
/dev/mapper/pve-bloomitvideos 99G 116M 94G 1% /mnt/pve/bloomitvideos
 
Hi, I found the problem.
I created the volume with 100G size at first, then extended to 300G but forgot resize the filesystem.

Thanks Dominik!
 

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!