Chapter 9. Configuring Software RAID for the Root Partition

Contents

9.1. Prerequisites for the Software RAID
9.2. Enabling iSCSI Initiator Support at Install Time
9.3. Enabling Multipath I/O Support at Install Time
9.4. Creating a Software RAID Device for the Root (/) Partition

In SUSE® Linux Enterprise Server 11, 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.

9.1. Prerequisites for the Software RAID

Make sure your configuration meets the following requirements:

  • You need two or more hard drives, depending on the type of software RAID you plan to create.

    • RAID 0 (Striping):  RAID 0 requires two or more devices. RAID 0 offers no fault tolerance benefits, and it is not recommended for the system device.

    • RAID 1 (Mirroring):  RAID 1 requires two devices.

    • RAID 5 (Redundant Striping):  RAID 5 requires three or more devices.

  • The hard drives should be similarly sized. The RAID assumes the size of the smallest 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.

  • 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, 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.

9.2. Enabling iSCSI Initiator Support at Install Time

If there are iSCSI target devices that you want to use for the root (/) partition, you must enable the iSCSI Initiator software to make those devices available to you before you create the software RAID device.

  1. Proceed with the YaST install of SUSE Linux Enterprise 11 until you reach the Installation Settings page.

  2. Click Partitioning to open the Preparing Hard Disk page, click Custom Partitioning (for experts), then click Next.

  3. On the Expert Partitioner page, expand Hard Disks in the System View panel to view the default proposal.

  4. On the Hard Disks page, select ConfigureConfigure iSCSI, then click Continue when prompted to continue with initializing the iSCSI initiator configuration.

9.3. Enabling Multipath I/O Support at Install Time

If there are multiple I/O paths to the devices you want to use to create a software RAID device for the root (/) partition, you must enable multipath support before you create the software RAID device.

  1. Proceed with the YaST install of SUSE Linux Enterprise 11 until you reach the Installation Settings page.

  2. Click Partitioning to open the Preparing Hard Disk page, click Custom Partitioning (for experts), then click Next.

  3. On the Expert Partitioner page, expand Hard Disks in the System View panel to view the default proposal.

  4. On the Hard Disks page, select ConfigureConfigure Multipath, then click Yes when prompted to activate multipath.

    This re-scans the devices and resolves the multiple paths so that each device is listed only once in the list of hard disks.

9.4. Creating a Software RAID Device for the Root (/) Partition

  1. Proceed with the YaST install of SUSE Linux Enterprise 11 until you reach the Installation Settings page.

  2. Click Partitioning to open the Preparing Hard Disk page, click Custom Partitioning (for experts), then click Next.

  3. On the Expert Partitioner page, expand Hard Disks in the System View panel to view the default proposal, select the proposed partitions, then click Delete.

  4. Create a swap partition.

    1. On the Expert Partitioner page under Hard Disks, select the device you want to use for the swap partition, then click Add on the Hard Disk Partitions tab.

    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 Format Options, select Format partition, then select Swap from the drop-down list.

    5. Under Mount Options, select Mount partition, then select swap from the drop-down list.

    6. Click Finish.

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

    1. On the Expert Partitioner page under Hard Disks, select the device you want to use in the RAID, then click Add on the Hard Disk Partitions tab.

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

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

    4. Under Format Options, select Do not format partition, then select 0xFD Linux RAID from the drop-down list.

    5. Under Mount Options, select Do not mount partition.

    6. Click Finish.

    7. Repeat Step 5.a to Step 5.f for each device that you plan to use in the software RAID

  6. Create the RAID device.

    1. In the System View panel, select RAID, then click Add RAID on the RAID page.

      The devices that you prepared in Step 5 are listed in Available Devices.

    2. Under RAID Type, select RAID 0 (Striping), RAID 1 (Mirroring), or RAID 5 (Redundant Striping).

      For example, select RAID 1 (Mirroring).

    3. In the Available Devices panel, select the devices you want to use for the RAID, then click Add to move the devices to the Selected Devices panel.

      Specify two or more devices for a RAID 1, two devices for a RAID 0, or at least three devices for a RAID 5.

      To continue the example, two devices are selected for RAID 1.

    4. Click Next.

    5. Under RAID Options, select the chunk size from the drop-down list.

      The default chunk size for a RAID 1 (Mirroring) is 4 KB.

      The default chunk size for a RAID 0 (Striping) is 32 KB.

      Available chunk sizes are 4 KB, 8 KB, 16 KB, 32 KB, 64 KB, 128 KB, 256 KB, 512 KB, 1 MB, 2 MB, or 4 MB.

    6. Under Formatting Options, select Format partition, then select the file system type (such as Ext3) from the File system drop-down list.

    7. Under Mounting Options, select Mount partition, then select / from the Mount Point drop-down list.

    8. Click Finish.

      The software RAID device is managed by Device Mapper, and creates a device under the /dev/md0 path.

  7. On the Expert Partitioner page, click Accept.

    The new proposal appears under Partitioning on the Installation Settings page.

    For example, the setup for the

  8. Continue with the install.

    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.