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

 
 

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

Submitter:  Matthijs <igadget>
Submitted:  Tue 23 Feb 2016 09:07:30 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  _71007
Open/Closed:  Closed Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 28 Feb 2016 09:07:32 AM UTC, 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

- <_71007>
Tue 23 Feb 2016 09:07:30 AM UTC, 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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-26 _71007 Open/ClosedOpen Closed
    2016-05-18 _71007 StatusIn Progress Done
    2016-02-28 _71007 StatusNone In Progress
        Assigned toNone _71007

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code