Use local folder as a storage

Kyar

New Member
Sep 9, 2022
29
0
1
Hello,

I have the lastest PBS on a LXC container.

I have add a mount point. Now I have for example /mnt/BACKUP directly on the PBS.

How can I choose this folder as a storage in the dashboard of PBS ?

Thanks you.
 
Code:
unable to create chunk store 'PBS' at "/mnt/BACKUP/PBS" - EPERM: Operation not permitted

I need to give permissions I think
 
Code:
root@PBS:~# touch /mnt/BACKUP/PBS/test
root@PBS:~# ls /mnt/BACKUP/PBS/
test

I can read an write on this folder, it's strange
 
Code:
unable to create chunk store 'PBS' at "/mnt/BACKUP/PBS" - EPERM: Operation not permitted

I need to give permissions I think
Did you modify /etc/export file?

show me output of df -h command please
 
Last edited:
"root" - can read an write on this folder, but your PBS-LXC need access for "backup:backup" group:user!

Code:
root@pve2:/# ls -la /mnt/bindmount/pbs/
total 2100
drwxrwxr-x     7 backup backup      94 Jul 28 04:25 .
drwxr-xr-x     6 backup backup      60 Jul 22 07:01 ..
drwxr-xr-x 65538 backup backup 1069056 Jul  2 08:51 .chunks
drwxr-xr-x    12 backup backup     126 Jul 22 11:35 ct
-rw-r--r--     1 backup backup     315 Jul 28 04:25 .gc-status
drwxr-xr-x     3 backup backup      23 Jul  2 17:04 host
-rwxr-xr-x     1 backup backup       0 Jul  2 08:51 .lock
drwxr-xr-x     4 backup backup      33 Jul  6 07:27 ns
drwxr-xr-x     8 backup backup      72 Jul  9 15:41 vm
 
Last edited:
show me output of df -h command please
Yes :


Code:
root@PBS:/mnt# df -h
Sys. de fichiers             Taille Utilisé Dispo Uti% Monté sur
rpool/data/subvol-116-disk-0   5,0G    937M  4,1G  19% /
NAS:/volume2/BACKUP/PROXMOX    7,3T    2,5T  4,9T  34% /mnt/BACKUP
none                           492K    4,0K  488K   1% /dev
udev                            32G       0   32G   0% /dev/tty
tmpfs                           32G       0   32G   0% /dev/shm
tmpfs                           13G    128K   13G   1% /run
tmpfs                          5,0M       0  5,0M   0% /run/lock
tmpfs                          6,3G       0  6,3G   0% /run/user/0

I can't change access :


Code:
root@PBS:/mnt# chmod 777 BACKUP/PBS/
chmod: modification des droits de 'BACKUP/PBS/': Opération non permise

Or :

Code:
root@PBS:/mnt# chown backup:backup BACKUP/PBS
chown: modification du propriétaire de 'BACKUP/PBS': Opération non permise
 
Any developments here?
I'm facing something similar, except my drive is mounted on host with zpool import.
I followed their guidelines here https://pve.proxmox.com/wiki/Unprivileged_LXC_containers
but still getting an error when trying to boot it.
If I don't follow the permissions I can access the bindmount through the shell but now when I edit the location under datastore.cfg
Any insights would be much appreciated.