Managing the Intel VROC (SATA RAID) on Linux
The inbox driver is available in the system compatible with Linux. Therefore, you do not need to install or upgrade the driver.
Common Commands
Querying Intel VROC (SATA RAID) Basic Information
Function
This command is used to query all basic information about Intel VROC (SATA RAID).
Syntax
mdadm --detail-platform
Description
None
Usage Guidelines
None
Example
# Query all basic information about Intel VROC (SATA RAID).
[root@localhost ~]# mdadm --detail-platform Platform : Intel(R) Rapid Storage Technology enterprise Version : 5.4.0.1039 RAID Levels : raid0 raid1 raid10 raid5 Chunk Sizes : 4k 8k 16k 32k 64k 128k 2TB volumes : supported 2TB disks : supported Max Disks : 8 Max Volumes : 2 per array, 8 per controller I/O Controller : /sys/devices/pci0000:00/0000:00:11.5 (SATA) Port0 : - no device attached - Port1 : - no device attached - Port2 : - no device attached - Port3 : - no device attached - Port4 : - no device attached - Port5 : - no device attached - Platform : Intel(R) Rapid Storage Technology enterprise Version : 5.4.0.1039 RAID Levels : raid0 raid1 raid10 raid5 Chunk Sizes : 4k 8k 16k 32k 64k 128k 2TB volumes : supported 2TB disks : supported Max Disks : 8 Max Volumes : 2 per array, 8 per controller I/O Controller : /sys/devices/pci0000:00/0000:00:17.0 (SATA) Port0 : /dev/sda (see Note) (DV624000FL1P6EGN) Port3 : /dev/sdb (DV6236008Z960FGN) Port4 : /dev/sdc (18031A983BCA) Port5 : /dev/sdd (PR1461036N160DGN) Port7 : /dev/sdf (S2HPNYAG600330) Port1 : /dev/sdg (17501B83246B) Port2 : - no device attached - Port6 : - no device attached -
In the command output, the character following sd indicates the drive letter. For example, a in sda is the drive letter. A drive letter identifies a drive in the system.
Creating an Array and RAIDs
Function
Create an array and RAID arrays for the array.
Syntax
mdadm -C /dev/md/array /dev/sd[a,b] -n disk -e imsm
mdadm -C /dev/md/RAID /dev/md/array -n disk -1 level -c stripe
Parameters
Parameter |
Description |
Value |
---|---|---|
array |
Name of an array. |
– |
a, b |
Drive letter. |
– |
disk |
Number of drives in the array. |
For details about the number of drives required for each RAID level, see Support for RAID Controller Cards 0, 1, 5, and 10. |
RAID |
Name of a RAID array. |
– |
level |
Level of the RAID array to be created. |
Value: 0, 1, 5, or 10 The number indicates the level of the corresponding RAID array. |
stripe |
Strip size of the RAID array. |
Value: 4, 8, 16, 32, 64, or 128 The number indicates the stripe size of the corresponding RAID array, in KB. |
Usage Guidelines
- On the OS, Array indicates a drive group. An array can consist of a maximum of two RAIDs.
- On the BIOS, Volume indicates a RAID array. The BIOS does not support creation of drive groups.
- When a volume is created on the BIOS, a drive group named imsmX (X indicates a serial number generated by the system) is automatically created.
- For details about how to query the drive letter, see Querying Intel VROC (SATA RAID) Basic Information.
Example
# Create an array.
[root@localhost ~]# mdadm -C /dev/md/md0 /dev/sd[c,f] -n 2 -e imsm mdadm: /dev/sdc appears to be part of a raid array: level=container devices=3 ctime=Mon Nov 14 19:33:46 2016 Continue creating array? y mdadm: container /dev/md/md0 prepared.
# Create a RAID 0 array.
[root@localhost ~]# mdadm -C /dev/md/j0 /dev/md/luo1 -n 2 -l 0 mdadm: array /dev/md/j0 started.
Deleting a RAID Array
Function
Delete an array and a RAID array.
Syntax
mdadm -S /dev/md/RAID
mdadm -S /dev/md/array
mdadm --zero-superblock /dev/sd [a,b]
Description
Parameter |
Description |
Value |
---|---|---|
array |
Name of an array. |
– |
RAID |
Name of a RAID group. |
– |
a,b |
Hard drive letter. |
– |
Usage Instruction
To delete an array, perform the following steps:
- Delete a RAID array.
- Deletes an array.
- Clear superblock.
Example
# Delete a RAID group.
[root@localhost ~]# mdadm -S /dev/md/j0 mdadm: stopped /dev/md/j0
# Delete the array.
[root@localhost ~]# mdadm -S /dev/md/luo1 mdadm: stopped /dev/md/luo1
# Clear superblock.
[root@localhost ~]# mdadm --zero-superblock /dev/sd[a,c]
Querying Array and RAID Group Information
Function
Query basic information about an array and its RAID arrays.
Syntax
mdadm -D /dev/md/array
mdadm -D /dev/md/RAID
Description
Parameter |
Description |
Value |
---|---|---|
array |
Name of an array. |
– |
RAID |
Name of a RAID group. |
– |
Usage Instruction
None
Example
# Query information about array 1.
[root@localhost ~]# mdadm -D /dev/md/array1: Version : imsm Raid Level : container Total Devices : 2 Working Devices : 2 UUID : c6cab00a:92a43755:dbaeeb81:9448e978 Member Arrays : /dev/md/v0 Number Major Minor RaidDevice 0 8 0 - /dev/sda 1 8 32 - /dev/sdc
# Query information about RAID 0.
[root@localhost ~]# mdadm -D /dev/md/v0/dev/md/v0: Container : /dev/md/array1, member 0 Raid Level : raid0 Array Size : 1875378176 (1788.50 GiB 1920.39 GB) Raid Devices : 2 Total Devices : 2 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 Chunk Size : 128K Consistency Policy : none UUID : d0f494f2:6be68b49:30ed2660:82063b8b Number Major Minor RaidDevice State 0 8 32 0 active sync /dev/sdc 1 8 0 1 active sync /dev/sda
Setting the Hot Spare Drive Status
Function
Configure a hot spare drive for an array.
Syntax
mdadm -a /dev/md/array /dev/sd[a]
Description
Parameter |
Description |
Value |
---|---|---|
array |
Array name. |
– |
a |
Drive letter. |
– |
Usage Instruction
None
Example
# Configure hard drive d as the hot spare drive of array 1.
[root@localhost ~]# mdadm -a /dev/md/array1 /dev/sdd mdadm: added /dev/sdd
A drive letter identifies a drive in the system. For details about how to query the drive letter, see Querying Intel VROC (SATA RAID) Basic Information.
Setting the Status of a Drive UID Indicator
Function
Turn on and off the UID indicator of a specified drive.
Syntax
ledctl locate=/dev/sda
ledctl locate_off=/dev/sda
Description
Parameter |
Description |
Value |
---|---|---|
a |
Hard drive letter. |
– |
Usage Instruction
None
Example
# Turn on the UID indicator of hard drive a.
[root@localhost ~]# ledctl locate=/dev/sda [root@localhost ~]#
# Turn off the UID indicator of hard drive a.
[root@localhost ~]# ledctl locate_off=/dev/sda [root@localhost ~]#
Setting the Rebuild Policy for New Drives
Scenarios
Set the rebuild policy for new drives if a RAID array with redundancy does not have hot spare drive so that the newly installed drive can automatically rebuild data of the faulty drive replaced.
Procedure
echo "POLICY domain=DOMAIN path=* metadata=imsm action=spare-same-slot">> /ect/mdadm.conf
echo "MAILADDR root" >> /etc/mdadm.conf
mdadm --udev-rules > /etc/udev/rules.d/65-md-bare.rules
Modifying the Indicator Lightening Policy
Scenarios
On Linux, if a hard drive that is not added to a RAID array is removed, the Fault indicator is on by default. You can modify the indicator lightening policy in the ledmon.conf configuration file.
Procedure
- Run the vi /etc/ledmon.conf command and press i to edit the configuration file.
- Run the RAID_MEMBERS_ONLY=true command to modify the configuration file.
- Press Esc to exit the editing mode.
- Enter :wq!. Save the settings and exit.