Adding New Datastore Error

droidus

Member
Apr 5, 2020
107
2
23
34
I have a remote file share mounted locally. This is the error when I attempt to add the new datastore in the gui: "EPERM: Operation not permitted". Here are the folder permissions: "drwxrwxrwx 6 root root 4096 Apr 11 18:21 qnap".
I am running Backup Server 1.0-1.
 
I am now running 1.1-5.
I tried adding that option, but upon reboot, it failed to mount the remote qnap drive. Here is what my fstab file looks like:
192.168.0.3:/pve-backup /mnt/qnap nfs rw,hard,intr,rsize=8192,wsize=8192,timeo=14 0 0
I am able to mount with that line.
 
the folder needs to be read/writable with the user 'backup'

I tried adding that option,
that option is only relevant for cifs, not nfs

if you adapt the permissions of the folders, it should work
 
I am using a qnap device. I set the backup user on the qnap to 'rw', but I get the same error message.
 
can you try on the cli and post the complete output?

Code:
proxmox-backup-manager datastore create <name> <path>
 
Proxmox Backup Server 1.1-5 on Proliant DL360 G6 memory 32 gb, updated, upgraded

I get the same error, trying to mount a Truenas Map (running ZFS) when I try to create a datastore, creating a store on the native disks at the DL360 works

Code:
proxmox-backup-manager datastore create store1 /var/zfsnas/store1
Error: EPERM: Operation not permitted

[UPDATE] changed TrueNas share to a Windows share and mounted using

Code:
//192.168.MY.TRUENAS.IP/proxmox /var/zfsnas cifs credentials=/root/.smbcredentials,auto 0 0

Now I can create a store, proxmox is the name of my Truenas windows share (not the location) and on the DL360 I created in /var a map called zfsnas, nothing on Google got the share online, "auto" finally worked, now I have to find a way to limit the max size of the share, otherwise the store seems to take all the diskspace left on the NAS
 
Last edited:
Hi, to limit the size of a share in Truenas you need to go to your shares and hit the "edit quota" button for your share
 
Hi, to limit the size of a share in Truenas you need to go to your shares and hit the "edit quota" button for your share

Looked for a button like that, is none in the Windows shares, looked quickly in Linux but couldn't find one either, do I miss something your eyes did see? Got it, that's in storage>pools. Will look into this tomorrow, thnxs! Yesterday I had the feeling there was no quota system in it.

Screenshot from 2021-05-19 16-46-58.png
 
Last edited:
note that you also have to mount the share with the correct options (uid,gid) options so that the 'backup' user on the pbs side can write/create/read the directories...
 
note that you also have to mount the share with the correct options (uid,gid) options so that the 'backup' user on the pbs side can write/create/read the directories...
reply,

on truenas:
create user, group backup
add a dataset in storage>pools
set storage>pool>options>quota for your dataset
set storage>pool>permissions to backup user and backup group for your dataset
add a windows share (open /mnt>name_of_your_nas_with_the_dataset and select the dataset)

when you now go into the shell and visit this location you will notice your map has user and group backup also "df" will show your quota are set

on proxmox backup server

when you do a "df" here, once again you get your quota confirmed
add new user (uid 1000, CHECK this 1st by "cat /etc/group") ) and add this user to group backup (34)
create mount
Code:
//192.168.1.31/proxmoxbu /var/zfsnas cifs credentials=/root/.smbcredentials,gid=34,uid=1000,auto 0 0

Now stuff works with quota. Creating a store in the GUI on a HP Z400, 6-core X5670, to the 8 core 2,5 Ghz DL360 gave a "connection timeout". This is probably a bug because it was stil running. I Aborted the GUI process and created the store in the shell.

Code:
proxmox-backup-manager datastore create store1 /var/zfsnas/store1

this will take a bit of time depending on your quota, if you want to follow this process open a 2nd shell and start "atop" (you might have to install this 1st)

in the end store1 will show up!
 
Last edited:

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!