Partitions necessary in RHEL 6

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Partitions necessary in RHEL 6
# 1  
Old 02-26-2013
Partitions necessary in RHEL 6

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

Code:
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

Code:
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
# 2  
Old 02-26-2013
Hello,

You always need the / + swap + boot partitions. The difference may be between your rhel 5 and 6 is that the filesystems like /var, /tmp, /usr are on separate partitions.

If you partition with / + /boot + swap, you also have /var, /tmp, /usr but they reside in the / partition.

Don't know if I am explaining this right.
# 3  
Old 02-26-2013
RedHat

Hi,

As theboogymaster said. You always need the / + swap + boot partitions.

Having a different partition of /var , /usr, /tmp and etc. is usefull in case of re-installation and if you have LVM, so you can easily manage to use LVM options as requirement.
# 4  
Old 02-26-2013
I suppose that you set up what you think is right for you. Whilst there is nothing officially wrong in just having /, /boot & swap there may be a problem over usage, contention and what happens if something goes wild. Assuming that you will always have /boot and swap, the other filesystems in the base volume group and indeed and other volume groups are up to you.

Consider each volume group as a room in your house. You have one room for total disk space in a volume group (say the kitchen) which you could configure as one large filesystem for the whole room. On the door you hang a clipboard to list what you have, expiry dates and free space information etc. You can just load everything randomly into this one big allocation and keep a note of where it is. You then know that to access any item, you have to read through the notes on the clipboard.


Alternatively, if you separate the room into several cupboards with their own clipboards, you can set up areas for different type of objects, e.g. temporary storage for perishables or frequently created files that are clean up at the end; tinned food for long term storage that you need to know are there but rarely used (reference database perhaps); books area for reference material such as manual pages; appliances/software resources to use etc. etc.

In the second case, you know vaguely what you're after or what is the item you have to store, so you have a clipboard on each of the cupboards. To refer to anything or to update the list is now a smaller job than reading/writing the entire catalogue. If you left the tap running and filled the sink, the tap would fail and turn off.

Back on Unix, if we have log files in /var being part of one big root filesystem then they will continue to grow until the whole of the root filesystem is full and that could be a severe headache. The alternate of having /var as a separate filesystem means that whilst logging might go badly wrong, the operating system as a whole should be protected.


Has that just confused things? Smilie


Overall I would always prefer to split the disks and work out what was critical to allow the system to boot. Keep this in the root filesystem and base volume group. Have everything else in separate filesystems from separate volume groups. Again, it's up to you what you choose for names and function of each, but I would always recommend creating the following as a minimum:-
  • /var
  • /usr
  • /opt
  • /home
  • /tmp

You might consider somewhere to store software install media, be that yum CD media copies or whatever.


If you have a disaster recovery plan, then this can help you to backup and restore just what you need to get the base OS running and then have a working system to restore all you company data and applications.


I hope that this is a useful and that I haven't just confused everyone.

Robin
Liverpool/Blackburn
UK
# 5  
Old 02-26-2013
I agree with above two answers. Another main reason if for upgrade. Keep user data separate so it wont affect the upgrade.
# 6  
Old 03-05-2013
Thanks everyone for the answers. I hope, the answers would help.
# 7  
Old 03-08-2013
Do what makes sense for your usage pattern. For a desktop or workstation, I make a single / mount point and that's it. No need to segregate /opt or /var or anything else onto its own filesystem.

A server is a different matter, and it depends on what you're doing with the server and how much disk space you have to play with, and whether you're using LVM, and what sort of partition table you're using on the disks.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Is it possible to install RHEL 7 on top of RHEL 6?

Hi We have RHEL 6.7 on an HP physical server and want to install RHEL 7 (not upgrade) on top of it by means of virtualization. Is it possible to install/configure RHEV/KVM virtualization on base RHEL 6.7 OS instance and then install RHEL 7 as a VM guest on it? If yes, could you please guide me... (1 Reply)
Discussion started by: magnus29
1 Replies

2. UNIX for Dummies Questions & Answers

Windows->RHEL->RHEL X11 Forwarding?

I know this question might have been asked a lot but couldn't find anything that worked. From a windows machine 'A' I can only SSH into Linux server 'B' from where I can SSH into another Linux server 'C'. I need to be able to run GUI interfaces on server C which run on my Windows machine. I... (3 Replies)
Discussion started by: hr.prasan
3 Replies

3. Red Hat

RHEL 6, Spacewalk 2.3 unable to download RHEL 5 repo data

Hello all, I am having a bit of an issue on my Spacewalk installation. Some amplifying information is that it is Spacewalk 2.3 installed on a RHEL 6 machine and I am attempting to install/update a RHEL 5 channel/repository. I am fairly new to Spacewalk so I am still learning but this is what I... (3 Replies)
Discussion started by: jstone4646
3 Replies

4. Red Hat

Error throwing while installing vsftpd package in rhel 6. using rhel 6 dvd.

Hi all, Im studying rhcsa as of now, so yum installation and dependencies are messing me to not workit out. i have dual os, win 7 & rhel 6. i have tried this installation of vsftpd package with rhel 6 dvd in VM rhel 6 in win 7 as well as host rhel 6.still the same issue. below error... (6 Replies)
Discussion started by: redhatlbug
6 Replies

5. Red Hat

Does RHEL 5 provide a command to collect RHEL system log in single compress file?

Hi, I heard a command that can collect all RHEL 5 log in a single compress file before I forget. Does any body know...What the command is ? Thanks. (4 Replies)
Discussion started by: nnnnnnine
4 Replies

6. Red Hat

cannot ssh (use NFS) on RHEL box, but can mount external & ssh out of RHEL box

Ok, Im trying to get NFS working on my RHEL 5 box, apparently i can use the box as a client, but not as a server. If it helps i cant ssh into the box (server), but as a client ssh works fine. Ive configured server: /etc/hosts.allow: all : all all :all@all setup my /etc/exports file... (4 Replies)
Discussion started by: drs.grid
4 Replies

7. UNIX for Dummies Questions & Answers

Partitions.

Hi All, My colleague says . On some boxes we have /var/,/opt are inside root and on some they are not on root they are separately. So please any one explain me what actually the difference is. Thanks is Advance. (3 Replies)
Discussion started by: rama krishna
3 Replies

8. UNIX for Advanced & Expert Users

Partitions

Hello masters, Actually, i am user of Ubuntu, but I want to use Debian too. I have a computer with a product key for w7 so i will use too, only for games... The structure I have thought is the next with 1TiB of capacity. Primary: 50 GB NTFS for W7 Extended: Logical: 20 GB FAT32... (3 Replies)
Discussion started by: albertogarcia
3 Replies

9. Red Hat

Difference between RHEL 3 AND RHEL 4

Anybody, let me know major differences between RHEL 3 & 4 . (2 Replies)
Discussion started by: sakthi_13
2 Replies

10. UNIX for Advanced & Expert Users

partitions

HI. i installed solaris on a x86 machine and i only partition for 4 gig when it suppose to be 8. i only using 4 gig right now how can i start using the other four. please help, thanks in advance Meeh (2 Replies)
Discussion started by: souldier
2 Replies
Login or Register to Ask a Question