On 02/ 7/10 05:20 PM, Mike Gerdts wrote: > On Sun, Feb 7, 2010 at 3:26 PM, Peter Tribble<peter.tribble at gmail.com> > wrote: >> On Fri, Feb 5, 2010 at 8:05 AM, sanjay nadkarni (Laptop) >> <Sanjay.Nadkarni at sun.com> wrote: >>> >>> Salutations!! >>> >>> As part of Solaris Next I am proposing the following changes to /var >>> hierarchy to avoid system amnesia across multiple Boot Environments. I >>> would appreciate your feedback on caiman-discuss at opensolaris.org. >> >> Thinking about this, it seems to me that the sense of the proposal is the >> wrong way round. >> >> Rather than cherry-picking a small handful of directories to be shared, >> wouldn't it be better to share the whole of /var by default, and then exclude >> the handful of non-shared locations? >> >> The reasons I believe this makes sense: >> >> - It automatically picks up new directories that aren't considered, >> eliminating unpleasant surprises >> >> - It should eliminate the need for the list to be user-configurable >> >> - Looking at it, the list of non-shared locations appears to be small - >> I would expect the majority of subdirectories to be shared >> >> - I expect most, if not all, of the non-shared locations to be under >> the direct control of the OS (ie. packaging), so they're the ones we >> know about and can manage > > You seem to be suggesting that there is stuff in /var that belongs in > /usr or /etc. I tend to agree but have had limited success promoting > that line of thought. >
I think there will be more success in pursuing that line as the rest of the system considers the new realities. While LU and ZFS raise many of the same issues, they're too recent to have had any significant impact and the desire is to limit modifications to S10. > A quick look through a snv130 system points to the following that IMHO > should be moved: > > /var/svc/manifest (to /etc/svc/manifest, early manifest import may be > fixing this) > /var/svc/profile (to /etc/svc/profile) EMI fixes both of the above. > /var/spool/cron/crontabs (to /etc/cron/crontabs) I think there's a case to separate system-specific usages (such as the default things we ship) going to /etc, but not so much for end-user usages. > > Additionally, name services (NIS, LDAP) tend to store config files > that are modified through tools in /var. Those should move to /etc. I'm not so convinced of this. They're more properties of the system environment, not the specific OS version, and hence seemingly should be shared. Dave