Skip to content

Commit

Permalink
Remove exportfs -ua; cat...; exportfs -a
Browse files Browse the repository at this point in the history
The goal was to solve issue where clients would get
```mount.nfs: Stale file handle``` error when trying to mount NFS.
I have been unable to reproduce the problem by rebooting the NFS
server and/or clients, so it appears that either no longer is a
problem or it is problem that presents rarely enough that manually
fixing it is better than using Puppet.

The commands used to fixed the issue were originally fetched from
this stackexchance post:
https://unix.stackexchange.com/a/447581
  • Loading branch information
cmd-ntrf committed Jul 28, 2023
1 parent 0f87353 commit 0930aa2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions site/profile/manifests/nfs.pp
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,6 @@
}
}
}

# exec { 'unexportfs_exportfs':
# command => 'exportfs -ua; cat /proc/fs/nfs/exports; exportfs -a',
# path => ['/usr/sbin', '/usr/bin'],
# unless => 'grep -qvP "(^#|^/export\s)" /proc/fs/nfs/exports',
# }
}

define profile::nfs::server::export_volume (
Expand Down

0 comments on commit 0930aa2

Please sign in to comment.