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 1 for the system device that contains your root
(/) partition. The /boot
partition must be created on a separate device than the MD RAID 1.
Ensure that your configuration meets the following requirements:
You need two hard drives to create the RAID 1 mirror device. The hard drives 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.
You need a third device to use for the /boot
partition. The boot device should be a local device.
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 must 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 must enable the multipath support before you create the RAID device.
/) Partition
#Start the installation with YaST and proceed as described in Chapter 6, Installation with YaST, Deployment Guide until you reach the step.
Click to open the custom partitioning tool.
(Optional) If there are iSCSI target devices that you want to use, you need to enable the iSCSI Initiator software by choosing › from the lower right section of the screen. Refer to Chapter 13, Mass Storage over IP Networks: iSCSI for further details.
(Optional) If there are multiple I/O paths to the devices that you want to use you need to enable multipath support by choosing › › from the lower right section of the screen.
(Optional) In case you have neither configured iSCSI or Multipath, the default proposal settings are shown. Click to delete them.
Create a /boot and a swap partition on the device
that should not be used for the RAID. The minimum size for the boot
partition is 500 MB. The following instructions need to be carried out
for each partition.
In the left panel, select and select the device you want to use, then click .
Under , select , then click .
Under , specify the size to use, then click .
Under , choose for /boot or
for the swap partition.
Select a file system and a mount point in the next dialog. For
/boot select one of the file systems available
and select /boot as the mount point from the
drop-down box. For the swap partition, both values need to be set to
.
Optionally specify mount and fstab options by clicking the respective buttons.
Click and repeat these instructions for the second partition.
Set up the format for each of the devices you want to use for the software RAID 1.
In the left panel, select and select the device you want to use, then click .
Under , select , 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.
In the left panel, select and then .
Set the to and the to
system.
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 list. The chunck size does not have many performance implications for RAID 1, so sticking with the default is recommended.
Under , select .
The default root file system setup using Btrfs and snapshots as
described in Section 1.2.1.2, “The Root File System Setup on SUSE Linux Enterprise Server” is
preset in the next dialog. In case you would like to use this setup,
click and
all subvolumes starting with
@/boot.
Alternatively, adjust the configuration or choose a different file system.
Leave this dialog with .
The software RAID device is managed by Device Mapper, and creates a
device under the /dev/md/system path. Click
to leave the partitioner.
The new proposal appears on the page.
Continue with the installation.
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.