LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 05-09-2006, 06:21 PM   #1
tantan
LQ Newbie
 
Registered: May 2006
Location: Italy
Distribution: RedHat
Posts: 13

Rep: Reputation: 0
partitioning best practices


Hi,
I think that answer a question about the best partitioning schema would be the same as answer to a question about what love is.
So, I'm not looking for the definitive truth, but simply wether my thoughts could be convenient in a production environment or not.

I continue to hear about maintain almost /home /var /tmp /usr / on separate partitions.
Well, now my questions (regarding a generic production server running applications but not directly accessed by users) are:

- The major user activity is by the administrator; shouldn't be better maintain /root instead of /home, on a separate partition? (or both)

- many applications, or administration sw, or hw vendor add-on, use /opt. Shouldn't be a good idea (same as for /usr) to reserve a partitions for /opt too?

- same as above for /srv (that some distros or apps use instead of /var/...)

- A matter arising from needing so many partitions is to need many different hd (not the first choice for many reasons), or to use extended partitions or LVM. Which should be the better choice in a production environment? ...to use only the 4 primary parts (for swap, /, /boot, ? ) and avoid the use of extended/LVM, or to have a large number of different "partitions" with the use of extended/LVM ?

I know that the right answers depend on particular circumstances, but I hope someone might has some good tip related to the management of enterprise production environments and related concerns

Thanks in advance,
best regards
 
Old 05-10-2006, 05:22 AM   #2
imagineers7
Member
 
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310

Rep: Reputation: 30
Post

Hi tantan,


dont miss the goal behind keeping different partitioning schemas.
about /var:-
We do create /var directory on partition so that the files such as log which get continuously appended may cause a performance problem for the whole system. This may happen because those files get fragmented. Again if some how some admin working on production server goes asleep for a few days and diskspace gets filled everything should not get stopped.
Let some services stop which rely on /var partition majorly. But still you should get logon on the machine.

about /tmp:-

anybody including nobody has an access to the /tmp directory if we keep it a directory we cant enforce some partition specific rules such as noexec permission on the /tmp partition so no user can run malicious programs or his own demons from the /tmp partition.
There is a bypass to this by creating a loopback disk which will degrade the performance.

In short as I'm used to and think:-
We need such partitions sytem on WEB / MAIL /APPLICATION
servers

/
/var
/tmp
Sizes vary depending on the site

Hope this will give u the needful
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Common practices in Linux SoliTear Linux - General 5 01-09-2005 11:43 PM
Partitioning: Best Practices newtype Linux - General 2 06-05-2004 07:44 AM
Best practices for upgrading hyper guy General 5 05-28-2004 12:39 AM
Good scripting practices? test Programming 2 04-26-2004 10:55 PM
Best Practices mooreted Linux - Software 4 06-12-2003 12:31 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 07:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration