[Borgbackup] fuse problem

Maurice Libes maurice.libes at osupytheas.fr
Mon Apr 10 05:30:45 EDT 2017


>>
>>> I generally try to stay away from running as root for user
>>> applications. In my case my repos are in directories accessible by my
>>> user name (aklaver) and the mount point I use is in my user directory.
>>> I run borg as the aklaver user.
>>>
>> yes it's a little bit confused for me..
>> my general case is to make PC backup via the LAN with a borg user...
>> like that
>> /
>> $ borg create  -v  --stats
>> borg at myserver.fr:/mnt/provigo-borg/sauve-pc::pcsargasse-2017-03-13//
>> /
>> so the archive belongs to borg.. and I can mount the archive on the PC
>> that case works fine//
>>
>> but I test another case described above which causes problem at mounting
>> time...
>>
>> I want to make a backup directly on the borg server itself (which is a
>> LXC vm)  between 2 NAS ...
>> I backup some big directories from one NAS to another NAS via borg
>
> Somewhat confused, are you backing up to the borg server(LXC vm) or to 
> the NAS?
to the NAS (wich is mounted on the borg server in "rw")
>
> Or are you saying the NAS you are backing up to is mounted on the LXC vm?
that's it, the NAS is mounted on the LXC vm

>
>>
>> so in that case, the backup is made with the "root" user... like that
>> /$ borg create --stats --compression zlib,3
>> /mnt/provigo-borg/sauve-netappdata::netappdata-2017-04-06
>> /
>> in that case the archive belong to root
>>
>> root at rancid:~# ll /mnt/provigo-borg/sauve-netappdata/total 10478
>> -rw------- 1 root borg       26 Apr  3 17:37 README
>> -rw------- 1 root borg      655 Apr  3 17:37 config
>> drwx------ 5 root borg        5 Apr  6 18:36 data
>> -rw------- 1 root borg    78759 Apr  6 20:22 hints.26349
>> -rw------- 1 root borg 10485898 Apr  6 20:22 index.26349
>>
>>
>> and the problem is just to mount the archive on this LXC borg server
>> (fuse problem)
>>
>> $ /usr/local/bin/borg mount 
>> /mnt/provigo-borg/sauve-netappdata::netapp-data-2017-04-06 
>> /mnt/borg-restore/
>>
>> fuse: mount failed: Permission denied
>
> Seems we have moved on from a FUSE problem to a permissions problem.
yes...

It has changed since  I have created the /dev/fuse device by hand (which 
needs to be recreated every start of the VM)

ll /dev/fuse

crw-rw-rw- 1 root root 10, 229 Apr  7 15:12 /dev/fuse


to my opinion it rather seems to be a "fuse" permission problem in the 
LXC context

even in the LXC forum, that's not very clear
[https://forum.proxmox.com/threads/kernel-module-fuse-for-lxc.24855/page-2]
I don't succeed to know if mounting a fuse device in a LXC VM is 
possible or not

maybe due to the LXC capabilities? I don't know

>
> Can you run other borg commands against the repo, e.g. list or info?
>
absolutely yes

root at rancid:~/BORG#  borg list myserver.fr:/mnt/provigo-borg/sauve-netappbioinfo

...

netapp-bioinfo-2017-04-07            Fri, 2017-04-07 03:00:03

netapp-bioinfo-2017-04-08            Sat, 2017-04-08 03:00:04

netapp-bioinfo-2017-04-09            Sun, 2017-04-09 03:00:09

netapp-bioinfo-2017-04-10            Mon, 2017-04-10 03:00:05

$ borg info myserver.fr:/mnt/provigo-borg/sauve-netappbioinfo::netapp-bioinfo-2017-04-10


Name: netapp-bioinfo-2017-04-10

Fingerprint: 94f2a15b3d117cd5565871e08c77366293b6aa842e3f0454712f5f375a5c624b

Hostname: rancid

Username: root

Time (start): Mon, 2017-04-10 03:00:05

Time (end):   Mon, 2017-04-10 03:02:05

Command line: /usr/local/bin/borg create -v --stats --compression zlib,3 /mnt/provigo-borg/sauve-netappbioinfo::netapp-bioinfo-2017-04-10 /mnt/netapp2-DATA/BIOINFO/ --exclude .snapshot/ --exclude *.iso --exclude *.ova --exclude /home/*/.cache

Number of files: 67434

                        Original size      Compressed size    Deduplicated size

This archive:              637.95 GB            178.26 GB              8.75 MB

All archives:                8.29 TB              2.32 TB            142.59 GB

                        Unique chunks         Total chunks

Chunk index:                  194965              3724397


>>
>>
>> I didn't find the solution yet, why the mounting is denied
>>
>> thanks
>>
>> ML
>>
>>
>>>>
>>>> I touch a particular case, sorry
>>>
>>> I don't know what you mean above?
>>>
>>>> M
>>>>
>>>>>> M
>>>>>>>>
>
>
>

-- 
M. LIBES
Service Informatique OSU Pytheas - UMS 3470 CNRS
Batiment Oceanomed
Campus de Luminy
13288 Marseille cedex 9
Tel: 04860 90529


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2935 bytes
Desc: Signature cryptographique S/MIME
URL: <http://mail.python.org/pipermail/borgbackup/attachments/20170410/2ee0c641/attachment.bin>


More information about the Borgbackup mailing list