Subject: Re: Cached file system /usr

From: [email-masked] (Ian Herd - Sun UK - Answer Centre)
Date: 26 Jan 1994 18:04:26 GMT

I don't know who in Sun said that /usr could not be cached.

Caching of /usr appears to work just fine, we have a script in
/etc/rc2.d S02xxxx so that it runs immediately after the 
S01MOUNTFSYS script during the boot process. 
The script basically reads vfstab, if /usr is of type nfs, and
there is a cache then 

	mount -F cachefs -O -o \
backfstype=nfs,backpath=/usr,cachedir=${cachedir},non-shared,rw,actimeo=86400 \
${special} /usr

This means that all programs started there after form /usr are cached.

Incidentally my system runs with only / /var /cache as local ufs
filesystems, everything else, including all automounts are cached.

It's a bit slow if something is not yet cached, but once it is.......
Try answerbook.

Works fine.