OpenMediaVault NAS on a Pi; Setting up NFS.

Ok, so I'm gonna give old Fidonet a go for a support need I have concerning my Raspberry Pi 3+. (I am going to put a Pi 4 on it soon, as its better 10G ethernet would bump my transfer rates automagically. Furthermore, if I can get through my issues I'll slap all SSD HDs on it to try and get the best NAS experience a Pi can provide...)

My question:

I've setup a NFS file share on the OMV server. It is active and recognized... running. How do I access this NFS from other Linux boxes on my network? It doesn't JUST show up in either Network, or the other network shared areas. (Where SMBs and WORKGROUPs are...)

I assume I need some packages and prerequisites on the Linux machine that I'm trying to point to the NFS? Or... what am I missing??

Thanks in advance, Fidonet... I'm very happy to see an active Raspberry Pi area

- I have MANY Pi projects and some Arduino/ESP-32/ESP-8266 wizardry happening all around my home & offices.

|07p|15AULIE|1142|07o |08.........

Reply to
paul lee
Loading thread data ...

-=> paul lee wrote to All Thanks in advance, Fidonet... I'm very happy to see an active Raspberry pl> Pi area - I have MANY Pi projects and some Arduino/ESP-32/ESP-8266 pl> wizardry happening all around my home & offices.

I put a Pi Zero W on my wish list this year, I feel it'll be a decent beginning to a slippery slope of little black boxes.

I'd like to use it as a pi-hole to begin with.

... Go to an extreme, move back to a more comfortable place

Reply to
Kurt Weiske

TN> No. I use entries in /etc/fstab. I dont think any file managers actually TN> recognise NFS. TN> If you don't wanna hard wire mounts, make up little scripts to invoke TN> 'mount' that run as root. TN> TN> Reemeber NFS was created to make users home directories common across TN> machines along with centralised user/uid/gid services of yellow pages. TN> It is a client server implementation.

Thanks for the reply; all great info. So I was able to learn more about NFS but still have a problem.

First, on my BBS Raspberry Pi machine I added a line for the NFS in /etc/fstab and mounted the NFS, lickety split. Now on new reboots the NFS mounts automatically. Perfect.

However, on a Manjaro machine I'm having issues... First, when I mount the NDS without using fstab, it works perfectly. I can mount the share and access it like normal. I use another .sh script to umount it and that works too. However...

When I add the NFS line in fstab and try to mount the NFS, I get 'mount.nfs failed to prepare: Mount operation not permitted.'. It won't mound the dang NFS share. I'm on OMV 5 and the nfs-utils is the newest version. I did see some info on google about nfs-utils needing to be an older version, but I haven't went down that rabbit hole yet, thinking that doesn't sound right.

Any ideas??? Hmph. Again, I know I'm doing everything correctly - like syntax and all - because on my BBS Pi machine the NFS mounts thru fstab just fine.

Hmmmm.

|07p|15AULIE|1142|07o |08.........

Reply to
paul lee

No. I use entries in /etc/fstab. I dont think any file managers actually recognise NFS. If you don't wanna hard wire mounts, make up little scripts to invoke 'mount' that run as root.

NOT so trivial

Reemeber NFS was created to make users home directories common across machines along with centralised user/uid/gid services of yellow pages. It is a client server implementation.

SMB on WinPcs was developed as a peere to peer network accessible by users

Only the client nfs-common package.

--
Outside of a dog, a book is a man's best friend. Inside of a dog it's  
too dark to read. 

Groucho Marx
Reply to
The Natural Philosopher

On the client machine,

1) start the portmap and statd services 2) mount the server-exported directory as an nfs filesystem ( "mount -t nfs \ server.address:/path/to/exported/filesystem \ /path/to/local/mountpoint" )
--
Lew Pitcher 
"In Skills, We Trust"
Reply to
Lew Pitcher

On 2020-12-23, paul lee wrote: ...

^^^^^^^^^^^^

Errr.... You Wish! 1Gb ethernet

Reply to
Jim Jackson

Two issues I have come across.

One is that all actions need root permissions.

The second is that you need top pay attention to the exports file

This is a sample that works for me on my local network /etc/exports /var/www *(rw,sync,no_root_squash,no_subtree_check)

remember to ruin as root exportfs after changes.

On a wide area network where I am accessing a virtual private server via NAT, I needed to modify things a little as the router used an 'insecure' - high number port to access the server.

/var/xxx.co.uk *(rw,sync,no_root_squash,no_subtree_check,insecure)

I am not sure that either of those is your problem, however.

Another problem may be incompatible versions. You can force a given version of nfs using extra fields in fstab or mount. Check to see if nfsvers=3 works for example or nfsvers=2 or nfsvers=4. If using mount use

-o nfsvers=4 etc.

I know that my older nfs clinet here doesn't default to version 4, but my newer server does!

Finally, is there anything wrong permissions wise with where you are trying to mount?

You can check what is being exported on the server from the client using showmount --exports

This may not work on incompatible versions

That's all I can think of right now.

--
"It is an established fact to 97% confidence limits that left wing  
conspirators see right wing conspiracies everywhere"
Reply to
The Natural Philosopher

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.