NFS occassionally gives "permission" denied in the middle of a
tillman at seekingfire.com
Mon Apr 26 11:25:49 PDT 2004
I run a -STABLE (Apr 15 at the moment) NFS file server named Athena on
generic Intel hardware. It has a large number of disks, primarily SCSI
though 2 are IDE, and has a variety of Vinum mirrors from which it
I also have a cariety of clients that mount exports from that server.
They're a mix of -STABLE (on x86), -CURRENT (on x86 and saprc64), and
NetBSD (sgimips and pmax platforms).
I run a weekly cron job on all boxes to to backup to a central
NFS-exported filesystem on Athena (/exports/backups, usually mounted as
/nfs/backups). I typically use a script like this (example is from the
host Caliban, which runs -CURRENT on sparc64):
[root at caliban ~]# cat /usr/local/etc/periodic/weekly/110.backup
### Backup important directories to Athena
### (To restore do a 'gzcat file.dump.gz | restore -i -f -')
dump 0Lf - / | gzip > /nfs/backups/caliban/weekly/root.dump.gz
dump 0Lf - /var | gzip > /nfs/backups/caliban/weekly/var.dump.gz
dump 0Lf - /usr | gzip > /nfs/backups/caliban/weekly/usr.dump.gz
However, this has been failing sporadically with messages like:
DUMP: 50.71% done, finished in 1:03
DUMP: 53.06% done, finished in 1:01
DUMP: 54.72% done, finished in 1:02
gzip: stdout: Permission denied
DUMP: Broken pipe
DUMP: The ENTIRE dump is aborted.
I've confirmed that the scripts work correctly when run by hand (and
most of the time when run from cron), that I'm not running out of disk
space, and that I'm not running out of network I/O (Athena is Gigabit on
the switch, all the other machines are 100Mbit). There shouldn't be any
concurrent access (nothing else uses this filesystem, and each host gets
it's own diretory tree) so locking shouldn't be an issue.
The odd part is how it's sporadic, and when it does occur it's typically
pretty far into what had been, until that point, a successful dump.
Is this a known issue? Are there any workarounds for it? Am I doing
something blindingly-obviously-wrong? ;-)
If enlightenment is not where you are standing, where will you look?
- Zen saying
More information about the freebsd-questions