Applies to SUSE Linux Enterprise Server 12

7 Configuring Software RAID 1 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 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.

7.1 Prerequisites for Using a Software RAID 1 Device for the Root Partition

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.

7.2 Setting up the System with a Software RAID 1 Device for the Root (/) Partition

  1. Start the installation with YaST and proceed as described in Chapter 6, Installation with YaST, Deployment Guide until you reach the Suggested Partitioning step.

  2. Click Expert Partitioner to open the custom partitioning tool.

  3. (Optional) If there are iSCSI target devices that you want to use, you need to enable the iSCSI Initiator software by choosing Configure › Configure iSCSI from the lower right section of the screen. Refer to Chapter 13, Mass Storage over IP Networks: iSCSI for further details.

  4. (Optional) If there are multiple I/O paths to the devices that you want to use you need to enable multipath support by choosing Configure › Configure Multipath › Yes from the lower right section of the screen.

  5. (Optional) In case you have neither configured iSCSI or Multipath, the default proposal settings are shown. Click Rescan Devices to delete them.

  6. 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.

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

    2. Under New Partition Type, select Primary Partition, then click Next.

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

    4. Under Role, choose Operating System for /boot or Swap for the swap partition.

    5. 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 swap.

      Optionally specify mount and fstab options by clicking the respective buttons.

    6. Click Finish and repeat these instructions for the second partition.

  7. Set up the 0xFD Linux RAID format for each of the devices you want to use for the software RAID 1.

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

    2. Under New Partition Type, select Primary Partition, then click Next.

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

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

    5. Select Do not format and set the File SystemID to 0xFD Linux RAID.

    6. Click Finish and repeat these instructions for the second partition.

  8. Create the RAID device.

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

    2. Set the RAID Type to RAID 1 (Mirroring) 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.

      Proceed with Next.

    4. Under RAID Options, 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.

    5. Under Role, select Operating System.

    6. 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 Subvolume Handling and Remove all subvolumes starting with @/boot.

      Alternatively, adjust the configuration or choose a different file system.

      Leave this dialog with Finish.

  9. The software RAID device is managed by Device Mapper, and creates a device under the /dev/md/system path. Click Accept to leave the partitioner.

    The new proposal appears on the Suggested Partitioning page.

  10. 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.

Print this page