Partition in Red Hat


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Partition in Red Hat
# 1  
Partition in Red Hat

Hello

I am installing RED Hat linux on my machine
and want to create partition mounted on /boot , / ,/var, /var/log,/opt , /export/home and /tmp.

Do i need to force any of the mounted partition to be primary as i know if it is not created as a primary partition it is created as a logical partition
This option appears in the installation gui when installing
# 2  
I don't think it really matters these days.
This User Gave Thanks to Corona688 For This Post:
# 3  
Hello,

You need two partitions, a 512 MiB - 1 GiB /boot and the rest in an LVM physical volume. Keep all mount points in logical volumes for flexibility.

On creating two partitions, both should be primary, if that is important for you.

In case you have 2.2+ TiB disk, installer might take to GPT and there are 128 partitions (nothing primary, though).

You can have all partitions to lie in logical partitions, in case you are dual booting.

If you are still unsure, why not fire up a virtual machine and see how it goes?

Nandan
# 4  
I would suggest keeping / reasonably small and try not to use it for anything other than the core OS, splitting off /usr (biggest on install) along with /tmp, /var and create an area for home directories preferably on another disk in another volume group.

What size disk are you starting with?




Robin
# 5  
Linux can't be booted from an LVM partition, so if / is an LVM partition /boot needs to be on a separate partition.
# 6  
Linux Partition

I have installed Red hat Linux 5.11 with all the necessary patches needed but I have one questions
The partitions and disk space is not right e.g when using df –k
I get this
Code:
Filesystem                                                                          1K-Blocks                             Used                                                     Available                Use               Mounted on
/dev/mapper/VolGroup00-LogVol00                      617377040                           3332196                                                582177964                1%                          /
/dev/sda1                                                                           101086                                  17808                                                    78059                    19%                        /boot
Tmpfs                                                                                   8148028                                0                                                              8148028                0%                          /dev/shm

I want to create other partitions with disk space such as
/var 160000MB
/tmp 4000MB
/opt 40000 - 200000MB
/usr 4000 MB
Now I know I can use the fdisk command but also there is a LVM (which I have never used before )

Having looked at previous disk partition on other Red Hat Servers
There is something like this and also would like something similar

/dev/mapper/vg-sys-optvol 43 GB

dev/mapper/vg-sys-varvol 2GB

dev/mapper/vg-sys-tmpvol 2GB

dev/mapper/vg-sys-varlogvol 2GB

Please can you advise and assist on this



Moderator's Comments:
Mod Comment Please use code tags as required by forum rules!

Last edited by RudiC; 05-31-2016 at 12:37 PM.. Reason: Added code tags.
# 7  
Quote:
Originally Posted by DOkuwa
I have installed Red hat Linux 5.11 with all the necessary patches needed but I have one questions
The partitions and disk space is not right e.g when using df –k
I get this
Code:
Filesystem                                                                          1K-Blocks                             Used                                                     Available                Use               Mounted on
/dev/mapper/VolGroup00-LogVol00                      617377040                           3332196                                                582177964                1%                          /
/dev/sda1                                                                           101086                                  17808                                                    78059                    19%                        /boot
Tmpfs                                                                                   8148028                                0                                                              8148028                0%                          /dev/shm

I want to create other partitions with disk space such as
/var 160000MB
/tmp 4000MB
/opt 40000 - 200000MB
/usr 4000 MB
Now I know I can use the fdisk command but also there is a LVM (which I have never used before )

Having looked at previous disk partition on other Red Hat Servers
There is something like this and also would like something similar

/dev/mapper/vg-sys-optvol 43 GB

dev/mapper/vg-sys-varvol 2GB

dev/mapper/vg-sys-tmpvol 2GB

dev/mapper/vg-sys-varlogvol 2GB

Please can you advise and assist on this
Hi, DOkuwa

Please, do not get confused between partitions and lvm volume management. Both are independent of each other.
LVM is an abstraction layer that works with disk blocks. These disk blocks can be full disk (unpartitioned) or part of a disk (partitions)
/boot can not reside inside a LVM for your operating system, thus it must be in a partition (using fdisk or parted)
The rest of the disk can be part of an LVM.
LVM involves three layers. PV (Physical Volume), VG (Volume Group), and finally LV (Logical Volume)

Let's do an example with a 500GiB hard drive
Use fdisk to do two partitions one for /boot (500MiB) and one for the rest of the system.
Now you have two partitions dividing your disk
Code:
/dev/sda1
/dev/sda2

/dev/sda2 you use it for the LVM

First, the PV:
Code:
pvcreate /dev/sda2

This prepares the partition to be part of LVM

Second, the VG:
Code:
vgcreate  vg-sys /dev/sda2

This creates a volume named vg-sys ready to be carved with logical volumes

Third, the LV:
Code:
lvcreate -L 500M vg-sys -n swapvol
lvcreate -L 100G vg-sys -n rootvol
lvcreate -L 43G vg-sys  -n optvol
lvcreate -L 2G vg-sys -n varvol
lvcreate -L 2G vg-sys -n tmpvol
lvcreate -L 2G vg-sys -n varlogvol

These will carve six logical volumes out the volume group vg-sys, they are named with the -n flag

Last edited by Aia; 05-31-2016 at 01:24 PM.. Reason: Add root and swap volume examples
 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #35
Difficulty: Easy
The IP address 127.0.0.1 is also called 'localhost'.
True or False?

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ?

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ? (2 Replies)
Discussion started by: ahmedamer12
2 Replies

2. Red Hat

Red-hat

Hello, How do I see what IP addresses are connected to my machine? thanks (2 Replies)
Discussion started by: sonomao
2 Replies

3. Red Hat

Red Hat E 3

I'm am working with a Red Hat Enterprise 3 server. This is a dedicated server that is supposedly dedicated to one domain, but I have been tasked with trying to figure out if there are files on this system that are being accessed by other IP's. Does anyone know if how I would go about finding... (0 Replies)
Discussion started by: chrisPlusPlus
0 Replies

4. Red Hat

red hat es 4 HW config

Hi All, Is it possible to determine the RAM capacity of the Intel HW without opening it? I can only connect thru remote connection. And I need to increase the RAM later on. I have the model of the server. Can I identify how many slots are available on the RAM? Give me please the command to... (3 Replies)
Discussion started by: itik
3 Replies

5. Linux

red hat ee 2.6.9-42

hello. I would be greatfull if someone could tell me how will i see what dns server and gateway my red hat server uses. I tryied to find out by typing ifconfig command but i got : -bash: ifconfig: command not found , although man ifonconfig gives output with info about using that command. Is... (3 Replies)
Discussion started by: tonijel
3 Replies

6. UNIX for Dummies Questions & Answers

Red Hat 9 help

please help me how to install softwares in linux.i have a ethernet internet connection.i try to open the site on LAN to download internet client.but i cannot as our lan supports only internet explorer....i downloaded the linux client by booting thru XP......but i cannot c my NTFS partition thru... (0 Replies)
Discussion started by: shobhit143
0 Replies

7. Linux

Red Hat?

I have a Red Hat upgrade disk. I installed it and it corrupted my entire hard drive! I had gotten the disks out of a Dummy's book at my local library. Trying to install 'Red Hat', has cost me $100.00 in damages. (The cool part is my friend gave me that $100.00 part) Ah...A 120gig Hard Drive. Just... (3 Replies)
Discussion started by: hdk_mkr
3 Replies

8. UNIX for Dummies Questions & Answers

Colors in Red Hat

I want to turn off all colors schemes when I log onto my RedHat system. I have copied the dir_colors file to my home directory and modified that to turn colors off but it doesnt appear to be working.(sourced the file from within my .profile). Also, I do not want the colors in my vi sessions... (2 Replies)
Discussion started by: google
2 Replies

9. UNIX for Dummies Questions & Answers

Red Hat 7.2.....

I just installed red hat 7.2 on my laptop. it's dual booted with xp and red hat. when i boot in to linux it boots up to the screen to ask me my name and pass....i put in root and my password. after this it goes to a blue screen and sits there. the after about 2 minutes it comes up with a fatal... (1 Reply)
Discussion started by: muzscman
1 Replies

Featured Tech Videos