Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Solaris 9: How does a second /USR on a second drive work?

Status
Not open for further replies.

Hawki

Programmer
Oct 16, 1999
63
US
I installed a second drive on a Solaris 9 Spark system. Presently the first and second drive has been mounted and has file systems on them. What I am planning to do is install Apache Server, MySQL and PHP on the system but how can I be sure the software gets on the correct drive. I have been reading and seem to have come across UNIX information about joining directories, would this be an example?
 
on the second disk mkdir apache
on the root disk
cd (my be) /usr/local
ln -s /mountpoint-of-2-dsk/apache ------------ jamisar
Einfachheit ist das Resultat der Reife. (Friedrich Schiller)
Simplicity is the fruit of maturity.
 
You can't have two points of the same name in the same directory.

You shouldn't need two /usr directories. If you want, for example, /usr/local to be on a separate disk, then create a mountpoint (directory) named "local" under /usr and mount the other filesystem there.

/usr is a vital part of the OS, and isn't something you should fill with junk. For this reason, solaris now uses /opt for "optional" packages.

My recomendation is that you usr /opt/local for all your non-Sun stuff, and create a softlink to /usr/local to maintain "BSD" style compatibility. ("cd /opt; ls -s local ../usr/local" Note... always use relative pathnames in softlinks so your links function in case of emergency and you have to rebuild your entire system under a cd /a)

I'm not sure what you mean by "joining directories".
 
Thanks for the information but, could you explain how to change fron drive to another. Example in Dos would be to go from drive to another, C: to D:. How do you chance from a 4 Gig drive to a nine Gig drive
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top