This discussion is archived
4 Replies Latest reply: Mar 5, 2013 8:21 AM by rukbat RSS

Partitions necessary in RHEL 6

975148 Newbie
Currently Being Moderated
I had a query as to what are the partitions that should be necessary in RHEL 6. My knowledge says that

1)     /
2)     /home
3)     Swap
4)     /boot

should be sufficient. But, I am seeing in my production environment which is RHEL 5 that there are partitions also for

1)     /var
2)     /tmp
3)     /usr

Are there any advantages of having separate partitions for /var, /tmp & /usr?

I hope my query is clear that are the partitions of /var, tmp & /usr necessary.

Please revert with the reply to my query.

Regards
  • 1. Re: Partitions necessary in RHEL 6
    alvaromiranda Explorer
    Currently Being Moderated
    Hello,

    The partition schema for the OS, looks to protect for 2 different scenarios

    1. What will happen when a filesystem run out of space
    2. what will happen when in a crash some files/filesystem get corrupted.

    The logic behind the fist one is to protect the OS from those users or apps

    /
    /boot
    /home
    /usr
    /var
    /tmp

    Is a good start point.

    The number 2 today is very uncommon.. still happen, but not common.

    If your application won't use space on /var or /usr, then, you can say /var and /usr will be OS level, so you could reduce the partitions

    However, several apps use /tmp or /var/tmp, so will be nice have those separate.

    /
    /boot
    /home
    /var/tmp
    /tmp

    If no users will be at the server, you way even reduce /home

    hope this helps
  • 2. Re: Partitions necessary in RHEL 6
    Dude! Guru
    Currently Being Moderated
    Partitions are useful for several reasons:

    - to separate or support different file systems for system and user data.
    - protect critical partitions from running out of disk space.
    - to work around 16/32-bit BIOS limitations.

    Partitions do not:

    - distribute the risk of data loss due to disk failures.
    - distribute the I/O workload to separate controllers or disks.

    Required for PC Linux as in absolutely necessary is only one:

    root (/).

    Required as in reasonable are 3:

    root (/)
    swap
    /boot.

    This is the default.

    If you want to get fancy and protect (root) from running out of disk space and create partitions for log files and have other users than root in your system, you can usually get along with the following additional partitions:

    /home
    /var
    /tmp

    Everything else is most likely nonsense unless you have to deal with disks that are 200 MB. It is generally a good idea to use a small amount of partitions as possible, in particular if you cannot estimate the maximum required size and usage. Considering the large sizes of disks available today the benefit of not limiting space usage by partitions is often higher than possible protection from bad processes.

    If you have a PC with a PC-BIOS you need a Master Boot Record (MBR). In which case each hard drive is limited to a maximum of 4 primary partitions, or 3 primary partitions and one extended partition with any number of logical partitions. If you have PC with EFI and GPT than you can have up to 128 primary partitions.
  • 3. Re: Partitions necessary in RHEL 6
    975148 Newbie
    Currently Being Moderated
    Thanks
  • 4. Re: Partitions necessary in RHEL 6
    rukbat Guru Moderator
    Currently Being Moderated
    Cross-posted to another forum:
    http://www.unix.com/red-hat/216630-partitions-necessary-rhel-6-a.html

    ... and you once again didn't have the courtesy to let anyone know that fact.

    You have been advised of your lack of manners before:
    Re: Copy on right click not available on FTP URL
    yet you continue to show a lack of respect toward anyone that might choose to respond to your forum posts.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points