Jump to contentJump to page navigation: previous page [access key p]/next page [access key n]
documentation.suse.com / Documentation de SUSE Linux Enterprise Server / Storage Administration Guide / Software RAID / Configuring software RAID for the root partition
Applies to SUSE Linux Enterprise Server 15 SP4

8 Configuring software RAID for the root partition

In SUSE Linux Enterprise Server, the Device Mapper RAID tool has been integrated into the YaST Partitioner. You can use the partitioner at install time to create a software RAID for the system device that contains your root (/) partition. The /boot partition cannot be stored on a RAID partition unless it is RAID 1.

Important
Important: /boot/efi on RAID 1 might not boot

When creating the /boot/efi partition on RAID, keep in mind that in some cases the firmware might not recognize the boot partition on RAID. The firmware then refuses to boot.

8.1 Prerequisites for using a software RAID device for the root partition

Ensure that your configuration meets the following requirements:

  • You need two hard disks to create the RAID 1 mirror device. The hard disks should be similarly sized. The RAID assumes the size of the smaller drive. The block storage devices can be any combination of local (in or directly attached to the machine), Fibre Channel storage subsystems, or iSCSI storage subsystems.

  • A separate partition for /boot is not required if you install the boot loader in the MBR. If installing the boot loader in the MBR is not an option, /boot needs to reside on a separate partition.

  • For UEFI machines, you need to set up a dedicated /boot/efi partition. It needs to be VFAT-formatted, and may reside on the RAID 1 device to prevent booting problems in case the physical disk with /boot/efi fails.

  • If you are using hardware RAID devices, do not attempt to run software RAIDs on top of it.

  • If you are using iSCSI target devices, you need to enable the iSCSI initiator support before you create the RAID device.

  • If your storage subsystem provides multiple I/O paths between the server and its directly attached local devices, Fibre Channel devices, or iSCSI devices that you want to use in the software RAID, you need to enable the multipath support before you create the RAID device.

8.2 Setting up the system with a software RAID device for the root (/) partition

  1. Start the installation with YaST and proceed as described in Chapitre 8, Procédure d'installation until you reach the Suggested Partitioning step.

  2. Click Expert Partitioner to open the custom partitioning tool. You can use the suggested proposal, or you can use the existing proposal.

  3. (Optional) If there are iSCSI target devices that you want to use, you need to enable the iSCSI Initiator software by choosing System › Configure › Configure iSCSI from the upper-left section of the screen. Refer to Chapter 15, Mass storage over IP networks: iSCSI for further details.

  4. (Optional) If there are FCoE target devices that you want to use, you need to configure the interface by clicking System › Configure › Configure FCoE from the upper left section of the screen.

  5. (Optional) If you need to discard the partitioning changes, click System › Rescan Devices.

  6. Set up the Linux RAID format for each of the devices you want to use for the software RAID. You should use RAID for /, /boot/efi, or swap partitions.

    1. In the left panel, select Hard Disks and select the device you want to use, then click Add Partition.

    2. Under New Partition Size, specify the size to use, then click Next.

    3. Under Role, choose Raw Volume (unformatted).

    4. Select Do not format and Do not mount and set the Partition ID to Linux RAID.

    5. Click Next and repeat these instructions for the second partition.

      Image
  7. Create the RAID device for the / partition.

    1. In the left panel, select RAID and then Add RAID.

    2. Set the desired RAID Type for the / partition and the RAID name to system.

    3. Select the two RAID devices you prepared in the previous step from the Available Devices section and Add them.

      Image

      Proceed with Next.

    4. Select the chunk size from the drop-down box. Sticking with the default is a safe choice.

    5. In the left panel, click the RAID. In the Device Overview tab, select your new RAID and click Edit.

      Image
    6. Under Role, select Operating System and proceed with Next.

    7. Select the File System and set the mount point to /. Leave the dialog with Next.

      Image
  8. The software RAID device is managed by Device Mapper, and creates a device under the /dev/md/system path.

  9. Optionally, you can create a swap partition in RAID. Use similar steps to those described above, but under Role, select swap. Select the file system and mount point as shown below. Click Next.

    Image
  10. Optionally, for UEFI machines, use similar steps to create the /boot/efi mounted partition. Remember that only RAID 1 is supported for /boot/efi, and the partition needs to be formatted with the FAT32 file system.

    Image

    The partitioning then looks as follows:

    Image
  11. Click Accept to leave the partitioner.

    The new proposal appears on the Suggested Partitioning page.

  12. Continue with the installation. For UEFI machines with a separate /boot/efi partition, click Booting on the Installation Settings screen and set GRUB2 for EFI as the Boot Loader. Check that the Enable Secure Boot Support option is activated.

    Whenever you reboot your server, Device Mapper is started at boot time so that the software RAID is automatically recognized, and the operating system on the root (/) partition can be started.