Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #245176

Re: Mounting NFS share from Synology NAS

From Anssi Saari <as@sci.fi>
Newsgroups linux.debian.user
Subject Re: Mounting NFS share from Synology NAS
Date 2022-02-10 15:30 +0100
Message-ID <DPiCl-ScP-5@gated-at.bofh.it> (permalink)
References <DM3q9-2pa-1@gated-at.bofh.it> <DM4cx-2Uz-1@gated-at.bofh.it> <DM4vT-31E-5@gated-at.bofh.it> <DMmsN-5BL-7@gated-at.bofh.it> <DORLP-AVG-1@gated-at.bofh.it>
Organization An impatient and LOUD arachnid

Show all headers | View raw


Andrei POPESCU <andreimpopescu@gmail.com> writes:

> Are you sure you're actually using NFSv4? (check 'mount | grep nfs').

Yes I'm sure. It's all host on path type nfs4 and in options also
vers=4.2.

Also the bog standard auto.net these days has code to mount using NFSv4.

> In my experience in order to make NFSv4 work it's necessary to configure 
> a "root" share with fsid=0 or something like that and mount
> the actual shares using a path relative to it (my NFS "server" is 
> currently down, so I can't check exactly what I did).

That's the weirdness I meant. But it's not true, these days and hasn't
been for years. Or maybe it's hidden? But I can do, for example:

# mount zippy:/tmp /mnt/foo  
# mount|grep zip
zippy:/tmp on /mnt/foo type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=10.0.2.119,local_lock=none,addr=10.0.2.126)

I don't have anything about that in fstab. This is actually a tmpfs
mount where I have fsid=something in /etc/exports but I don't know if
that's required today. zfs mounts the same way from zippy and I don't
have any fsid stuff there. Of course it could be handled automatically.

Autofs mounts a little differently, this is like the old way:

zippy:/ on /net/zippy type nfs4 (rw,nosuid,nodev,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=10.0.2.119,local_lock=none,addr=10.0.2.126)
zippy:/tmp on /net/zippy/tmp type nfs4 (rw,nosuid,nodev,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=10.0.2.119,local_lock=none,addr=10.0.2.126)

> As far as I know ZFS is using the kernel NFS server, it's just providing 
> a convenient method to share / unshare so it's not necessary to mess 
> with /etc/exports if all your shares are ZFS data sets.

Good to know.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Mounting NFS share from Synology NAS Christian Britz <cbritz@t-online.de> - 2022-02-01 16:40 +0100
  Re: Mounting NFS share from Synology NAS Henning Follmann <hfollmann@itcfollmann.com> - 2022-02-01 17:30 +0100
    Re: Mounting NFS share from Synology NAS Greg Wooledge <greg@wooledge.org> - 2022-02-01 17:50 +0100
      Re: Mounting NFS share from Synology NAS Tixy <tixy@yxit.co.uk> - 2022-02-01 21:10 +0100
      Re: Mounting NFS share from Synology NAS Anssi Saari <as@sci.fi> - 2022-02-02 13:00 +0100
        Re: Mounting NFS share from Synology NAS gene heskett <gheskett@shentel.net> - 2022-02-02 13:40 +0100
          Re: Mounting NFS share from Synology NAS Bob Weber <bobrweber@gmail.com> - 2022-02-02 23:10 +0100
            Re: Mounting NFS share from Synology NAS Christian Britz <cbritz@t-online.de> - 2022-02-03 00:40 +0100
            Re: Mounting NFS share from Synology NAS Tixy <tixy@yxit.co.uk> - 2022-02-03 09:00 +0100
              Re: Mounting NFS share from Synology NAS Christian Britz <cbritz@t-online.de> - 2022-02-03 11:10 +0100
        Re: Mounting NFS share from Synology NAS Andrei POPESCU <andreimpopescu@gmail.com> - 2022-02-09 10:50 +0100
          Re: Mounting NFS share from Synology NAS Anssi Saari <as@sci.fi> - 2022-02-10 15:30 +0100
    Re: Mounting NFS share from Synology NAS Christian Britz <cbritz@t-online.de> - 2022-02-02 02:10 +0100
      Re: Mounting NFS share from Synology NAS Christian Britz <cbritz@t-online.de> - 2022-02-02 14:40 +0100
  Re: Mounting NFS share from Synology NAS Bob Weber <bobrweber@gmail.com> - 2022-02-01 17:40 +0100
    Re: Mounting NFS share from Synology NAS Christian Britz <cbritz@t-online.de> - 2022-02-02 00:10 +0100

csiph-web