Skip to main content

Manual partitioning of Rocky Linux with RAID1 and LVM

Use this procedure to prepare a Rocky Linux system for a NethServer 8 installation with two disks in RAID1 and LVM.

This guide works for both BIOS and EFI systems.

note

On EFI systems, you must create an additional /boot/efi partition. On BIOS systems, skip steps 8 and 9.

Start the installer

  1. Boot the system from the Rocky Linux ISO and choose Install Rocky Linux.

Select Install Rocky Linux

  1. Choose the installation language and click Continue.

Select the installation language

  1. Open Installation Destination.

Open Installation Destination

  1. Select the two disks to use, choose Custom in the storage configuration section, and click Done.

Select disks and custom storage

Create the RAID1 and LVM layout

  1. In Manual Partitioning, make sure the partitioning scheme is LVM, then click the + icon.

Open manual partitioning

  1. Create the /boot mount point with size 1024 MiB, then click Add mount point.

Create the /boot mount point

  1. Select /boot, change Device Type to RAID, make sure RAID Level is RAID1, then click Update Settings.

Configure /boot as RAID1

  1. On EFI systems only, click + again, create /boot/efi with size 600 MiB, then click Add mount point.

Create the /boot/efi mount point

  1. On EFI systems only, select /boot/efi, change Device Type to RAID, make sure RAID Level is RAID1, then click Update Settings.

Configure /boot/efi as RAID1

  1. Create the swap mount point. Assign a size appropriate for the server RAM. Refer to the Red Hat swap size guidance, then click Add mount point.

Create the swap mount point

  1. Select swap, make sure Volume Type is LVM, then click Modify in the Volume Group section.

Open the swap volume group settings

  1. In Configure Volume Group, set RAID Level to RAID1, then click Save.

Set the swap volume group to RAID1

  1. Click + again, create the / mount point, and leave the size empty so the installer uses all remaining space. Then click Add mount point.

Create the root mount point

  1. Click Done.

Finish manual partitioning

  1. In Summary of Changes, click Accept Changes.

Accept the storage changes

Configure network and host name

  1. Back in Installation Summary, open Network & Host Name.

Open Network & Host Name

  1. Set the server FQDN in Host Name and click Apply. If needed, click Configure to change the network settings.

Set host name and open network settings

  1. If you want a static address, open the IPv4 Settings tab.

Open IPv4 Settings

  1. Change Method from Automatic (DHCP) to Manual, then:

    • click Add and enter the IP address, netmask in CIDR notation, and gateway
    • add the DNS server in the DNS servers field
    • click Save

Configure static IPv4 settings

  1. When network and host name configuration is complete, click Done.

Finish network configuration

Create the administrative user

  1. Open User Creation.

Open User Creation

  1. Create the privileged user that will manage the operating system:

    • choose the username
    • enable Make this user administrator
    • enter the password twice
warning

This user can escalate privileges with sudo and act as root. Protect it with a strong password.

Then click Done.

Create the administrative user

  1. Back in the main menu, continue with the installation.

Start the installation

Next step

When the Rocky Linux installation is complete, continue with the NethServer 8 setup by following Install NS8 on a supported distribution.

For more details about Rocky Linux installation, see the official Rocky Linux installation guide.

NethServer 8