[SOLVED] Datastore problem

diaolin

Renowned Member
Jul 7, 2008
332
8
83
Trentino Italy
Hi, when i create a datastore from an unused disk ths PBS creates a partition and
mounts itself this partition at boot.
How? I find it in mtab but i don't understand who mounts this partition.

I think the pbs itself but, where could i put a "forcefsck" for auto fscking the partition before mounting?

I know there is a way to add it to fstab but i'm interested with the method user by pbs for
mounting the partition automagically.

Which information uses? UUID, /dev/sdb? and where are stored this infos?

Tx
 
I know there is a way to add it to fstab but i'm interested with the method user by pbs for
mounting the partition automagically.
depending on how you created the Datastore on disk (ZFS vs. ext4/xfs) :
* ZFS has it's own import and mount service files
* for Datastores on ext4/xfs PBS creates a systemd mount unit for the service - https://www.freedesktop.org/software/systemd/man/systemd.mount.html

check the output of `systemctl -a |grep '\.mount'`

I hope this helps!
 

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!