Deleting sub-folders in directories (images, snippets, ..)

Jartyyy

New Member
Nov 26, 2022
2
0
1
Hey there,
it's my first time setting up Proxmox with Home Assistant (VM) and Nextcloud (LXC), both installed on nvme SSD.

Short story: I got two disks with directories. I use the directories in mount points for my Nextcloud LXC. The directories have subfolders that can't be deleted. If I delete them via shell, they instantly get created again. Is there a way to get rid of these, so the folder in Nextcloud is empty to begin with, as I only want to use the directories to store data?
1669479178470.png

Details:
I have two disks, 256gb SDD and 5tb HDD and created two directories, one for each:
/mnt/pve/HDD4tb
/mnt/pve/SSD256

I added both as mount points in the Nextcloud LXC to be able to use the disk space in Nextcloud.
pct set 102 -mp0 /mnt/pve/HDD4tb,mp=/HDD4tb
pct set 102 -mp1 /mnt/pve/SSD256,mp=/SSD256

Then I gave the Nextcloud user the rights for the folders
sudo chown -R www-data:www-data /HDD4tb
sudo chmod -R 770 /HDD4tb

In Nextcloud I can upload files and edit/delete. But I can't get rid of the shown folders.
 
Proxmox needs those subdirectories and if they are missing it will create them again. If you don't want them, you would need to remove all the content types for that storage mounted there. Remove "Vzdump Backups" as a content type and it shouldn't create a dump subdirectory and so on.
 
Last edited:
Proxmox needs those subdirectories and if they are missing it will create them again. If you don't want them, you would need to remove all the content types for that storage mounted there. Remove "Vzdump Backups" as a content type and it shouldn't create a dump subdirectory and so on.
Thanks, that's the right path!
I was able to set only one content type, so I only have one folder... Not perfect, but a lot better.
pvesm set HDD4tb --content iso

Is there a way to pass an empty argument, so no content type is assigned? Like --content null
 
Thanks, that's the right path!
I was able to set only one content type, so I only have one folder... Not perfect, but a lot better.
pvesm set HDD4tb --content iso

Is there a way to pass an empty argument, so no content type is assigned? Like --content null
If you don't need that storage at all, you could try if disabling it will also prevent folder creation. But then there is still the question...if you don't want to store any content on it, why do you have that storage at all and not just delete it?
 

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!