[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Help masking Stale file handle errors when using df
From: |
Kaushal Modi |
Subject: |
Help masking Stale file handle errors when using df |
Date: |
Thu, 07 Sep 2017 23:07:42 +0000 |
Hello,
I use RHEL 6.6 at work. The sysadmin maintains a cron that backs up my
$HOME in $HOME/.snapshot/.
When I use the default df on RHEL 6.6 (coreutils 8.4!), I do not see any
"Stale file handle" errors.
But when I use the latest df (coreutils 8.28), I get many lines like these:
df: /home/kmodi/.snapshot/daily.2017-05-10_2000: Stale file handle
df: /home/kmodi/.snapshot/daily.2017-06-06_2000: Stale file handle
df: /home/kmodi/.snapshot/daily.2017-06-14_2000: Stale file handle
df: /home/kmodi/.snapshot/hourly.2017-06-19_1305: Stale file handle
df: /home/kmodi/.snapshot/hourly.2017-06-19_1105: Stale file handle
df: /home/kmodi/.snapshot/daily.2017-06-13_2000: Stale file handle
df: /home/kmodi/.snapshot/daily.2017-06-09_2000: Stale file handle
df: /home/kmodi/.snapshot/daily.2017-06-10_2000: Stale file handle
df: /home/kmodi/.snapshot/daily.2017-06-16_2000: Stale file handle
df: /home/kmodi/.snapshot/daily.2017-06-17_2000: Stale file handle
df: /home/kmodi/.snapshot/daily.2017-06-18_2000: Stale file handle
These directories do not exist anymore as routinely older backups are
removed from the ~/.snapshot directory.
I installed coreutils locally in my $HOME very recently starting last week.
So I never saw those Stale file handle errors earlier (which used df --
coreutils 8.4). But looks like some newer version after that started doing
this.
I use tcsh at work. I don't think you can redirect *just* std errors (to
/dev/null) on tcsh; the only redirection operator allowed is ">&" which
redirects both stderr and stdiyout. Would there be some other way to mast
these errors?
Thanks.
--
Kaushal Modi
- Help masking Stale file handle errors when using df,
Kaushal Modi <=