RST Linux Paper
RST Linux Paper
Ramu Ramakesavan
Intel Rapid
Storage
(Technical Marketing
Engineer)
Patrick Thomson
Technology
(Software Engineer)
Intel Corporation
(Intel RST) in
Linux*
August 2011
326024
Intel Rapid Storage Technology in Linux*
Executive Summary
OEMs have been using Intel Rapid Storage Technology (Intel RST) in
Microsoft Windows* client and server Operating Systems for many years.
This software RAID solution has been used primarily on mobile, desktop,
and workstation platforms and, to a limited extent, on server platforms.
This paper describes the support for Intel Rapid Storage Technology in
Linux.
2
Intel Rapid Storage Technology in Linux*
Contents
Intel RST support in Linux* ....................................................................................4
Support for RST Architecture in Linux ........................................................................4
Linux Software RAID Implementations .......................................................................5
Platforms and Linux Distributions Supported by Intel..................................5
Comparison of DM RAID and MD RAID .....................................................6
RST features in MD RAID .........................................................................................6
Installation and Booting ...........................................................................................8
Managing RAID Volumes ..........................................................................................8
Creating a RAID volume ...............................................................8
Creating RAID configuration file.....................................................9
Volume Assemble ........................................................................9
Stopping the volumes ................................................................ 10
To fail an active drive ................................................................ 10
Remove a failed drive ................................................................ 10
Erasing RAID meta data ............................................................. 10
Adding Spare disk to the RAID volume ......................................... 10
Online Capacity Expansion ..................................................................................... 11
RAID reshape ..................................................................................... 11
RAID migration..................................................................................................... 11
Reporting RAID information .................................................................................... 12
Report RAID details from BIOS.............................................................. 12
Reporting RAID information .................................................................. 12
RAID monitoring ................................................................................................... 12
Starting the monitor manually .............................................................. 13
Read Patrol .......................................................................................................... 14
Summary ............................................................................................................ 14
3
Intel
Rapid Sto
orage Techn
nology in Lin
nux*
el RS
Inte ST su
upporrt in L
Linux
x*
The Linnux implemen ntations of so
oftware RAID D support a nu umber of RAIID volume types
includin
ng the Intel Rapid
R Storagee Technology y RAID volum me type. The primary bene efit
of using Intel RST is
s in the preseence of an Inntel RST optioon ROM wherre the system m can
boot directly from any
a Intel RSTT RAID volum me type instea ad of creating
g a dedicated
d
partitio
on or using a RAID superb block partitionn to store the
e bootloader.
Sup
pport for RST
R Archit
A tectu
ure in Linu
ux
In simpple terms, MD
D RAID in Lin
nux is a block
k driver that ffilters data be
etween the L
Linux
File System driver, such as ext2
2 file system, and the low level hard disk drivers, suuch
as the AHCI driver and
a SAS driv
ver.
There is
i an option ROM
R (OROM) component in the BIOS tthat can crea ate Intel RST
RAID volumes
v and serves
s as the
e interface to the Intel RS
ST RAID volummes in the prre-
boot ennvironment. Before the BIIOS passes c ontrol to the system boottloader, the
OROM leaves a copy y of the featu
ures it suppo rts, such as R
RAID 5, in sy
ystem memorry.
ata can be rea
This da ad by mdadm m to determin ne what featuures can be u
used when
creating an Intel RS
ST volume.
4
Intel Rapid
R Storage Technolo
ogy in Linux
x*
Linu
ux So
oftwa
are RAAID
Imppleme
entattions
There are
a two Linux x Software RA
AID impleme ntations: DM M RAID and M MD RAID. DM
RAID iss the legacy product
p and MD
M RAID is t he newer imp plementation n. Both
implemmentations can support AH HCI SATA andd SCU controller in the Inttel chipsets, and
RAID metadata
m sup
pported by RSST OROM in tthe BIOS. How wever, all Inttel development
efforts are focused on MD RAID as it has ma ny machine y years of testing, and is wiidely
accepte ustry. Support for DM RAIID is restricte
ed in the indu ed to bug fixe
es.
Platforms and
a Linu
ux Distriibutions
s Suppo
orted by
y
Inte
el
MD RAID is supportted by the PC CG Linux teamm based in Pooland. The Inntel team
validates and suppoorts only serv
ver platforms using the Reed Hat and SUSE Linux
distribu
utions. Howevver, the MD RAID
R packag e is included in other Linu
ux distributions
also an ed by Intel Architecture
nd can be use A m
mobile, deskttop, and worrkstation
platformms.
As of th
his publicatio wing distributions:
on, MD RAID is supported in the follow
5
Intel Rapid Storage Technology in Linux*
Distributions Versions
Beginning with Linux* kernel version Beginning with Linux kernel version 2.6.27*, the
2.6.18*, the dmraid* utility 1.0.0-rc15 mdadm* utility 3.0 supports RAID 0, RAID 1, RAID
supports RAID 0, RAID 1, and RAID 10. 10, and RAID 5.
RedHat 5.3, 5.4, and 5.6 support DM RedHat 6.0, 6.1, and 6.2; SUSE SLES 11.0, 11.1,
RAID for 2009 and 2010 Intel server and 11.2 support MD RAID.
platforms.
Product deprecated. Support restricted to Development efforts are focused on this product.
bug fixes.
Protocols supported
MD RAID obeys RST OROM copies BIOS settings to system memory that is
constraints set in read by the OS. MD RAID obeys all configuration data
OROM copied by RST OROM, such as Device ID toggle for
RAID5
6
Intel Rapid Storage Technology in Linux*
RAID 1 2 See
http://support.intel.com/support/chipsets/iaa_raid/sb/CS-
009338.htm for details.
RAID 10 4 See
http://support.intel.com/support/chipsets/imsm/sb/CS-
020655.htm for details.
MBR/ GPT RST OROM and MD Driver support both MBR and GPT
partitions; partitions. GPT partitions are required to supported drives
support for>2T larger than 2T.
drives
RAID Assembly Starting (assembling) creates RAID volume from disks and
exposes it as new device (in /dev directory, ex.
/dev/md126)
Online Capacity Expansion (OLCE) allows reshaping of RAID volumes and migration of
RAID level for a particular volume. With the online feature, the operation can be
performed while a file system on top of the RAID volume is mounted. This allows the
avoidance of having down time from taking the RAID volume offline for service. It
consists of RAID Reshape.
The migration operation allows changing of the volume RAID level without loss of data
stored on this volume.
RAID level 2/3/4 RAID 0 RAID level migrations do not require re-installation of the
migration to 3/4/5/6 operating system. All applications and data remain intact.
RAID 5; Only restricted migrations are allowed.
2 RAID 1 to
3/4/5/6
RAID5;
4 RAID 10 to
3/4/5/6 RAID
5
RAID Failure Management. Drives can be hot replaced or spare disks could be included
in the volume for rebuild on failures.
RAID Rebuild A failed disk can be hot replaced and the software will
automatically rebuild the RAID volume.
7
Intel Rapid Storage Technology in Linux*
Array Auto rebuild Same as RAID rebuild, but a spare drive in the array is
used for rebuilding.
Read Patrol Patrol read checks for physical disk errors that could lead
to drive failure. These checks usually include an attempt at
corrective action. See section on Read Patrol for details.
Checkpointing allows OLCE, Rebuild and Migration operation to continue after a failure
such as a power failure, in the middle of the operation.
8
Intel Rapid Storage Technology in Linux*
Warning: Creating a RAID volume will permanently delete any existing data on the selected
hard drives. Back up all important data before beginning these steps.
The command creates a RAID container with Intel RST metadata format. The
device node for the container will be /dev/md/imsm. In this example disks sdb,
sdc, and sdd are used for this RAID set, and the total number of disks is 3.
The command above creates a RAID volume inside the /dev/md/imsm container
with 100GB of data on each disk member.
Volume Assemble
Inactive RAID volumes can be activated using the assemble option with mdadm.
9
Intel Rapid Storage Technology in Linux*
The following command scans for the mdadm configuration file at /etc/mdadm.conf in
order to assemble the RAID volumes:
mdadm As
mdadm Ss
However, RAID volume names can be specified to stop the volume directly.
10
Intel Rapid Storage Technology in Linux*
RAID reshape
With a running RAID volume, we can grow the size of the volume by expanding on
existing unused disk space available to the RAID volume or by adding additional disks
to the RAID container. With available disk space the following command can be issued
to grow the RAID volume. This is assuming that we either have additional room to
grow or additional disk has been added to the IMSM container.
mdadm G /dev/md/vol0 n 4
RAID migration
The migration operation allows changing of the volume RAID level without lost of data
stored on this volume. The following table shows the available migration support with
IMSM metadata.
RAID 5 No No No No N/A
mdadm G /dev/md/vol0 l 5
11
Intel Rapid Storage Technology in Linux*
mdadm -detail-platform
Platform : Intel(R) Matrix Storage Manager
Version : 8.9.0.1023
RAID Levels : raid0 raid1 raid10 raid5
Chunk Sizes : 4k 8k 16k 32k 64k 128k
Max Disks : 6
Max Volumes : 2
I/O Controller : /sys/devices/pci0000:00/0000:00:1f.2
Port0 : /dev/sda (3MT0585Z)
Port1 : - non-disk device (ATAPI DVD D DH16D4S) -
Port2 : /dev/sdb (WD-WCANK2850263)
Port3 : /dev/sdc (3MT005ML)
Port4 : /dev/sdd (WD-WCANK2850441)
Port5 : /dev/sde (WD-WCANK2852905)
Port6 : -no device attached -
mdadm D /dev/md/imsm
mdadm E /dev/sdb
RAID monitoring
Mdadm provides the ability to monitor metadata event occurring such as disk
failures, clean-to-dirty transitions, and etc. The kernel provides the ability to report
such actions to the userspace via sysfs, and mdadm takes action accordingly with the
monitoring capability. The mdmon polls the /sys looking for changes in the entries
array_state, sync_action, and per disk state attribute files. This is meaningful for
RAID1, 5 and 10 only.
12
Intel Rapid Storage Technology in Linux*
The command above runs mdmon as a daemon to monitor all md devices. It also
writes the process id (pid) of the mdmon daemon to /var/run/mdadm file.
There are additional command line parameters that can be passed to mdmon at
startup.
mdmon will check the mdadm.conf config file to extract the appropriate entries for
monitoring. The following entries we can set to pass to mdmon:
MAILADDR: This config entry allows an e-mail address to be used for alerts. Only one
email address should be used.
MAILFROM: This config entry sets the email address to appear from the alert emails.
The default from would be the root user with no domain. This entry
overrides the default.
PROGRAM: This config entry sets the program to run when mdmon detects
potentially interesting events on any of the arrays it is monitoring. There
can be only one PROGRAM line in the config file.
13
Intel Rapid Storage Technology in Linux*
Read Patrol
Patrol read checks for physical disk errors that could lead to drive failure. These
checks usually include an attempt at corrective action.
You can enable Read Patrol scan by writing the string check to
/sys/block/md###/md/sync_action, simply:
The above action performs Read Patrol only once. A cron job could be used to run
Read Patrol periodically. Such a script is present in RHEL6.x releases.
Summary
MD RAID and DM RAID are both implementations of Intel Rapid Storage Technology
but MD RAID is richer in features and more widely adopted in the industry. No future
features are planned to be implemented in DM RAID.
The Intel Embedded Design Center provides qualified developers with web-based
access to technical resources. Access Intel Confidential design materials, step-by step
guidance, application reference solutions, training, Intels tool loaner program, and
connect with an e-help desk and the embedded community. Design Fast. Design
Smart. Get started today. http://intel.com/embedded/edc.
14
Intel Rapid Storage Technology in Linux*
Authors
Ramu Ramakesavan is a Technical Marketing Engineer with
Datacenter and Connected Systems Group at Intel.
Patrick Thomson is a Software Engineer with Storage Group at
Intel Corporation.
Acronyms
AHCI Advanced Host Computer Interface
RST - Intel Rapid Storage Technology
RAS Reliability Availability and Serviceability
SAS Serial Attached SCSI
SATA Serial Advanced Technology Attachment
SCU SAS Controller Unit
15
Intel Rapid Storage Technology in Linux*
BunnyPeople, Celeron, Celeron Inside, Centrino, Centrino Inside, Core Inside, i960, Intel, the Intel
logo, Intel AppUp, Intel Atom, Intel Atom Inside, Intel Core, Intel Inside, the Intel Inside logo, Intel
NetBurst, Intel NetMerge, Intel NetStructure, Intel SingleDriver, Intel SpeedStep, Intel Sponsors of
Tomorrow., the Intel Sponsors of Tomorrow. logo, Intel StrataFlash, Intel Viiv, Intel vPro, Intel
XScale, InTru, the InTru logo, InTru soundmark, Itanium, Itanium Inside, MCS, MMX, Moblin,
Pentium, Pentium Inside, skoool, the skoool logo, Sound Mark, The Journey Inside, vPro Inside,
VTune, Xeon, and Xeon Inside are trademarks of Intel Corporation in the U.S. and other countries.
16