subvol umount and removed but keeps coming back after container restart

N0_Klu3

Member
Mar 8, 2020
16
1
23
39
Hi all,

I setup a LXC with a subvolume but have since change to doing a bind mount.
While the mount works perfectly and I have it all working right, I removed the subvol configs but for some reason when I restart the LXC it keeps re-creating this empty folder.

Is there a setting within the LXC that keeps making it recreate this at boot?

root@pve-namek:/vault# ls
media subvol-201-disk-0

201.config
mp0: /ssd,mp=/mnt/ssd,mountoptions=noatime
mp1: /vault,mp=/mnt/vault
rootfs: nvme:subvol-201-disk-0,mountoptions=noatime,replicate=0,size=64G

nvme is fine as thats the boot and so on, which I want there.
Its just the folder being created on /vault I no longer want.

Looking now, I can see it creating on /ssd as well...
 
What is the output of zfs list and maybe mount | grep vault?
 
What is the output of zfs list and maybe mount | grep vault?
Code:
NAME                      USED  AVAIL  REFER  MOUNTPOINT
nvme                      144G   755G   128K  /nvme
nvme/subvol-100-disk-0    414M  1.60G   414M  /nvme/subvol-100-disk-0
nvme/subvol-201-disk-0   3.72G  60.3G  3.72G  /nvme/subvol-201-disk-0
nvme/subvol-202-disk-0   5.11G  58.9G  5.11G  /nvme/subvol-202-disk-0
nvme/subvol-203-disk-0   11.1G  52.9G  11.1G  /nvme/subvol-203-disk-0
nvme/subvol-301-disk-0    960M  31.1G   960M  /nvme/subvol-301-disk-0
nvme/subvol-302-disk-0   4.78G  59.2G  4.78G  /nvme/subvol-302-disk-0
nvme/vm-2001-disk-0      3.11M   755G   116K  -
nvme/vm-2001-disk-1       118G   849G  18.2G  -
nvme/vm-2001-disk-2      6.06M   755G    64K  -
rpool                    12.4G   433G   104K  /rpool
rpool/ROOT               3.32G   433G    96K  /rpool/ROOT
rpool/ROOT/pve-1         3.32G   433G  3.32G  /
rpool/data                 96K   433G    96K  /rpool/data
rpool/var-lib-vz         9.05G   433G  9.05G  /var/lib/vz
ssd                       314G  1.37T   313G  /ssd
ssd/subvol-201-disk-0      96K  1024G    96K  /ssd/subvol-201-disk-0
vault                    21.9T  73.5T  21.9T  /vault
vault/subvol-201-disk-0   236K  73.5T   236K  /vault/subvol-201-disk-0

Code:
root@pve-namek:~# mount | grep vault
vault on /vault type zfs (rw,relatime,xattr,noacl,casesensitive)
vault/subvol-201-disk-0 on /vault/subvol-201-disk-0 type zfs (rw,relatime,xattr,posixacl,casesensitive)
 

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!