Thanks to Mark Olson, mark_olson@adc.com, who gives me the right answer.
"Add the vers=2 to the cachefs mount entry".
I also found on SunSolve that this is a known issue.
FAQ ID 2217:Empty "dir" when mounting huge filesystems from 2.6 NFS servers.
The solution is the same.
My original question and Mark's email are followed.
------------- Begin Forwarded Message -------------
> Hi,
>
> Does anyone know that if cachefs on Solaris 2.5.1 has
> compatible problem with Solaris 2.6 NFS server?
>
> We've upgrade a NFS server, Ultra60 with a 9GB disk, from
> Solaris 2.5.1 to Solaris 2.6
>
> After upgrade, all the other Solaris 2.5.1 client, which using
> cachefs and automount, couldn't see the data on 2.6 server.
> Acturally, the client can 'ls' the top of the shared directory
> but 'ls' the subdir. returns 'total 0'.
>
> Solaris 2.6 client can see all the data on server.
>
> I double checked by 'mount 2.6-server:/export /mnt' on 2.5.1 client
> and I can see all the data under /mnt.
> So it's definitly related to cachefs on Solaris 2.5.1
>
> ===========================================
> Jeffrey Liu jliu@aptix.com
> Aptix Corp. Information Services Manager
> 408-428-6223 (phone) 408-944-0646 (fax)
Add the vers=2 parameter to the mount entry, here is the line
from my 2.5.1 system's /etc/auto_direct file, the server nfs5900
is running Solaris 2.6
/usr/local -intr,fstype=cachefs,vers=2,backfstype=nfs,cachedir=/files/cache
nfs5900:/vol01/tools/local.sol2.sparc
HTH,
Mark
-- Mark C Olson ADC Telecommunications |telephone: +1 612 936 8008 PO Box 1101, MS 125 | FAX: +1 612 936 8333 Minneapolis MN 55440-1101 | email: mark_olson@adc.com------------- End Forwarded Message -------------
=========================================== Jeffrey Liu jliu@aptix.com Aptix Corp. Information Services Manager 408-428-6223 (phone) 408-944-0646 (fax)
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:23 CDT