Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to flush cache
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Scott  
View profile  
 More options Apr 24 2012, 10:49 pm
Newsgroups: comp.sys.sun.admin
From: Scott <spack...@gmail.com>
Date: Tue, 24 Apr 2012 19:49:10 -0700 (PDT)
Local: Tues, Apr 24 2012 10:49 pm
Subject: How to flush cache
I have two Solaris 10 hosts and a NetApp.

host1# cd /net/filer1/vol
host1# ls -l
vol2_sata ....
(On filer1, rename volume from vol2_sata to flight_data)
host1# ls -l
vol2_sata ... (still shows vol2_sata name)
How can I invalidate Solaris's view of filer1 so I can see the renamed
volume?

Meanwhile, on host2, where I did not cd /net/filer1/vol before I
renamed the volume:
host2# cd /net/filer1/vol
host2# ls -l
flight_data .... (sees new flight_data name)

I seem to remember having this problem a year or two ago, opened a
trouble ticket on it, and I thought I was told an ls -l would cause
Solaris to reread attributes from the server, refreshing its cache.
As I can see, ls -l isn't doing this for me today.
I've tried restarting nfs/client, nscd -i, and restarting autofs.

Regards, Scott


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Casper H. S. Dik  
View profile  
 More options Apr 25 2012, 3:47 am
Newsgroups: comp.sys.sun.admin
From: Casper H.S. Dik <Casper....@OrSPaMcle.COM>
Date: 25 Apr 2012 07:47:41 GMT
Local: Wed, Apr 25 2012 3:47 am
Subject: Re: How to flush cache

Scott <spack...@gmail.com> writes:
>I seem to remember having this problem a year or two ago, opened a
>trouble ticket on it, and I thought I was told an ls -l would cause
>Solaris to reread attributes from the server, refreshing its cache.
>As I can see, ls -l isn't doing this for me today.
>I've tried restarting nfs/client, nscd -i, and restarting autofs.

NFS doesn't uses names, it uses file handles; even if a file is renamed,
the file keeps the file handle and refreshing its attributes will
still work.  The directory containing the file should have changed
so I would think it should be able to find the new file.

Casper


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott  
View profile  
 More options Apr 25 2012, 12:29 pm
Newsgroups: comp.sys.sun.admin
From: Scott <spack...@gmail.com>
Date: Wed, 25 Apr 2012 09:29:49 -0700 (PDT)
Local: Wed, Apr 25 2012 12:29 pm
Subject: Re: How to flush cache
On Apr 25, 12:47 am, Casper H.S. Dik <Casper....@OrSPaMcle.COM> wrote:

> Scott <spack...@gmail.com> writes:
> >I seem to remember having this problem a year or two ago, opened a
> >trouble ticket on it, and I thought I was told an ls -l would cause
> >Solaris to reread attributes from the server, refreshing its cache.
> >As I can see, ls -l isn't doing this for me today.
> >I've tried restarting nfs/client, nscd -i, and restarting autofs.

> NFS doesn't uses names, it uses file handles; even if a file is renamed,
> the file keeps the file handle and refreshing its attributes will
> still work.  The directory containing the file should have changed
> so I would think it should be able to find the new file.

> Casper

I found some information on it - the problem is related to the
automounter maintaining the /net directory.

Symptoms
If the automounter on an NFS client has already mounted a -hosts map
(e.g. /net) for an NFS server it will not show file systems later
exported on that server. The automounter only looks at the list of
exported filesystems from a particular host via the -hosts map at
the time it is mounted and does not refresh the list.

Resolution
There are at least three different ways to resolve this:

1. Wait for the /net mount to time-out and be unmounted.

2. Use a different but equivalent name for the host:

/net/foo
/net/foo.uk
/net/FoO.uK
/net/foo.uk.sun.com
/net/129.1.2.3

Each one will be a new 'view' on the exported directories.

3. Reboot

#1, above, really doesn't work.
What I've found is if I wait overnight the problem still will not
clear itself.
That means even though the /net/filer1/vol/vol2_sata is not mounted
nor does
it even exist, it also doesn't clear itself up.
However, if I svcadm disable autofs, then:
# sleep 600; svcadm enable autofs
I get a new shot at browsing/retrieving the exports of /net/filer1/
vol.

So far, that's the quickest way to resolve the issue.

Regards, Scott


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »