maindavfs2 - Support: sr #108850, mounting via systemd fails

 
 

sr #108850: mounting via systemd fails

Submitter:  None
Submitted:  Tue 21 Jul 2015 09:34:55 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  _71007
Originator Email:  -email is unavailable- Open/Closed:  Closed
Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 25 Jul 2015 10:24:08 AM UTC, comment #1: 

I tested on my Debian 8 system (amd64) and it is a bit confusing.

  • without mount option "_netdev": systemd tries to mount the davfs2 file system after the root file system has been remounted r/w. It calls mount with option -n and mounting fails. I'm not sure why it sets option -n, probably because /etc/mtab is a symbolic link to /proc/mounts.


  • with mount option "_netdev" set in fstab it will still first try to mount the davfs2 file system with option -n and before the network is up. So it fails again. But later it will retry after the netork is running and without option -n and mounting succeeds.


So setting mount option _netdev in fstab should help.

More info about the problem:

  • davfs2 should recognize option -n (and other generic options). But I'm not sure how it should behave.


  • davfs2 needs an entry in /etc/mtab or /var/run/mount/utab (a hardly documented new feature of mount). Without this entry the umount program will not be able to call the davfs2 umount helper. This helper is necessary to make sure that umount only returns after davfs2 has synchronized the cache or at least saved all necessary information to recover the state of the cache when mounted again.


  • davfs2 also needs write access to the cache directory. The default when mounted by systemd is /vare/cache/davfs2. So a davfs2 file system can not be mounted when /var/cache is read only.


  • davfs2 needs network connection.


Summary: a davfs2 file system must only be mounted after the root file system is mounted read/write and the network is working. If /etc/mtab is a symbolic link to /proc/mounts davfs2 will use /var/run/mount/utab, just like mount.

I will create a bug report for not recognizing the -n option, but I'm not yet sure how to treat it.

Werner

- <_71007>
Tue 21 Jul 2015 09:34:55 AM UTC, original submission:  

Hello

systemd uses "-n" mount option. This is not understood by davfs and mounting fails.

Please see this issue, where I reported before:

https://github.com/systemd/systemd/issues/507

Thanks

Anonymous

 

(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 None (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
    2015-07-25 _71007 StatusNone In Progress
        Assigned toNone _71007

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code