What do you get if you run the below commands? OpenBSD defaults to using UDP for NFS. Linux I believe defaults to using TCP. I would have expected a more explicit Portmap error though if it was that.
showmount -e hostname rpcinfo -t hostname mountd rpcinfo -u hostname mountd rpcinfo -t hostname nfs rpcinfo -u hostname nfs Jazzi Hong <jazzihon...@gmail.com> writes: > You made the point, thank you Maksim. > > I checked /mnt/hdd and nothing there. > >> # cat /etc/fstab > 1593ab2ee369c420.b none swap sw > 1593ab2ee369c420.a / ffs rw 1 1 > 1593ab2ee369c420.e /var ffs rw,nodev,nosuid 1 2 > 2b6c2b5b929f9a55.i /mnt/hdd ffs rw,noexec,nosuid,nodev 0 0 > >> # doas sysctl hw.disknames > hw.disknames=sd0:2b6c2b5b929f9a55,sd1:1593ab2ee369c420 > >> # doas fdisk sd0 > > Disk: sd0 geometry: 121601/255/63 [1953525168 Sectors] > Offset: 0 Signature: 0xAA55 > > Starting Ending LBA Info: > > #: id C H S - C H S [ start: size ] > > ------------------------------------------------------------------------------- > > 0: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused > > 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused > > 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused > > *3: A6 0 1 2 - 121601 80 63 [ 64: 1953525104 ] OpenBSD > > > ============ > So /dev/sd0 is my NFS share hard disk, and when I tried to mount it manually: > >> # doas mount /mnt/hdd > mount_ffs: 2b6c2b5b929f9a55.i on /mnt/hdd: Invalid argument > > +++++++++++ > The error message mentioned about "Invalid argument" of mount, anything wrong? > > So the problem now is why can not mount the drive even it's detected? > > Thank you, > jazzi > > On Wed, May 31, 2023 at 2:38 PM Maksim Rodin <a23s4a2...@yandex.ru> wrote: >> >> The /mnt/hdd partition on your NFS server might just be not mounted >> which does not prevent nfs service from successfully serving an empty >> directory. >> Or one of your two nfs clients might have deleted all your files and you >> did not notice this. >> >> On Wed May 31 09:27:04 2023, Maksim Rodin wrote: >> > Hello, >> > Silly question but... >> > Are you sure that your NFS server still has any files on /mnt/hdd? >> > >> > On Wed May 31 09:07:15 2023, Jazzi Hong wrote: >> > > Hello, >> > > >> > > I have OpenBSD 7.2 installed and NFS service running on Cubieboard2, >> > > one Linux client and one MacOS client, everything works fine for the >> > > last 6 months. >> > > >> > > Yesterday as usual I mounted NFS share and showed mounting >> > > successfully even command `df -h` got it, but `ls /Users/jazzi/nfs` >> > > showed nothing. Tried on both Linux and MacOS. >> > > >> > > OpenBSD is 24*7 running and I didn't do anything to change the system, >> > > maybe it's too hot so I shut it down for the whole night and power on >> > > the next day but it didn't work. >> > > >> > > +++++++++++++++++++++++++++ >> > > Here is how I mount it on MacOS: >> > > >> > > > sudo mount -t nfs -o >> > > > resvport,async,nolocks,locallocks,soft,wsize=32768,rsize=32768 >> > > > 192.168.31.231:/mnt/hdd /Users/jazzi/nfs >> > > >> > > +++++++++++++++++++++++++++++++++++ >> > > Here is the settings on OpenBSD NFS server: >> > > >> > > # $ cat /etc/exports >> > > >> > > # For Macbook Air >> > > /mnt/hdd -alldirs -mapall=root 192.168.31.76 >> > > >> > > # For Linux desktop >> > > /mnt/hdd -alldirs -mapall=root 192.168.31.77 >> > > >> > > ############ >> > > >> > > Any help will be appreciated, thank you. >> > > >> > > >> > > >> > > -- >> > > jazzi >> > > >> > > Best Regard, >> > > >> > >> > -- >> > С уважением, >> > Родин Максим >> >> -- >> С уважением, >> Родин Максим > > > > -- > jazzi > > Best Regard,