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 RAID1 for the system device that contains your root
(/) partition. The /boot
partition must be created on a separate device than the MD RAID1.
Ensure that your configuration meets the following requirements:
You need two hard drives to create the RAID1 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.
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 RAID1 device.
Proceed with the YaST install of SUSE Linux Enterprise Server until you reach the Installation Settings page.
Click to open the Preparing Hard Disk page, click , then click .
On the Expert Partitioner page, expand in the panel to view the default proposal.
On the page, select , then click when prompted to continue with initializing the iSCSI initiator configuration.
If there are multiple I/O paths to the devices that you want to use for the root (/) partition, you must enable multipath support before you create the software RAID1 device.
Proceed with the YaST install of SUSE Linux Enterprise Server until you reach the Installation Settings page.
Click to open the Preparing Hard Disk page, click , then click .
On the Expert Partitioner page, expand in the panel to view the default proposal.
On the page, select , then click 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.
Proceed with the YaST install of SUSE Linux Enterprise Server until you reach the Installation Settings page.
Click to open the Preparing Hard Disk page, click , then click .
On the Expert Partitioner page, expand in the panel to view the default proposal, select the proposed partitions, then click .
Create a /boot partition.
On the Expert Partitioner page under , select the device you want to use for the /boot partition, then click on the tab.
Under , select , then click .
Under , specify the size to use, then click .
Under , select , then select your preferred file system type (such as Ext2 or Ext3) from the drop-down list.
Under , select , then select from the drop-down list.
Click .
Create a swap partition.
On the Expert Partitioner page under , select the device you want to use for the swap partition, then click on the tab.
Under , select , then click .
Under , specify the size to use, then click .
Under , select , then select from the drop-down list.
Under , select , then select from the drop-down list.
Click .
Set up the format for each of the devices you want to use for the software RAID1.
On the Expert Partitioner page under , select the device you want to use in the RAID1, then click on the tab.
Under , select , then click .
Under , specify to use the maximum size, then click .
Under , select , then select from the drop-down list.
Under , select .
Click .
Repeat Step 6.a to Step 6.f for each device that you plan to use in the software RAID1.
Create the RAID device.
In the panel, select , then click on the RAID page.
The devices that you prepared in Step 6 are listed in .
Under , select .
In the panel, select the devices you want to use for the RAID, then click to move the devices to the panel.
Specify two or more devices for a RAID1.
To continue the example, two devices are selected for RAID1.
Click .
Under , select the chunk size from the drop-down list.
The default chunk size for a RAID1 (Mirroring) is 4 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.
Under , select , then select the file system type (such as Ext3) from the drop-down list.
Under , select , then select / from the
drop-down list.
Click .
The software RAID device is managed by Device Mapper, and creates a
device under the /dev/md0 path.
On the Expert Partitioner page, click .
The new proposal appears under on the Installation Settings page.
For example, the setup for the
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.