← 返回命令列表

Linux command

dmraid 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List all RAID sets

dmraid -s

Activate all RAID

dmraid -ay

Activate specific RAID

dmraid -ay [raidset_name]

Deactivate all RAID

dmraid -an

Show detailed RAID

dmraid -s -s

List block devices

dmraid -b

Remove inactive RAID

dmraid -E [/dev/sda]

说明

dmraid discovers and activates software RAID sets using the Linux device-mapper. It supports various hardware RAID metadata formats including those from Intel, NVIDIA, VIA, and other motherboard RAID controllers. The tool reads RAID metadata from drives and creates device-mapper mappings that present the RAID array as a single block device. This enables Linux to work with "fake RAID" or "firmware RAID" commonly found on consumer motherboards. dmraid operates independently of the RAID controller's BIOS, allowing arrays to be used even without controller-specific drivers.

参数

-s
Display RAID sets (double for details).
-ay
Activate RAID sets.
-an
Deactivate RAID sets.
-b
List block devices.
-r
List RAID devices.
-E _DEVICE_
Erase RAID metadata.
-n
Dry run (show but don't execute).
-v
Verbose output.

FAQ

What is the dmraid command used for?

dmraid discovers and activates software RAID sets using the Linux device-mapper. It supports various hardware RAID metadata formats including those from Intel, NVIDIA, VIA, and other motherboard RAID controllers. The tool reads RAID metadata from drives and creates device-mapper mappings that present the RAID array as a single block device. This enables Linux to work with "fake RAID" or "firmware RAID" commonly found on consumer motherboards. dmraid operates independently of the RAID controller's BIOS, allowing arrays to be used even without controller-specific drivers.

How do I run a basic dmraid example?

Run `dmraid -s` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -s do in dmraid?

Display RAID sets (double for details).