How to Merging Partitions

Hi guys I’m new to Alma Linux and server stuff I recently rent a server to migrate to the server because it have a better CPU my issue is that I have more than 2TB and this new server has 4TB but it uses 2 SSD so I’m not able to migrate my files to this new server… can you please help me with the steps and codes to merge these drives into one I already screwed up the server and had to reload the OS… :pray:t4:

First, the default setup, even with one drive, is to have three partitions.

First will have a filesystem for ESP (EFI System Partition). UEFI loads bootloader from it.
Second will have a filesystem, seen in /boot, from which the bootloader loads the Linux kernel.
Third partition will have LVM physical volume (PV ). The PV becomes part of LVM volume group (VG). It will have three LVM logical volumes (LV).
The three LVs are for two filesystems, / and /home, and for swap.


Why multiple filesystems and not just one? It allows, for example, to reinstall OS (that does not have files in /home) without touching the files in /home. Things are easier to manage when they are not all in one big heap.


Is it possible to create a filesystem that spans over two drives? Yes. However, if either drive breaks, then all data on that filesystem is lost and you need to recover from backups.


Where within the filesystem hierarchy do you have the data? In specific places? Or all in one directory?

Note how the default has (up to 70 GB) ‘/’, a tiny 1 GB ‘/boot’, some 700 MB in /boot/efi, and practically the rest of space in /home. Point in that is that you can mount additional filesystem as subdirectory (just like the ESP is mounted to /boot/efi). That allows making the filesystem(s) – space – on the second SSD visible where needed.

1 Like