RHEL 8 Partition

simple40

New Member
Joined
Sep 21, 2022
Messages
3
Reaction score
0
Credits
35
Good Afternoon all,

I need to create a separate partition for /var and /tmp on my fresh RHEL 8 install. When I run FDISK -l the output is as follows:

Disk /dev/sda: 120 GiB, 128849018880 bytes, 251658240 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 75084612-2288-4B31-94B2-4D077B14CAA7

Device Start End Sectors Size Type
/dev/sda1 2048 1230847 1228800 600M EFI System
/dev/sda2 1230848 3327999 2097152 1G Linux filesystem
/dev/sda3 3328000 251656191 248328192 118.4G Linux LVM


Disk /dev/mapper/rhel-root: 70 GiB, 75161927680 bytes, 146800640 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/rhel-swap: 3.9 GiB, 4173332480 bytes, 8151040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/rhel-home: 44.5 GiB, 47806676992 bytes, 93372416 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

I was looking at the parted command but have never done this before so thought I would ask the pros. Looking for cleanest way to do this keeping in mind that I can't add another drive to this system but only use the one single HDD it has.

-Thanks for your time
 


dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,472
Reaction score
1,074
Credits
9,160
What is output of ...

df -h
 
OP
S

simple40

New Member
Joined
Sep 21, 2022
Messages
3
Reaction score
0
Credits
35
What is output of ...

df -h
devtmpfs 755M 0 755M 0% /dev
tmpfs 774M 0 774M 0% /dev/shm
tmpfs 774M 8.4M 766M 2% /run
tmpfs 774M 0 774M 0% /sys/fs/cgroup
/dev/mapper/rhel-root 70G 2.8G 68G 4% /
/dev/sda2 1014M 318M 697M 32% /boot
/dev/sda1 599M 5.8M 594M 1% /boot/efi
/dev/mapper/rhel-home 45G 351M 45G 1% /home
tmpfs 155M 0 155M 0% /run/user/1000
 

dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,472
Reaction score
1,074
Credits
9,160
OK, you are using LVM, that'll make this a little easier.

Can you give output of ...

vgdisplay
 

dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,472
Reaction score
1,074
Credits
9,160
no flags... are you root?

If that doesn't work...

We can try ..

cat /etc/fstab
 

wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
7,502
Reaction score
6,350
Credits
26,511
Moving this to Distribution Specific - Redhat & Derivatives.

Wizard
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Staff online

Members online


Top