1830234 Members
2464 Online
109999 Solutions
New Discussion

Re: Filesystem layout

 
SOLVED
Go to solution
Adam Noble
Super Advisor

Filesystem layout

Hi all,

I can't seem to find a document detailing the old guidelines for what type of data should go in /var /etc /usr /opt. Anybody got a link?

Cheers
12 REPLIES 12
Eric SAUBIGNAC
Honored Contributor
Solution

Re: Filesystem layout

Hi Adam,


Try this Link : The HP-UX 10.0 File System Layout --> http://docs.hp.com/en/5964-5283/ch04s05.html

Regards

Eric
Adam Noble
Super Advisor

Re: Filesystem layout

cheers
Eric Antunes
Honored Contributor

Re: Filesystem layout

Hi Adam,

Here is the link for future ITRC global search (not only forums):

http://www5.itrc.hp.com/service/james/home.do

Best Regards,

Eric
Each and every day is a good day to learn.
Matti_Kurkela
Honored Contributor

Re: Filesystem layout

This is the web page of a project that originally was Linux-related, but has collected much information about the "traditional" Unix filesystem layout:

http://www.pathname.com/fhs/

In short:

/etc is for configuration files

/usr is for things that are not essential for system boot and single user mode (= almost everything). In a diskless NFS environment, it should be possible to share a single copy of /usr directory tree to multiple client hosts, assuming that all the hosts are using the same hardware architecture. The /usr hierarchy might be mounted read-only in a diskless NFS environment, so any well-behaved user-level applications should not assume they can write to /usr.
NOTE: /usr/local is the traditional place for sysadmin's own local customizations.

/var is for "variable data" that is usually host-specific.

/opt is for "add-on software packages", although HP-UX comes with quite a lot of stuff in /opt as standard, probably for historical reasons. In HP-UX, anything installed in /opt/ should put its configuration to /etc/opt/ and any data files it generates should go in /var/opt/ respectively.

In my opinion, when the system is in normal use, there should be no significant growth of disk space use in neither /usr nor /opt. Only software updates and new installations should cause additional disk space consumption in these filesystems. Unfortunately, not all software packages are quite that well-behaved.

MK
MK
Adam Noble
Super Advisor

Re: Filesystem layout

Thanks all
Dennis Handly
Acclaimed Contributor

Re: Filesystem layout

>MK: there should be no significant growth of disk space use in neither /usr nor /opt.

Right, /opt should be readonly. With config files in /var/opt as you mentioned.

This is how we laid it out when we changed it for 10.0.
Jeeshan
Honored Contributor

Re: Filesystem layout

Dear Noble

Please find the attached docs for your info
a warrior never quits
Jeeshan
Honored Contributor

Re: Filesystem layout

Hi Adam

please find the attached docs for your info.
a warrior never quits
James R. Ferguson
Acclaimed Contributor

Re: Filesystem layout

Hi Adam:

I am surpised no one pointed you to the manpages for 'hier(5)', although that isn't intuitively obvious.

http://docs.hp.com/en/B3921-60631/hier.5.html

Regards!

...JRF...
Eric SAUBIGNAC
Honored Contributor

Re: Filesystem layout

JFR - "although that isn't intuitively obvious."

Sure : "hier" means yesterday in French !!! Thanks for the tip.

Of course Adam, 0 point for this post !

Regards

Eric
Adam Noble
Super Advisor

Re: Filesystem layout

cheers I have to keep responding seems to be the only way I can assign points without it timing out.
Geoff Wild
Honored Contributor

Re: Filesystem layout

Something you may also want to read:

http://www.pathname.com/fhs/

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.