# Disk Allocation

**URL:** <https://forums.rockylinux.org/t/disk-allocation/7137>\
**Category:** Documentation\
**Created:** [September 3, 2022, 7:08pm UTC](https://forums.rockylinux.org/t/disk-allocation/7137 "2022-09-03T19:08:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![crazyoldguy](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@crazyoldguy](https://forums.rockylinux.org/u/crazyoldguy)\
**Post date:** [September 3, 2022, 7:08pm UTC](https://forums.rockylinux.org/t/disk-allocation/7137/1 "2022-09-03T19:08:28Z")

</div>

My new machine has a 2TB M2… I let the installer automatically install. When I look at that disk I see 3 partitions: 629mb /Boot/efi, 1.1GB /boot, 2TB LVM not mounted no name — ??? – Is this an artifact of the Gnome Disk tool and not right? Is the os using the 2TB LVM and I just can’t see it – or is it really dead space (totally unused) and how do I claim it for use? –

---

<div class="post-metadata">

**Author:** ![crazyoldguy](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@crazyoldguy](https://forums.rockylinux.org/u/crazyoldguy)\
**Post date:** [September 3, 2022, 7:19pm UTC](https://forums.rockylinux.org/t/disk-allocation/7137/2 "2022-09-03T19:19:05Z")

</div>

lsblk …  
└─nvme0n1p3  
259:3 0 1.8T 0 part  
├─rl\_2600–6c67–217f–efa0–da5e–d3ff–fed9–f017-root  
│ 253:0 0 70G 0 lvm /  
├─rl\_2600–6c67–217f–efa0–da5e–d3ff–fed9–f017-swap  
│ 253:1 0 31.4G 0 lvm [SWAP]  
└─rl\_2600–6c67–217f–efa0–da5e–d3ff–fed9–f017-home  
253:2 0 1.7T 0 lvm /home

OK, I’ve got some rather large mariadb databases – they are normally stored in /var something – Should I move them to /home/something? — I fear “AutoMagic” something going on.

---

<div class="post-metadata">

**Author:** ![gerry666uk](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gerry666uk](https://forums.rockylinux.org/u/gerry666uk)\
**Post date:** [September 3, 2022, 11:33pm UTC](https://forums.rockylinux.org/t/disk-allocation/7137/3 "2022-09-03T23:33:38Z")

</div>

This is a common problem with the default installer.  
Unless you select a meaningful size for /home it will extend to the end of the disk.  
Best option is wipe the whole thing and start again.

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [September 4, 2022, 4:55am UTC](https://forums.rockylinux.org/t/disk-allocation/7137/4 "2022-09-04T04:55:28Z")

</div>

Yes.

The installer default is to create LVM volumes (except /boot and /boot/efi) and use XFS filesystem.  
LVM is great. XFS … cannot be shrunk. Better to adjust in installer.

One could create `/home/mariadb/` and bind-mount it to `/var/lib/mysql` (or whatever) but then there are SELinux contexts to tackle.

---

<div class="post-metadata">

**Author:** ![crazyoldguy](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@crazyoldguy](https://forums.rockylinux.org/u/crazyoldguy)\
**Post date:** [September 5, 2022, 2:52pm UTC](https://forums.rockylinux.org/t/disk-allocation/7137/5 "2022-09-05T14:52:16Z")

</div>

> [@jlehtone](#):
>
> One could create `/home/mariadb/` and bind-mount it to `/var/lib/mysql`

At this stage of my life, I like gerry666uk’s solution – The problem is I can’t quite figure out how to get the half-vast automagic installer to let me completely start over … breaking a nail on it … Got a suggestion?

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [September 5, 2022, 3:03pm UTC](https://forums.rockylinux.org/t/disk-allocation/7137/6 "2022-09-05T15:03:20Z")

</div>

I helped someone through a custom partition set up a while ago: [Installing a Rocky 8.4 Virtual Box VM as a qcow2 Openstack Image - #10 by iwalker](https://forums.rockylinux.org/t/installing-a-rocky-8-4-virtual-box-vm-as-a-qcow2-openstack-image/5196/10)

That post has screenshots taking you through the GUI installer process step-by-step of setting up your partitions. Whilst this example was for a custom setup with a single partition, it’s easy enough for you to see and adapt it, creating partitions for /, /usr, /var or whatever other ones you need. You can even adapt it further using LVM instead of standard partitions - you’ll see how to do that once you get into the custom partition setup anyway.

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [September 5, 2022, 3:48pm UTC](https://forums.rockylinux.org/t/disk-allocation/7137/7 "2022-09-05T15:48:50Z")

</div>

Sections 10.3 and 10.6 in [Chapter&nbsp;10.&nbsp;Customizing your installation Red Hat Enterprise Linux 8 | Red Hat Customer Portal](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/performing_a_standard_rhel_8_installation/graphical-installation_graphical-installation)

See also [Appendix&nbsp;E.&nbsp;Partitioning reference Red Hat Enterprise Linux 8 | Red Hat Customer Portal](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/system_design_guide/partitioning-reference_system-design-guide)  
as it has recommendations, notes, and warnings about partitioning.

---

<div class="post-metadata">

**Author:** ![crazyoldguy](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@crazyoldguy](https://forums.rockylinux.org/u/crazyoldguy)\
**Post date:** [September 5, 2022, 4:41pm UTC](https://forums.rockylinux.org/t/disk-allocation/7137/8 "2022-09-05T16:41:30Z")

</div>

Thanks, that would be great … I’ve got 2 days of travel, before I can tinker with it again

---

<div class="post-metadata">

**Author:** ![gerry666uk](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gerry666uk](https://forums.rockylinux.org/u/gerry666uk)\
**Post date:** [September 5, 2022, 7:40pm UTC](https://forums.rockylinux.org/t/disk-allocation/7137/9 "2022-09-05T19:40:28Z")

</div>

There’s also this forum post (click on it to see proper formatting)

> [@Installation question](https://forums.rockylinux.org/t/installation-question/5718/10):
>
> Here’s one that I set up in a kernel virtual machine. lsblk -o NAME,MAJ:MIN,TYPE,SIZE,LABEL,FSTYPE,MOUNTPOINT NAME MAJ:MIN TYPE SIZE LABEL FSTYPE MOUNTPOINT sr0 11:0 rom 1024M vda 252:0 disk 10G ├─vda1 252:1 part 600M vfat /boot/efi ├─vda2 252:2 part 1G xfs /boot └─vda3 252:3 part 7G LVM2\_member ├─rl-root 253:0 lvm 5G xfs / └─rl-…

It shows keeping the o/s separate to /home and /data. The o/s is on it’s own disk. In this scenario, mariadb databases and websites would go in “/data”, allowing them to be backed up without all the o/s and homedir junk.

---

<div class="post-metadata">

**Author:** ![crazyoldguy](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@crazyoldguy](https://forums.rockylinux.org/u/crazyoldguy)\
**Post date:** [September 8, 2022, 6:33pm UTC](https://forums.rockylinux.org/t/disk-allocation/7137/10 "2022-09-08T18:33:00Z")

</div>

Gerry, I’m back – Thanks, I got it setup – Part of the problem is reading the UI. – (Oh, that’s not just decorative, it means something… )

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 3:40am UTC](https://forums.rockylinux.org/t/disk-allocation/7137/11 "2023-08-25T03:40:47Z")

</div>


