Chapter 19. Managing RAID in the web console

Redundant Arrays of Independent Disks (RAID) represents a way how to arrange more disks into one storage for performance and redundancy goals.

RAID uses the following data distribution strategies:

  • Mirroring — data are copied to two different locations. If one disk fails, you have a copy and your data is not lost.
  • Striping — data are evenly distributed among disks.

Level of protection depends on the RAID level.

The RHEL web console supports the following RAID levels:

  • RAID 0 (Stripe)
  • RAID 1 (Mirror)
  • RAID 4 (Dedicated parity)
  • RAID 5 (Distributed parity)
  • RAID 6 (Double Distributed Parity)
  • RAID 10 (Stripe of Mirrors)

Before you can use disks in RAID, you must:

  • Create a RAID.
  • Format it with file system.
  • Mount the RAID to the system.

Prerequisites

  • The RHEL 9 web console is installed and accessible. For details, see Installing the web console.
  • The cockpit-storaged package is installed on your system.

19.1. Creating RAID in the web console

Configure RAID in the RHEL 9 web console.

Prerequisites

  • Physical disks connected to the system. Each RAID level requires different amount of disks.

Procedure

  1. Open the RHEL 9 web console.
  2. Click Storage.
  3. In the Storage table, click the menu button.
  4. From the drop-down menu, select Create MDRAID device.

    Image displaying the available options in the Storage table drop-down menu. Selecting the MDRAID device option.

  5. In the Create RAID Device dialog box, enter a name for the new RAID.
  6. In the RAID Level drop-down list, select a level of RAID you want to use.
  7. From the Chunk Size drop-down list, select the size from the list of available options.

    The Chunk Size value specifies how large each block is for data writing. For example, if the chunk size is 512 KiB, the system writes the first 512 KiB to the first disk, the second 512 KiB is written to the second disk, and the third chunk is written to the third disk. If you have three disks in your RAID, the fourth 512 KiB is written to the first disk again.

  8. Select the disks you want to use for RAID.
  9. Click Create.

Verification steps

19.2. Formatting RAID in the web console

You can format and mount software RAID devices in the RHEL 9 web console.

Prerequisites

  • Physical disks are connected and visible by RHEL 9.
  • RAID is created.
  • Consider the file system to be used for the RAID.
  • Consider creating a partitioning table.

Procedure

  1. Open the RHEL 9 web console.
  2. Click Storage.
  3. In the Storage table, click the menu button, , next to the RAID device you want to format.
  4. From the drop-down menu, select Format.
  5. In the Format dialog box, enter a name.
  6. In the Mount Point field, add the mount path.
  7. From the Type drop-down list, select the type of file system.
  8. Select the Overwrite existing data with zeros checkbox if you want the RHEL web console to rewrite the whole disk with zeros. This option is slower because the program has to go through the whole disk, but it is more secure. Use this option if the disk includes any data and you need to overwrite it.

    If you do not select the Overwrite existing data with zeros checkbox, the RHEL web console rewrites only the disk header. This increases the speed of formatting.

  9. If you want to encrypt the volume, select the type of encryption from the Encryption drop-down menu.

    If you do not want to encrypt the volume, select No encryption.

  10. In the At boot drop-down menu, select when you want to mount the volume.
  11. In the Mount options section:

    1. Select the Mount read only checkbox if you want the to mount the volume as a read-only logical volume.
    2. Select the Custom mount options checkbox and add the mount options if you want to change the default mount option. For more information, see Customizing NFS mount options in the web console.
  12. Format the RAID partition:

    • If you want to format and mount the partition, click the Format and mount button.
    • If you want to only format the partition, click the Format only button.

      Formatting can take several minutes depending on the volume size and which formatting options are selected.

Verification

  • After the formatting has completed successfully, you can see the details of the formatted logical volume in the Storage table on the Storage page.

19.3. Creating a partition table on RAID using the web console

Format RAID with the partition table on the new software RAID device created in the RHEL 9 interface.

RAID requires formatting as any other storage device. You have two options:

  • Format the RAID device without partitions
  • Create a partition table with partitions

Prerequisites

  • Physical disks are connected and visible by .
  • RAID is created.
  • Consider the file system used for the RAID.
  • Consider creating a partitioning table.

Procedure

  1. Open the RHEL 9 console.
  2. Click Storage.
  3. In the Storage table, click the RAID device on which you want to create a partition table.
  4. Click the menu button, in the MDRAID device section.
  5. From the drop-down menu, select Create partition table.
  6. In the Initialize disk dialog box, select the following:

    1. Partitioning:

      • Compatible with all systems and devices (MBR)
      • Compatible with modern system and hard disks > 2TB (GPT)
      • No partitioning
    2. Overwrite:

      • Select the Overwrite existing data with zeros checkbox if you want the RHEL web console to rewrite the whole disk with zeros. This option is slower because the program has to go through the whole disk, but it is more secure. Use this option if the disk includes any data and you want to overwrite it.

        If you do not select the Overwrite existing data with zeros checkbox, the RHEL web console rewrites only the disk header. This increases the speed of formatting.

  7. Click Initialize.

    The partitioning table is created and you can now create partitions on that table. For more details, see Creating partitions on RAID using the web console.

19.4. Creating partitions on RAID using the web console

Create a partition in the existing partition table.

Prerequisites

Procedure

  1. Open the RHEL 9 web console.
  2. Click Storage.
  3. In the Storage table, click the RAID device on which you want to create a partition.
  4. On the RAID device page, scroll to the GPT partitions section and click the menu button, , next to the partition table you created. It is named Free space by default.
  5. Click Create partition.
  6. In the Create partition dialog box, enter a name for the file system. Do not use spaces in the name.
  7. In the Mount Point field, add the mount path.
  8. In the Type drop-down list, select the type of file system.
  9. In the Size field, set the size of the partition.
  10. Select the Overwrite existing data with zeros checkbox if you want the RHEL web console to rewrite the whole disk with zeros. This option is slower because the program has to go through the whole disk, but it is more secure. Use this option if the disk includes any data and you want to overwrite it.

    If you do not select the Overwrite existing data with zeros checkbox, the RHEL web console rewrites only the disk header. This increases the speed of formatting.

  11. If you want to encrypt the volume, select the type of encryption in the Encryption drop-down menu.

    If you do not want to encrypt the volume, select No encryption.

  12. In the At boot drop-down menu, select when you want to mount the volume.
  13. In the Mount options section:

    1. Select the Mount read only checkbox if you want the to mount the volume as a read-only logical volume.
    2. Select the Custom mount options checkbox and add the mount options if you want to change the default mount option.
  14. Create the partition:

    • If you want to create and mount the partition, click the Create and mount button.
    • If you want to only create the partition, click the Create only button.

      Formatting can take several minutes depending on the volume size and which formatting options are selected.

      You can create more partitions after the partition is created.

      At this point, the system uses mounted and formatted RAID.

Verification

  • You can see the details of the formatted logical volume in the Storage table on the main storage page.

19.5. Creating a volume group on top of RAID using the web console

Build a volume group from software RAID.

Prerequisites

  • RAID device that is not formatted and not mounted.

Procedure

  1. Open the RHEL 9 web console.
  2. Click Storage.
  3. In the Storage table, click the menu button.
  4. From the drop-down menu, select Create LVM2 volume group.

    Image displaying the available options in the Storage table drop-down menu. Selecting Create LVM2 volume group.

  5. In the Create LVM2 volume group dialog box, enter a name for the new volume group.
  6. From the Disks list, select a RAID device.

    If you do not see the RAID in the list, unmount the RAID from the system. The RAID device must not be in use by the RHEL 9 system.

  7. Click Create.

19.6. Additional resources