helpdavfs2 - Support: sr #108979, how to work with davfs2 on systems...

 
 

sr #108979: how to work with davfs2 on systems with low disk space

Submitted by:  Matthijs <igadget>
Submitted on:  Tue Feb 23 09:07:30 2016  
 
Category: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: Done
Privacy: PublicAssigned to: Werner Baumann <wbaumann>
Open/Closed: OpenOperating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun Feb 28 09:07:32 2016, comment #1:

As a file system davfs2 must allow applications to do random reading and writing on an open file. There is nothing in HTTP and WebDAV that would be like a random write. You only can upload complete files with HTTP method PUT. For this reason davfs2 needs a local copy of the file to be able to behave like a file system.

What you can do?

1. Do you really need a file system? If you just want to copy some big files from your NFS file system into your davfs2 file system it is much more simple and efficient to use a file transfer tool. You should try cadaver. It has a ftp-like interface and does not need the overhead of a file system. It can copy the files directly to your WebDAV-repository without the need for a local copy. Maybe you can even run it on your NAS device.
Most graphical file managers have WebDAV-support that could be used for copying files between your NFS device and WebDAV your repository.

2. If you need a file system. You can try to use your NFS file system for caching. You can use configuration option "cache_dir" for this. Please read more with "man davfs2.conf". But I never tried to use NFS for the cache of davfs2.

Werner

Werner Baumann <wbaumann>
Project AdministratorIn charge of this item.
Tue Feb 23 09:07:30 2016, original submission:

Hi Werner,

First of all thumbs up for all your work on davfs2. I wonder if you could give me some advice on how to deal with my use case:

I have a NAS which does not 'speak' webdav itself and is attached to my VM's using NFS.

As such, my VM's have little local disk space of their own (typically, a 5,6GB root image). The rest of the required space is mounted using said NFS.

Now when I try to upload any file from the VM (located on the NAS) to an external webdav share (mounted via davfs2), it fails for any file which exceeds the available local free space of the VM (typically 3GB or less).

Is there any way I can 'fool' davfs2 to treat files mounted on NFS shares as 'local' so the caching doesn't kick in? Otherwise I will never be able to upload large files from these machines. Or is there any other solution (besides enlarging the local disk space) which I haven't thought of?

Thanks a bunch in advance!

Matthijs <igadget>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by wbaumann (Posted a comment)
  • -unavailable- added by igadget (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed May 18 18:20:21 2016wbaumannStatusIn Progress=>Done
    Sun Feb 28 09:07:32 2016wbaumannStatusNone=>In Progress
      Assigned toNone=>wbaumann

    Back to the top


    Powered by Savane 3.1-cleanup1