[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
howtos:network_services:nfs-quick_and_dirty_setup [2014/01/20 23:07 (UTC)] – created ! arfon | howtos:network_services:nfs-quick_and_dirty_setup [2014/01/22 04:48 (UTC)] – Just learned about the <file> tag... had to add arfon | ||
---|---|---|---|
Line 1: | Line 1: | ||
<!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | ||
+ | ====== NFS - Quick and Dirty Setup ====== | ||
+ | |||
Known to work on Slackware 14 & 14.1 \\ | Known to work on Slackware 14 & 14.1 \\ | ||
Line 17: | Line 19: | ||
< | < | ||
add: \\ | add: \\ | ||
- | <code>/ | + | <file sh / |
Start the NFS and RPC daemons \\ | Start the NFS and RPC daemons \\ | ||
Line 23: | Line 25: | ||
chmod 755 / | chmod 755 / | ||
/ | / | ||
- | / | + | /etc/rc.d/rc.rpc start</ |
Export the shares \\ | Export the shares \\ | ||
Line 34: | Line 36: | ||
Create the mount point \\ | Create the mount point \\ | ||
< | < | ||
+ | Start the RPC daemon \\ | ||
+ | < | ||
+ | / | ||
Line 46: | Line 51: | ||
< | < | ||
add: \\ | add: \\ | ||
- | <code> | + | <file sh /etc/fstab> |
**SEMI-AUTO-MOUNT** \\ | **SEMI-AUTO-MOUNT** \\ | ||
Line 52: | Line 57: | ||
< | < | ||
add: \\ | add: \\ | ||
- | <code> | + | <file sh /etc/fstab> |
then when you want to mount, just run: \\ | then when you want to mount, just run: \\ | ||
< | < | ||
Line 72: | Line 77: | ||
**CLIENT:** \\ | **CLIENT:** \\ | ||
< | < | ||
+ | chmod 755 / | ||
+ | / | ||
echo " | echo " | ||
mount / | mount / | ||
Line 79: | Line 86: | ||
PROBLEM: NFS shares won't mount on client box with a "Stale NFS file handle" | PROBLEM: NFS shares won't mount on client box with a "Stale NFS file handle" | ||
- | SOLUTION: | + | SOLUTION: |
- | | + | 1) Forcibly unmount the directory on the CLIENT machine (if mounted): |
- | | + | < |
- | | + | 2) Flush the NFS registry on the SERVER machine: |
+ | < | ||
+ | 3) Remount the NFS share | ||