Re: nfs shares not mounted at boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 25, 2015 at 4:45 AM, Jens Neu <jens@xxxxxxxxxx> wrote:
> On 02/23/2015 10:17 AM, Andrew R Paterson wrote:
>>
>> This poroblem occurs on other unices as well, try using the bg option in
>> your nfs fstab entry.
>
> unfortunatley option bg does not resolve it. mount -a still is the way to
> go.

Pre-systemd there was a "_netdev" option for network mounts. It should
still work.

You can also create a .mount systemd unit.

For example:

# cat /etc/systemd/system/mnt-fedora.mount
[Unit]
After=network-online.target
[Mount]
What=127.0.0.1:/srv
Where=/mnt/fedora
Type=nfs
Options=nfsvers=4

# sc status mnt-fedora.mount
● mnt-fedora.mount - /mnt/fedora
   Loaded: loaded (/etc/systemd/system/mnt-fedora.mount; static;
vendor preset: enabled)
   Active: active (mounted) since Wed 2015-02-25 05:51:12 EST; 6s ago
    Where: /mnt/fedora
     What: 127.0.0.1:/srv
  Process: 4491 ExecMount=/bin/mount 127.0.0.1:/srv /mnt/fedora -n -t
nfs -o nfsvers=4 (code=exited, status=0/SUCCESS)

Feb 25 05:51:12 yoga.lenovo systemd[1]: Mounting /mnt/fedora...
Feb 25 05:51:12 yoga.lenovo systemd[1]: Mounted /mnt/fedora.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux