FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 07-21-2010, 11:35 AM
Tom H
 
Default nfs filesystems can not be mounted automatically after reboot

On Wed, Jul 21, 2010 at 5:49 AM, Marius Gedminas <marius@pov.lt> wrote:
> On Wed, Jul 21, 2010 at 04:49:39AM -0400, Tom H wrote:
>> On Wed, Jul 21, 2010 at 1:09 AM, Peng Yu <pengyu.ut@gmail.com> wrote:
>>>
>>> I have the following fstab. The nfs filesystem can not be
>>> automatically mounted after reboot. I have to run 'mount -a' to mount
>>> them. Does anybody know how to enable automatic mount?
>>
>> Add "_netdev" to your nfs mounts in fstab.
>
> Best answer in this thread, thank you! *I had no idea about the _netdev fstab
> option. *The fstab(5) or mountall(8) manual pages don't mention it.
> Google finds a mention in https://help.ubuntu.com/community/SettingUpNFSHowTo

You're welcome.

It must be in "man mount" ("man 8 mount"?).

You could also use the "bg" option. If you do use "bg", you might want
to change the "retry=" value because the default is very long.

It is too bad that whoever ported NFS from Solaris (where it was
invented) didn't adopt the Solaris model of having an nfs client
service.


> Any ideas about which Ubuntu versions support/require this?

All Linux distributions and versions AFAIK.


Someone suggested using autofs rather than fstab, which seems like
overkill if you have just one nfs server, but that server would be
mounted on-demand, rather than at boot when the network might not yet
be available.

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-21-2010, 11:51 AM
Jordon Bedwell
 
Default nfs filesystems can not be mounted automatically after reboot

On 7/21/10 6:35 AM, Tom H wrote:
> It is too bad that whoever ported NFS from Solaris (where it was
> invented)

Hate to break it to you bro, but NFS was developed by Sun independent of
Solaris and Solaris is an operating system, not a place, also, it was an
even mooter point to even bring it up because it's not going to make
things work better.

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-21-2010, 11:54 AM
Tom H
 
Default nfs filesystems can not be mounted automatically after reboot

On Wed, Jul 21, 2010 at 7:51 AM, Jordon Bedwell <jordon@envygeeks.com> wrote:
> On 7/21/10 6:35 AM, Tom H wrote:
>> It is too bad that whoever ported NFS from Solaris (where it was
>> invented)
>
> Hate to break it to you bro, but NFS was developed by Sun independent of
> Solaris and Solaris is an operating system, not a place, also, it was an
> even mooter point to even bring it up because it's not going to make
> things work better.

Ridiculous semantics.

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-21-2010, 03:23 PM
Preston Hagar
 
Default nfs filesystems can not be mounted automatically after reboot

On Wed, Jul 21, 2010 at 12:09 AM, Peng Yu <pengyu.ut@gmail.com> wrote:
> Hi,
>
> I have the following fstab. The nfs filesystem can not be
> automatically mounted after reboot. I have to run 'mount -a' to mount
> them. Does anybody know how to enable automatic mount?
>
> $ cat /etc/fstab
> # /etc/fstab: static file system information.
> #
> # Use 'blkid -o value -s UUID' to print the universally unique identifier
> # for a device; this may be used with UUID= as a more robust way to name
> # devices that works even if disks are added and removed. See fstab(5).
> #
> # <file system> <mount point> * <type> *<options> * * * <dump> *<pass>
> proc * * * * * */proc * * * * * proc * *nodev,noexec,nosuid 0 * * * 0
> # / was on /dev/sda1 during installation
> UUID=11bf0413-4054-492e-b5f3-b1b074fc4ea4 / * * * * * * * ext4
> errors=remount-ro 0 * * * 1
> # swap was on /dev/sda5 during installation
> UUID=685e3202-fe16-424f-bf7f-8d562ed29e16 none * * * * * *swap * *sw
> * * * * * 0 * * * 0
>
> xxx.xxx.xxx.xxx:/home * */home * nfs * * rw * * *0 * * * 0
> xxx.xxx.xxx.xxx:/data * /data * nfs * * rw * * *0 * * * 0
> #pearson nfs
> yyy.yyy.yyy.yyy:/pearson/data * */pearson/data * nfs * * rw * * *0
>
>
> --
> Regards,
> Peng
>


You might try adding auto to the options in your fstab line:

yyy.yyy.yyy.yyy:/pearson/data /pearson/data nfs rw,auto 0

Also, as a side note, you might want to try using nfs4 if your nfs
server supports it. It is generally faster and more reliable (there
are other good things about it like better locking as well)

Here is my fstab entry (bob is my servername):

bob:/var/data/samba /var/data/nfs/bob nfs4 rw,auto 0 0



Preston

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-22-2010, 01:03 AM
Peng Yu
 
Default nfs filesystems can not be mounted automatically after reboot

On Wed, Jul 21, 2010 at 10:23 AM, Preston Hagar <prestonh@gmail.com> wrote:
> On Wed, Jul 21, 2010 at 12:09 AM, Peng Yu <pengyu.ut@gmail.com> wrote:
>> Hi,
>>
>> I have the following fstab. The nfs filesystem can not be
>> automatically mounted after reboot. I have to run 'mount -a' to mount
>> them. Does anybody know how to enable automatic mount?
>>
>> $ cat /etc/fstab
>> # /etc/fstab: static file system information.
>> #
>> # Use 'blkid -o value -s UUID' to print the universally unique identifier
>> # for a device; this may be used with UUID= as a more robust way to name
>> # devices that works even if disks are added and removed. See fstab(5).
>> #
>> # <file system> <mount point> * <type> *<options> * * * <dump> *<pass>
>> proc * * * * * */proc * * * * * proc * *nodev,noexec,nosuid 0 * * * 0
>> # / was on /dev/sda1 during installation
>> UUID=11bf0413-4054-492e-b5f3-b1b074fc4ea4 / * * * * * * * ext4
>> errors=remount-ro 0 * * * 1
>> # swap was on /dev/sda5 during installation
>> UUID=685e3202-fe16-424f-bf7f-8d562ed29e16 none * * * * * *swap * *sw
>> * * * * * 0 * * * 0
>>
>> xxx.xxx.xxx.xxx:/home * */home * nfs * * rw * * *0 * * * 0
>> xxx.xxx.xxx.xxx:/data * /data * nfs * * rw * * *0 * * * 0
>> #pearson nfs
>> yyy.yyy.yyy.yyy:/pearson/data * */pearson/data * nfs * * rw * * *0
>>
>>
>> --
>> Regards,
>> Peng
>>
>
>
> You might try adding auto to the options in your fstab line:
>
> *yyy.yyy.yyy.yyy:/pearson/data * */pearson/data * nfs * * rw,auto * * *0
>
> Also, as a side note, you might want to try using nfs4 if your nfs
> server supports it. *It is generally faster and more reliable (there
> are other good things about it like better locking as well)
>
> Here is my fstab entry (bob is my servername):
>
> bob:/var/data/samba */var/data/nfs/bob * * * * nfs4 * *rw,auto *0 0

I'm not sure if the server support nfs4 or not. Do you know how to check it?

--
Regards,
Peng

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-22-2010, 09:50 PM
Tom H
 
Default nfs filesystems can not be mounted automatically after reboot

On Wed, Jul 21, 2010 at 9:03 PM, Peng Yu <pengyu.ut@gmail.com> wrote:
> On Wed, Jul 21, 2010 at 10:23 AM, Preston Hagar <prestonh@gmail.com> wrote:
>> On Wed, Jul 21, 2010 at 12:09 AM, Peng Yu <pengyu.ut@gmail.com> wrote:
>>> Hi,
>>>
>>> I have the following fstab. The nfs filesystem can not be
>>> automatically mounted after reboot. I have to run 'mount -a' to mount
>>> them. Does anybody know how to enable automatic mount?
>>>
>>> $ cat /etc/fstab
>>> # /etc/fstab: static file system information.
>>> #
>>> # Use 'blkid -o value -s UUID' to print the universally unique identifier
>>> # for a device; this may be used with UUID= as a more robust way to name
>>> # devices that works even if disks are added and removed. See fstab(5).
>>> #
>>> # <file system> <mount point> * <type> *<options> * * * <dump> *<pass>
>>> proc * * * * * */proc * * * * * proc * *nodev,noexec,nosuid 0 * * * 0
>>> # / was on /dev/sda1 during installation
>>> UUID=11bf0413-4054-492e-b5f3-b1b074fc4ea4 / * * * * * * * ext4
>>> errors=remount-ro 0 * * * 1
>>> # swap was on /dev/sda5 during installation
>>> UUID=685e3202-fe16-424f-bf7f-8d562ed29e16 none * * * * * *swap * *sw
>>> * * * * * 0 * * * 0
>>>
>>> xxx.xxx.xxx.xxx:/home * */home * nfs * * rw * * *0 * * * 0
>>> xxx.xxx.xxx.xxx:/data * /data * nfs * * rw * * *0 * * * 0
>>> #pearson nfs
>>> yyy.yyy.yyy.yyy:/pearson/data * */pearson/data * nfs * * rw * * *0
>>>
>>>
>>> --
>>> Regards,
>>> Peng
>>>
>>
>>
>> You might try adding auto to the options in your fstab line:
>>
>> *yyy.yyy.yyy.yyy:/pearson/data * */pearson/data * nfs * * rw,auto * * *0
>>
>> Also, as a side note, you might want to try using nfs4 if your nfs
>> server supports it. *It is generally faster and more reliable (there
>> are other good things about it like better locking as well)
>>
>> Here is my fstab entry (bob is my servername):
>>
>> bob:/var/data/samba */var/data/nfs/bob * * * * nfs4 * *rw,auto *0 0
>
> I'm not sure if the server support nfs4 or not. Do you know how to check it?

You must have it but you can check with
grep -i nfs_v4 /boot/config-...

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 01:18 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org