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.
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
#
Start the installation with YaST and proceed as described in Kapitel 8, Installationsschritte until you reach the step.
Click
to open the custom partitioning tool. YaST makes a default proposal, you can use this proposal by clicking . You can also discard the suggested proposal by clicking .(Optional) If there are iSCSI target devices that you want to use, you need to enable the iSCSI Initiator software by choosing Chapter 15, Mass Storage over IP Networks: iSCSI for further details.
› from the lower right section of the screen. Refer to(Optional) You may need to configure multiple network interfaces for FCoE, click
to do so.(Optional) In case you have used the suggested proposal and you do not need it anymore. Click
to delete the proposed partitioning.Set up the
format for each of the devices you want to use for the software RAID. You should use RAID for/
,/boot/efi
, or swap partitions.In the left panel, select
and select the device you want to use. Click the tab and then click .Under
, specify the size to use, then click .Under
, choose .Select
and . Set the to .Click
and repeat these instructions for the second partition.
Create the RAID device for the
/
partition.In the left panel, select
and then .Set the desired
for the/
partition and the tosystem
.Select the two RAID devices you prepared in the previous step from the
section and them.Proceed with
.Under
, select the chunk size from the drop-down box. Sticking with the default is a safe choice.In the left panel, click
RAID
and then select thesystem
. Click .Under
, select and proceed with .Select the
and set the mount point to/
. Leave the dialog withNext
.
The software RAID device is managed by Device Mapper, and creates a device under the
/dev/md/system
path.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 FAT file system.Figure 8.1: , , and swap on RAIDs #Click
to leave the partitioner.The new proposal appears on the
page.Continue with the installation. For UEFI machines with a separate
/boot/efi
partition, click on the screen and set as the . Check that the 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.