Question about storage config

.n3

Member
Mar 19, 2023
45
1
8
Hey,

I created a RAIDZ data tank and create a few datasets

Code:
zfs create data_tank/backups
zfs create data_tank/images
zfs create data_tank/vm-drives

1681484887670.png

After that I added directorys to my storage as follow

1681484993344.png
1681485250111.png

I add few images and templates, but it seems, that the storage don't use the data tank, but to 80GB hdd of the proxmox installation

1681485207901.png

Compared to the first image you can see, that the rpool is used

1681485412505.png

What did I wrong and how to fix it?
 

Attachments

  • 1681485383826.png
    1681485383826.png
    915.6 KB · Views: 5
You pointed the directory storges to "/tank/images". In case you didn`t specified a custom mountpoint, ZFS will mount it at "/data_tank/images". So you are actually pointing your directory storage to a folder on your root filesystem.

You should by the way set "is_mountpoint: yes" for your directory storages, which can only be done through CLI (for example pvesm set YourStorageID --is_mountpoint yes). This will prevent PVE from using the storage when mounting of the dataset fails, so you don't fill up your root filesystem by accident until the server crashes.
 
Last edited:
I do not understand it full. First, is there a typo because you wrote "/tank/images/. Did you mean "/data_tank/" images?

Where was my mistake? At "zfs create data_tank/backups" or when I add the diretory to the storage?

Can I specifie the mountpoint afterwards, or do I have to delete the diretory and the dataset?
 
I do not understand it full. First, is there a typo because you wrote "/tank/images/. Did you mean "/data_tank/" images?
Look at your image. You typed in "/tank/images" as your path for that storage...
1681485250111-png.49213


...instead of "/data_tank/images" what would be the correct mountpoint according to your other picture:
1681485412505-png.49215


Where was my mistake? At "zfs create data_tank/backups" or when I add the diretory to the storage?
Probably when adding the directory storage. Show us your /etc/pve/storage.cfg and we can tell you if you used a wrong path.
Can I specifie the mountpoint afterwards, or do I have to delete the diretory and the dataset?
You don't have to delete the dataset. And yes, it is possible to change the mountpoint of a dataset, but I would recreate that directory storage instead.
 
my fault... ‍♂️

here is the storage.cfg

1681493869990.png

So I can delete the directory and create a new directory with the correct path and then set
Code:
pvesm set YourStorageID --is_mountpoint yes
like
Code:
pvesm set images --is_mountpoint yes
 

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!